Repository navigation
Conversation
…duction The unwrap scanner split only on the outer #[cfg(test)], so files whose first code line is #![cfg(test)] (orm/derive_test.rs, contracts/chain_tests.rs) were counted as production unwraps. Match the inner attribute too. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
orm/: 71 unwrap/expect before, 0 after (28 production, 43 in derive_test.rs which is #![cfg(test)] and now correctly excluded). contracts/: its 21 were all in chain_tests.rs (#![cfg(test)]), cleared by the same scanner fix. - 28 poisoned std lock unwrap/expect -> unwrap_or_else(PoisonError::into_inner) with same-line reason (entity registry, migration state, sqlite connections) - 0 became ?/typed error, 0 let-else, 0 structural: lock poisoning here has a correct meaning (the data is the last state) and needs no new error path Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Contributor
Author
|
Folded into #5172 (one branch, one CI run). The review and test receipts are there. |
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.
orm/: 71 unwrap/expect before, 0 after. 43 were in derive_test.rs (#![cfg(test)], mis-counted as production: scanner fix included, also clears contracts/ 21). The other 28 are poisoned std-lock unwraps now recovered with PoisonError::into_inner and a same-line reason.
Tests: cargo test -p continuum-core --lib orm:: = 106 passed; source-hygiene unwrap_justification = 2 passed, count 2135.
Behavior change: panics become typed, handled outcomes. Needs a real review, not only CI.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo