Repository navigation
[codex] close smoke log groups on failure - #116
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
davidiach
commented
May 11, 2026
davidiach
left a comment
Owner
Author
There was a problem hiding this comment.
Self-review pass complete.
Current patch review:
- Smoke command order and assertions are unchanged; only group marker emission is routed through helpers.
SMOKE_GROUP_OPENremains set during an active group, sotrap cleanup EXITcloses it on pipeline, grep, or Python assertion failure underset -euo pipefail.- Successful paths call
end_smoke_groupexplicitly and reset the flag, so cleanup does not double-close groups. - The source-consistency test checks the important invariant without overfitting exact
printfspellings: marker emission must stay inside the helper functions, and cleanup must close before tempdir removal.
Local validation is green: targeted CI-smoke tests, full demo.test_bridge, bash -n, git diff --check, and wsl.exe -d Ubuntu make ci-check.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
begin_smoke_group/end_smoke_groupWhy
demo/ci_smoke.shruns withset -euo pipefail. Before this change, a failure between::group::and::endgroup::could exit before closing the Actions group, leaving the failing log section folded or visually mangled right when debugging matters most.Review notes
trap cleanup EXITbecauseSMOKE_GROUP_OPENremains set untilend_smoke_groupruns.printfspellings. The test now checks the invariant instead: marker emitters must live inside the group helper functions.Validation
python -m unittest demo.test_bridge.KernelMetadataTests.test_ci_smoke_replays_every_shipped_transcript demo.test_bridge.KernelMetadataTests.test_ci_smoke_action_groups_are_failure_safepython -m unittest demo.test_bridgewsl.exe -d Ubuntu bash -n demo/ci_smoke.shgit diff --check -- demo/ci_smoke.sh demo/test_bridge.pywsl.exe -d Ubuntu make ci-check