Skip to content

ci: the small audit checks run in one job (#4825) - #4844

Merged
squid-protocol merged 1 commit into
mainfrom
ci/4825-small-audits
Oct 10, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/4825-small-audits

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4825 (step 4: folded small audits). Draft; the orchestrator reviews and queues.

What changed

Four non-required audits that each took a runner on every PR are now steps of one job, Small audits in .github/workflows/small-audits.yml:

Folded (old workflow, old check name) Step Notes
dead-key-audit (#325) python tests/dead_key_audit.py --ci stdlib only
ast-accuracy-audit (#1200) python tests/ast_accuracy_audit.py --ci needs fetch-depth: 0 (pinned corpus tag) and pip install -e .
signal-contract-audit python tests/signal_contract_audit.py --ci stdlib only
golden-master-guard (#330, flag-golden-master-changes) diff-and-summary step non-blocking; writes only to $GITHUB_STEP_SUMMARY
  • Every step is if: always(), so one failure does not hide the others.
  • The job uses cache: pip keyed on the root pyproject.toml, the same key as smoke-test's Linux 3.12 cache.
  • Triggers: pull_request to main and v6-dev, unfiltered. golden-master-guard had no path filter, and signal-contract's docs/signal_contracts.md path would be lost to a docs/** ignore, so the union is unfiltered. Behaviour changes: the three main-only audits now also run on v6-dev PRs, and they run on docs-only PRs (cheap; they fail on nothing new).
  • Nothing the folded audits write is committed: the --ci runs check against committed baselines, and the golden-master step writes only to the job summary.
  • Check names of the four old workflows are gone; none is required. tests/tools/ci_digest.py NO_LOCAL now names Small audits. Doc references (CONTRIBUTING, contract_roadmap, .gitattributes, answer-key-guard, tree-sitter comment, engine-bugfix skill) point at the new file.

Not folded, and why

  • rosetta-audit (45 min, its own rosetta:rebless-owed labelled trigger and concurrency group)
  • call-graph-accuracy-audit, detection-accuracy-audit, graph-accuracy-audit, tree-sitter-accuracy-audit, tri-comparison-audit (each needs the crucible pins and its own corpora / longer runs; path-filtered, so folding would force them onto every PR)
  • answer-key-guard (path-filtered; folding would force it onto every PR for a 10-minute check)
  • unicode-gauntlet (push trigger plus a gitgalaxy/** path filter, 30 min)
  • archetype-validation, blocker-baseline (push or schedule triggers, write records)
  • ruff-audit, mypy-audit, det, full-suite, ground-truth (required checks, ruleset 24824983; names unchanged)
  • CodeQL, muninn, security scans

Runner saving

Per PR: 4 runner jobs become 1, saving about 3 runner-starts (each with checkout and setup-python) of a few minutes each. The four audits' steps run back to back, so the job takes roughly the sum of their work, not four queue waits.

Verification

  • python tests/tools/workflow_inputs.py: every path-filtered workflow triggers on what it reads (exit 0).
  • All workflow YAML parses.
  • pr_gates.py --fast: 5/5 pass. pr_gates.py --ratchets: 7 pass, 0 fail.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

dead-key-audit, ast-accuracy-audit, signal-contract-audit and
golden-master-guard each took a runner on every PR for a few minutes of
work. They are folded into one workflow (small-audits.yml, job
"Small audits") with one step per audit, each `if: always()` so one
failure does not hide the others. Not required checks; the required
names (ruff-audit, mypy-audit, det, full-suite, ground-truth) are untouched.

Triggers are the union: pull_request to main and v6-dev, unfiltered
(golden-master-guard had no paths filter, and signal-contract's
docs/signal_contracts.md path would be lost to a docs/** ignore). Two
audits now also run on v6-dev PRs. The baseline --ci runs and the
golden-master step write nothing that is committed (the step writes only
to the job summary).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 13:28
@squid-protocol
squid-protocol merged commit 0d6b3b6 into main Oct 10, 2026
24 checks passed
@squid-protocol
squid-protocol deleted the ci/4825-small-audits branch October 10, 2026 13:28
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.

1 participant