Repository navigation
lease: the perf stub matches the symbol argument, so a TMPDIR holding next no longer skips its held calls - #1004
Conversation
… `next` no longer skips its held calls
There was a problem hiding this comment.
Verdict: CLEAN: The stub matches symbol arguments and preserves held calls when temporary paths contain next.
Checked
Duplicates: 0 new functions, types or constants; grep found no sibling matcher with the same defect. No dryer pairs were available.
Complexity: no Rust functions changed; the argument scan is bounded by the argument count.
Silent failure: 0 new suppression sites; nonmatching arguments still reach the held-call executable.
Tests: syntax validation and 15 isolated argument cases passed. Mutation analysis at tools/ref/lease.sh:1690: restoring *next* skips the held call with the revised fixture, so the existing readiness assertion fails.
Gates: no thresholds, assertions or cases were removed or relaxed. The PR body includes FAIL-first output.
Escape catalog: no changed code matches C1–C4. The stub heredoc is quoted, and the new path remains quoted at its consumers.
Notes
Dryer and crapper did not run because no Rust file changed.
The full cancellation self-test was not run; validation covered syntax and isolated argument handling.
🔨 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. |
tools/ref/lease.sh --self-test의 perf stub이 경로에next가 들어 있는 TMPDIR에서 심볼 호출을 건너뛰던 것을, 심볼 인수만 보도록 고칩니다.What and why
In
tools/ref/lease.sh --self-test, the perf stub forperf annotateandperf reportexited early whennextappeared anywhere in its arguments. The arguments include the-ipath under$TMPDIR, so aTMPDIRcontainingnextmade the stub skip the held call for thestubsymbol. The bounded perf annotate and callers self-test steps then went wrong. The stub now walks the arguments and exits early only for-s nextor-S next. The perf phase directory is namedperf-next -s next -S next <phase>, so the existing assertions exercise both cases on anyTMPDIR.Release notes: internal: the lease self-test no longer depends on the name of its temporary directory.
Code shape
The review reads these first. A box left unticked needs one line of why.
copying it (
AGENTS.md"Common code first",docs/rust-quality.mdR14). Where I found an existing copy, Inamed it below.
(tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
tools/check-comments.sh).PIN(YYYY-MM-DD):and its reason.
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line), or "none": none.What I ran
Before the fix, with a
TMPDIRwhose path containsnext:After the fix, with the default
TMPDIR:AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.