fix(lint): re-record thread-local ratchet; rename test-local class id (follow-up to #11674) - #11706
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe static-shape test now uses a renamed class ID constant. The thread-local cold allowlist counts and entries were updated, and a changelog entry records these changes and the reported audit results. ChangesRatchet audit updates
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Merge Risk: ⚪ Minimal · up to This change repairs audit and lint failures on main by updating ratchet counts and adding a changelog entry. It does not appear to alter production behavior. Merge risk is minimal, and the author reports that the relevant Linux checks pass. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 3 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… (follow-up to #11674) check_thread_locals.py: async_hooks.rs 7->6, gc/layout_tables.rs 3->2, node_stream_constructors.rs 3->2, stale gc/layout.rs entry removed. All counts only go down. Fails windows-build's GC structural audits and tls-budget's self-test job. class_id_collisions.py: #11674's test-local ANON_CLASS_ID (0x0075_5eed) in static_shapes_tests.rs read as a drifted mirror of put_value.rs's unrelated test-local ANON_CLASS_ID; renamed to REP_SEED_ANON_CLASS_ID.
62cef20 to
a7f5bb0
Compare
Follow-up to #11674. I rebuilt this PR on current
main(43f1c80, after the shapes P4 series) and redid every count from scratch with the scripts. The P4 series had already fixed most of the original PR; only two reds remain onmain:windows-buildGC structural audits (and tls-budget's self-test job):check_thread_locals.pyfails, on Linux too. I re-recorded it with--update. Every count only goes down:async_hooks.rs: 7→6gc/layout_tables.rs: 3→2node_stream_constructors.rs: 3→2gc/layout.rsentry is deletedlint/ class-id audit: #11674's test-localANON_CLASS_ID = 0x0075_5eedinstatic_shapes_tests.rsreads as a drifted mirror ofput_value.rs's unrelated test-localANON_CLASS_ID = 0x8783_1001. I renamed the new one toREP_SEED_ANON_CLASS_ID.No longer needed, so dropped: the dead
shape_id_for_class_keys_ensure(already gone on main), thegc/layout.rsfile-size split (under the cap now), and the shape-descriptor census baseline edit (passes on main).Validation (Linux, perrymaster)
RUSTFLAGS="-D warnings" cargo check -p perry-runtime --lib --tests: clean, on both pristine main and this branch.cargo test -p perry-codegen --lib region_loop_tests: 6/6 pass, on both pristine main and this branch. The earlier CI failure ofa_bare_store_of_a_value_not_proven_a_double_names_its_key_to_the_primecame from the old base and is not reproducible at 43f1c80.check_thread_locals.py,class_id_collisions.py,check_file_size.sh,shape_descriptor_census.py,cargo fmt --check: all pass.Not run
run_lint_gates.shon the rebuilt branch. It passed on the previous version: 105 of 107, the 2 known failures being public-baseline andcargo xwin.cargo test.