Repository navigation
[worker:coverage] cover MissingRuntimeDeps::check interpreter and dep-cache paths - #1677
Conversation
…e paths Add tests for the allow_missing_interpreter opt-out, the transitive-runtime-dep cache-miss skip, and the usr/bin interpreter fallback, closing the remaining uncovered branches of the checker. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
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: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
Included review availability: 4 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 WalkthroughWalkthroughThree tests were added for ChangesRuntime dependency checks
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The added tests cover the stated checker outcomes; no actionable merg 8000 e risk is identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
A rabbit checks the scripts at night Comment |
Summary
Resolves the coverage gap reported in
#1387forcheck::outputs::MissingRuntimeDeps::check(regions=241).The checker already had tests for its skip paths (skip_checkers, missing package, uncached build), the no-ELF-imports pass path, the missing-interpreter fail path, and the satisfied-interpreter pass path. This PR adds three tests covering the remaining observable branches:
allow_missing_interpreter = trueopt-out: a shebang script whose interpreter is absent still reportsPassbecause the interpreter check is skipped.Skip.usr/bininterpreter fallback: a shebang script whose interpreter is provided by a runtime dep underusr/bin(not top-levelbin) reportsPass.Each test asserts the observable
CheckVerdictand error list, not internal field assignments.Verification
cargo build --workspace --all-targetspassed.cargo test -p check --lib outputspassed (9/9, including the 3 new tests).cargo fmt --all --checkpassed.The host backstop re-runs fmt-check + build
--locked+ clippy-D warnings+ test before the PR opens.Closes #1387
Summary by CodeRabbit
usr/binpath.