-
Notifications
You must be signed in to change notification settings - Fork 14
ci: run the C++ unit tests in the release configuration #821
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
Merged
+42
−5
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
ci: run the C++ unit tests in the release configuration
No job compiled the gtests with optimisation. Both sanitizer presets pass -fno-optimize-sibling-calls and no -O, and the release gtests the Java matrix could reach are behind a test:release label, so a defect that only appears once the optimiser runs had nothing to catch it on an ordinary pull request. That is not hypothetical: a fixture whose frame -O3 folded away via a tail call merged green and stayed broken on main until someone happened to build release locally. The two new jobs extend .sanitizer_job unchanged -- buildGtestRelease already exists next to the sanitizer variants and emits binaries under the same bin/gtest/<config>_<test>/ layout the runner loop globs for, so only the two variables differ. The nightly comment claiming gtests run per-PR from a sanitizer job in ci.yml described a job that does not exist; it is the same misreading that left the gap open, so both copies now say where they actually run. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
When either new release job fails after the existing sanitizer dependencies complete,
build-artifactcan still run because its DAGneedslist names only the four ASan/TSan jobs;deploy-artifactthen needs onlybuild-artifactand the native builds. Thus an O3-only failure—the precise case these jobs are meant to catch—can still publish the affected artifact before the pipeline turns red. Add both release jobs to the publication gate.Useful? React with 👍 / 👎.
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.
Confirmed and fixed in 691178f.
Checked it against the config rather than taking it on trust:
build-artifact'sneedsblock named exactly the four sanitizer jobs, and because that is an explicit DAG rather than a stage dependency, it starts as soon as those pass. The release jobs would have run alongside publication instead of ahead of it — so an-O3-only failure would still have turned the pipeline red, but only after the affected artifact was built, anddeploy-artifactneedsbuild-artifact. That would have left these jobs advisory, which defeats the point of adding them.Both are now in the gate:
Two notes on the shape of the fix:
Non-optional, matching the ASan entries rather than the TSan ones. All six jobs come from
.sanitizer_joband share its rules, so wheneverbuild-artifactexists they exist too.optional: truewould tolerate a future rules change, but it would also let the coverage disappear silently — the same invisibility this PR is closing — so a loud failure is the better mode here.Only
build-artifactneeded changing;deploy-artifactnames it in its ownneeds, so it is gated transitively. Verified rather than assumed.