Repository navigation
test: keep CI/runner tooling names out of shipped files with lint-bench-refs - #4536
pithead-developer[bot] wants to merge 4 commits into
Conversation
…ch-refs The shipped surface (lib/, build/, os/, dashboard/, the compose file, the CLI completion, the config templates, README.md) carried bench job ids and tier names the appliance and the CLI ship to every user. lint-bench-refs refuses bench-ci, pithead-developer, adversarial-review, rig-e2e, tier4-e2e/kvm, CI_JOB_DIR and the bench job/runner phrases there, documents the product-vocabulary allow-list in CONTRIBUTING.md, and the three existing references are reworded to name the behaviour instead. Co-Authored-By: Claude Code <noreply@anthropic.com>
The gate scans install.sh; the CONTRIBUTING.md scope list omitted it. Co-Authored-By: Claude Code <noreply@anthropic.com>
…uard-that-fails-on-bench-ci-or-pd
|
FAIL What I investigatedThe PR description does not match the required three-section format. Reviewed head: What are the gaps
|
|
FAIL What I investigatedI reviewed PR #4536 at head 23798fe against issue #4245. The new gate and its self-test both run. It fails on develop's base, which has five hits, and passes on the head. GitHub checks are green. The two quoted bench jobs match the blocks I printed and are the only jobs on the head. The issue asks for the lint to fail anywhere outside changelog files. The PR narrows that to the files that ship, but its scope leaves out the ten docs/*.md files that scripts/release/bundle.sh copies into every release bundle. So a reference in those docs would reach the user's box without the gate catching it.
Reviewed head: What are the gaps
Models: claude-opus-5-5 (reviewer); claude-sonnet-5-5 x3 (angles) |
…ep errors Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Blocked on #4674. Required check |
What's the problem
Part of #4245
References to the project's private CI/runner tooling had crept into files that ship: the generated CLI carried a bench job citation in a comment, the appliance's boot-time hugepages unit script carried
tier4-e2ecitations, andos/KNOWN-ISSUES.mdcarried two more. Nothing stopped future PRs from adding more — an inventory hand grep had to hunt them by eye and flagged false positives on the product's own vocabulary (pithead-control, the stage paths) while it was at it.How I fixed it
scripts/lint/lint-bench-refs.sh, wired asmake lint-bench-refsintomake lintand the ci.yml Lints job: it refusesbench-ci/BENCH_CI,pithead-developer,adversarial-review,rig-e2e,tier4-e2e/tier4-kvm,CI_JOB_DIR, and the "bench job"/"bench runner" phrases (case-insensitive) in the shipped surface —lib/(the source of the generatedpithead),,build/,os/,dashboard/, the compose file, the CLI completion, the config templates,README.mdand the ten user docs the release bundle ships. The bare wordbench, job ids and SHAs stay usable; changelogs sit outside the scan, as dotests/, the otherdocs/pages, CI glue and the release tooling, which talk to the bench by design. The allow-list — stage paths and shell stage variables,pithead-control/X-Pithead-Control, genericPITHEAD_*inputs,miner-<n>dashboard test fixtures — is documented in CONTRIBUTING.md and pinned by the script's own--self-test, which also proves the scope boundary in both directions and refuses an empty enumeration. The scanner is plaingit ls-files+grep: it passes on a clean clone with neither tool installed.The three existing references are reworded to name the behaviour instead. In the hugepages overlay the tier-list comment repeated the measurement derivation
os/KNOWN-ISSUES.mdalready documents in full; per the comment policy it is deleted rather than reworded, and the same policy took the lifecycle comment block with the job citation with it.Here is the proof
bench-ci,BENCH_CI,pithead-developer,adversarial-review,rig-e2e,tier4-(e2e|kvm),CI_JOB_DIR, "bench job" and "bench runner" outside changelog files; barebenchstays out —bash scripts/lint/lint-bench-refs.sh --self-testflags all eleven token forms and the scoping leg fails a plantedos/overlay/reference while leaving atests/one clean.lint-bench-refs; each entry has a self-test case that keeps it clean.git ls-filesandgrep;bash scripts/lint/lint-bench-refs.shprints "bench refs OK — no CI/runner tooling reference among 949 shipped files".make lint-bench-refs) — all rows green on the merged head23798fea2(47 pass, 2 schedule-only skips) after merging develop, which brought the patched libzstd1 (fixed by Pull the fixed libzstd1 into the dashboard image on develop (#4537) #4604, closing Build image (dashboard) red: libzstd1 CVE-2026-124851 (HIGH) inherited from debian 13.7 base #4537).tier4-e2etargeted andtier4-kvmboot jobs on the head — the diff toucheslib/pithead/andos/overlay/, shipped files. Bothsuccesson23798fea2: e2e targeted 327 pass / 0 fail; kvm boot success with its two by-design non-required netwatch legs failing identically on develop's own tip (cited below) — no netwatch or egress code is touched by this diff. Blocks verbatim:Cross-head citation — the same two netwatch rows on current develop tip, same
successverdict (non-required legs, #4196):Run locally:
make lint-file-budget,make lint-pithead-build(build-pithead self-test),bash scripts/lint/lint-docs-voice.sh,bash scripts/lint/lint-path-references.sh, pinned shellcheck 0.11.0 clean, shfmt-dclean (local 3.14.1; CI holds 3.13.1).Ponytail pass: clean — one grep script plus its wiring; the self-test covers exactly the acceptance tokens, the changelog exclusion is the issue's own wording, and the three existing references are deleted/reworded, not refactored. Adversarial review pass: clean after it caught the
install.shomission from the documented scope list (fixed in a5a1cf9).