-
Notifications
You must be signed in to change notification settings - Fork 26
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
Benchmark plugin swallows error codes from benchmark crashes #230
Comments
Thanks for the report - It's basically a regression after #166 was merged, it was partially addressed for check/update/compare operations in #211 - but for the simple iterative use case attached here it won't fail. I believe it should though, so will make a fix such that any error is always propagated up (but as desired by #166 the rest of the benchmarks will still be run, I believe it was one of your colleagues that asked for that :-) ). |
Will be fixed in related PR #231, also see swiftlang/swift-package-manager#7380 which disallows disambiguation between regressions/improvements unfortunately. |
Thanks @hassila! |
We had some benchmarking jobs in CI happily succeeding, but after looking at the logs, it was immediately evident that some benchmark cases were crashing. CI was receiving its zero exit code from the benchmark plugin, even after logging non-zero exit codes somewhere down the line.
I was able to reproduce this behavior in a blank package with the following benchmark case...
Running benchmark plugin does log error messages, but returns 0. Also noting there's a message with
error code [5]
, but I'm not sure where that comes from.Running benchmark executable directly returns non-zero exit code.
I would have expected benchmark plugin to surface some kind of non-zero exit code to indicate a failure. Is this behavior intended?
The text was updated successfully, but these errors were encountered: