Skip to content

nsys-ds41: the self-test's stub tree carries gate-bound.sh - #482

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-review-bot-issue-466-nsys
Oct 19, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-review-bot-issue-466-nsys

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

What and why

Fixes #466. The tools/ref/nsys-ds41.sh self-test builds a stub tree for its two-card cases but did not copy tools/gate-bound.sh into it. The runner sources that file at startup (tools/ref/nsys-ds41.sh:120) and exits 70 when it is missing, so the twocard-lease, twocard-cap, twocard-gone and twocard-journal cases all ended at rc 70 before reaching the paths they test. The stub tree setup now copies gate-bound.sh into the stub's tools/, the same way tools/ref/depth-ds41-stub.sh:214 and 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

  • No second copy. One cp line, in the form the other stub trees use.
  • Model code holds only architecture facts. No model code changes.
  • Dead code is gone.
  • No silent failure. A failed copy returns its status (|| return $?), like the copy above it.
  • Comments state what is true now. No comment changes.
  • No relaxed gate.
  • cargo fmt and cargo 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.

  • FAIL-first, on main 7b31f231 without the fix: bash tools/ref/nsys-ds41.sh --self-test ended nsys-ds41.sh: self-test FAIL (13 cases, 4 failed). Each failure reads like FAIL twocard-lease: rc 70 (want 42) with tools/ref/nsys-ds41.sh: line 120: tools/ref/../gate-bound.sh: No such file or directory.
  • With the fix: bash tools/ref/nsys-ds41.sh --self-test ended nsys-ds41.sh: self-test ok (13 cases, 0 failed).
  • LC_ALL=C just contrib-check --tier t0 with the fix: DONE tier=t0 total=94 red=0 wall=280s.

The two checks with the fix ran on 22e6256d, this same commit on 7b31f231. The PR head 4810e8ff is that commit on f9b38060; the main commits between the two bases change only the 0.3.5 version strings, and git range-diff shows the commit unchanged.

What I ran into

None of this blocks the PR. tools/check-recipes.sh runs many tool self-tests but not this one, so just contrib-check does 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 초안 리뷰는 제가 직접 했습니다.

@github-actions github-actions Bot added the tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo label Oct 19, 2026
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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@juliankang4
juliankang4 force-pushed the fix-review-bot-issue-466-nsys branch from 4810e8f to 6db89b8 Compare October 19, 2026 10:33

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit d76528c into midagedev:main Oct 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nsys-ds41: self-test stub tree omits gate-bound.sh

1 participant