Repository navigation
ci: gate small Used by rosters and retire the shared-helper debt - #3312
Conversation
SummaryThe PR covers items 1 to 4 of #3220 and leaves item 5 out of scope, as the issue decided. No changes were needed. It is merge-ready as is, except for the expected Reviewed (PR + issues)
Findings
FixesNone. Security reviewThe Performance reviewNo runtime change. The checker's run time is unchanged at about 3.4 s. Validation
|
# Conflicts: # docs/code-guidelines.md
Closes #3220
UNANNOTATED_DEBT. On251f08610, the new grep commands returned exactly the checker’s 79 caller files forslice_axis, 25 forsilu, and 16 forstack_arrays.ENUMERATION_THRESHOLDto zero and repair the small rosters. The baseline report listed 40 omissions across 21 annotations, including Arcee and Nanochat forpipeline_hint. I checked all 601 function/file pairs in the report withgit grep. An unnamed third caller ofrepeat_kvpassed against the old checker and fails with this change. Removing the three new annotations also fails.utils::gelu_approxcallers,src/models/gpt_neox.rsandsrc/vision/encoders/youtu_vl_merger.rs. The qualified grep returned exactly those paths. The crate root exports the separate FFI function.verify-cuda-runtime-dirand correct the prerequisite count. The Makefile count command in the issue printed12.utils.rsandlayers.rs. The checker’s function and class definitions match the base. The Rust, workflow and Makefile edits are comments only.Verification on macOS
make verify-used-bypassed all 23 fixture cases. The final line frompython3 scripts/ci/check_used_by.py --report | tail -1was:cargo fmt --check, CPU-onlycargo check(Rust 1.97.1), ShellCheck, Bash and Python syntax checks, and Ruff with the repository’s Python configuration passed. Ruff 0.17.6 with its own defaults still flags the same eight regex flag aliases as on the base. The full Rust suite, GPU execution and hosted CI were not verified.Both branches start at
251f08610. In a trial merge after #3219, onlydocs/code-guidelines.mdconflicted. Retaining the re-export rule and removing the small-roster exemption gave a passing combined checker and 32 passing fixture cases.