-
Notifications
You must be signed in to change notification settings - Fork 0
fix(go-runner): ensure test binary exists after execution #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
237c421 to
be4253f
Compare
CodSpeed Performance ReportMerging this PR will improve performance by ×9.4Comparing Summary
Performance Changes
Footnotes
|
Unable to generate the flame graphsThe performance report has correctly been generated, but there was an internal error while generating the flame graphs for this run. We're working on fixing the issue. Feel free to contact us on Discord or at support@codspeed.io if the issue persists. |
ed45e13 to
ed2f013
Compare
CodSpeed Performance ReportCongrats! CodSpeed is installed 🎉
You will start to see performance impacts in the reports once the benchmarks are run from your default branch.
|
9b16278 to
251640a
Compare
GuillaumeLagrange
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
olgtm
| "test", | ||
| // Keep the test binary on disk after executing it. This is required by | ||
| // the runner to properly parse the symbols and debug info. | ||
| "-work", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but is there an easy way to clean this up ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately no, because we need the test binary to exist when the runner executes the teardown.
The only alternative I see to this, is to parse the first line (and drop it) and then copy the test binary (which is always called {name}.test) to another folder. Wdyt?
| env: | ||
| CODSPEED_GO_PKG_VERSION: ${{ github.head_ref || github.ref_name }} | ||
| with: | ||
| runner-version: branch:cod-2057-perf-timeout-in-codspeed-go-makes-benchmark-hang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont forget to drop this
Small downside of this approach: We now have a log like this in the stdout:
WORK=/tmp/go-build3181207056, should we remove it? (not worth it imo, but lmk what you think)Blocked by CodSpeedHQ/codspeed#201