Repository navigation
chore(scripts): exit the parity harness's forked worker through finally - #2924
Merged
Merged
Conversation
The forked worker caught BaseException so a child never returns into the parent's code, which CodeQL flags (py/catch-base-exception). Exit through `finally` instead: the child still exits 3 on any exception and 0 when the worker finishes, with no broad except. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
robcohen
added a commit
that referenced
this pull request
Nov 10, 2026
Brings in #2908 (strict account validator; loader v66, WASM v87), #2919 and #2924. Keeps this branch at loader v68 / WASM v90 with one note per version, drops the merged warn_if_invalid_root (rejection now goes through check_root), and adds the issue's `A😀` root to the rejected-name tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
robcohen
added a commit
that referenced
this pull request
Nov 10, 2026
Brings in #2919's linear merge_padding_into_sorted (with the tolerance_multiplier threaded through), #2908 and #2924. WASM cache v88, loader pin 66. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What
In
scripts/compat-parse-error-parity.py, the forked worker now exits throughtry: ... finally: os._exit(code)instead ofexcept BaseException.Why
CodeQL code-scanning alert 217 (
py/catch-base-exception). The broad catch was intentional, so a child never returns into the parent's code.finallykeeps that guarantee without a broadexcept: the child exits 3 on any exception and 0 when the worker finishes.How to test
python3 scripts/compat-parse-error-parity.py --self-testpasses (innix develop .#bench). The Parse-error parity CI job exercises the forked workers.🤖 Generated with Claude Code