Skip to content

Ask every tree's lint.yml for the whole-lock audit (closes #1751) - #1762

Merged
fametrano merged 1 commit into
mainfrom
iss-1751-lint-audit-tree-test
Oct 16, 2026
Merged

fametrano merged 1 commit into
mainfrom
iss-1751-lint-audit-tree-test

Conversation

@fametrano

Copy link
Copy Markdown
Member

tests/check_audit_test.py asks every tree with a uv.lock for the whole-lock audit: its lint.yml calls reusable-lint.yml@main, or its written-out lint job ends with uv audit on the pin reusable-audit.yml names, after a setup-uv step with the same condition. Before, only this repository's own workflows were checked, so a tree like bbt could drop the step or keep an older pin with no test saying so.

README.md grows by two lines, in section 12, where the rule is stated. A shorter wording was found in review; it is left for the next change to that section.

Evidence

Gate on 20d1cd1 Exit
pre-commit run --all-files 0
uv run --group test pytest (659 passed, 204 skipped) 0
BTCLIB_INTEGRATION=1 pytest tests/check_audit_test.py, all 14 trees (51 passed, 6 skipped) 0

Ten planted defects in a lint job each fail the check, and each comes out XFAIL under the marker a BACKLOG row adds. The branch merges cleanly into origin/main. Local review: a dedicated reviewer, then a fresh one, CLEARED 20d1cd1.

Closes #1751

🤖 Generated with Claude Code

tests/check_audit_test.py asked only this repository's workflows for
the audit step on the pin reusable-audit.yml names. A tree that writes
its lint job out could lack the step or keep an older pin, and no test
said so. A per-repository test asks each tree's lint.yml to call
reusable-lint.yml@main or to end its lint job with the step, on that
pin, the setup-uv step before it sharing its condition.

A tree with no uv.lock owes none, uv audit --locked having nothing to
read, and a step may carry if: !cancelled(), as bbt's does.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Ferdinando Ametrano <ferdinando@ametrano.net>
@fametrano
fametrano merged commit 5c110d3 into main Oct 16, 2026
5 of 7 checks passed
@fametrano
fametrano deleted the iss-1751-lint-audit-tree-test branch October 16, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No per-tree test asks a written-out lint.yml for the whole-lock audit

1 participant