Repository navigation
nsys-ds41: the self-test's stub tree carries gate-bound.sh - #482
Conversation
The runner sources tools/gate-bound.sh at startup, and the self-test's stub tree had no copy, so the copied runner exited 70 before any two-card check: the lease, cap, gone and journal cases failed on that exit instead of their own paths. The stub tree now copies gate-bound.sh beside the other sourced files.
There was a problem hiding this comment.
Verdict: CLEAN: The stub now includes the helper required by the runner at startup.
Checked
Duplicates: 0 new functions, types or constants; the copy reuses the existing gate-bound.sh owner. Sibling depth stubs already copy it.
Complexity: one fixture-copy command; no added branches.
Silent failure: tools/ref/nsys-ds41.sh:535 returns a failed copy's status through the self-test to the process exit.
Tests: the four existing two-card cases assert exit status and named output. Without the copy, startup exits 70 instead of their expected 42, 78 or 69, so the assertions detect recurrence. Failure output names the case, actual status and expected status.
Gates: no pins, thresholds or test cases changed.
Escape catalog: none of C1–C4 matches the added line. Copy paths are quoted, the destination exists, and copy errors propagate.
Performance: self-test fixture setup only; no inference hot path changed.
Notes
Static validation only; self-tests were not rerun. No Rust file changed.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
4810e8f to
6db89b8
Compare
There was a problem hiding this comment.
Verdict: CLEAN: carried from 4810e8ff, not re-reviewed.
The approval of 4810e8ff stands for 6db89b86. This pull request's 1 commit are the same patches in the same order: git patch-id --verbatim (the changed lines, the lines around them and whitespace) and the subject are equal for every commit. That review ran under the reviewer instructions, tools and slag ledger that review this head, and it approved.
The base moved, and changed none of the files this pull request changes.
A carry covers each patch's own lines and the lines around them. What the base changed elsewhere is covered by CI on this head and by the landing gates.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
The review is done and the contribution check passed, so I'm merging this. |
What and why
Fixes #466. The
tools/ref/nsys-ds41.shself-test builds a stub tree for its two-card cases but did not copytools/gate-bound.shinto it. The runner sources that file at startup (tools/ref/nsys-ds41.sh:120) and exits 70 when it is missing, so thetwocard-lease,twocard-cap,twocard-goneandtwocard-journalcases all ended at rc 70 before reaching the paths they test. The stub tree setup now copiesgate-bound.shinto the stub'stools/, the same waytools/ref/depth-ds41-stub.sh:214and the other depth stubs do.Release notes: internal: the nsys-ds41 self-test runs its four two-card cases again instead of failing them all at startup.
Code shape
cpline, in the form the other stub trees use.|| return $?), like the copy above it.cargo fmtandcargo clippy: no Rust changes (one shell line).Duplication found or removed (
path:line), or "none": none.What I ran
All on an RTX 5090 machine.
7b31f231without the fix:bash tools/ref/nsys-ds41.sh --self-testendednsys-ds41.sh: self-test FAIL (13 cases, 4 failed). Each failure reads likeFAIL twocard-lease: rc 70 (want 42)withtools/ref/nsys-ds41.sh: line 120: tools/ref/../gate-bound.sh: No such file or directory.bash tools/ref/nsys-ds41.sh --self-testendednsys-ds41.sh: self-test ok (13 cases, 0 failed).LC_ALL=C just contrib-check --tier t0with the fix:DONE tier=t0 total=94 red=0 wall=280s.The two checks with the fix ran on
22e6256d, this same commit on7b31f231. The PR head4810e8ffis that commit onf9b38060; the main commits between the two bases change only the 0.3.5 version strings, andgit range-diffshows the commit unchanged.What I ran into
None of this blocks the PR.
tools/check-recipes.shruns many tool self-tests but not this one, sojust contrib-checkdoes not catch a failure here. This PR leaves that alone.Hardware (if the change is for a machine)
Not a hardware change.
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.