Skip to content

tri-comparison audit + history, graph-comparison history: plan jobs select by diff (Part of #6501) - #6543

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/6501-20261024T2100Z
Oct 24, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/6501-20261024T2100Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6501 (slice 4, after #6510). Plan jobs for tri-comparison-audit.yml, tri-comparison-history.yml and graph-comparison-history.yml, built on tests/tools/accuracy_audit_plan.py (stdlib only).

What changed

  • accuracy_audit_plan.py: three new audits.
    • tri-comparison (PR): the tree-sitter rule over tests/tri_comparison_baseline_<lang>.json (today javascript, typescript, zig). Emits langs; a language with no tri baseline selects nothing unless the diff touches a key the lens reads (then all).
    • tri-comparison-history (push): re-measures every corpus language into an in-place chart/ledger, so any languages/<lang>.py hunk beyond comments and _meta runs it.
    • graph-comparison-history (push): a diff beyond comments and _meta to a language in the call baseline or import_graph_corpus.json runs it; any other language falls back to the detection rule. EVERYTHING now accepts glob entries (call_graph_resolution*_baseline.json).
  • The three workflows get a plan job; the heavy job keeps its check name, needs: [plan], if: always() (a failed plan runs it), and every step is gated on needs.plan.outputs.run != 'false'. Required checks still report on every PR. The tri audit takes LANGS through env and runs --languages "$LANGS" --ci (or --all --ci for all/empty). The history plans diff from the last successful push run, not github.event.before. No shepherd workflow touched.

Class / Sibling gaps

Class: a per-language or ledger workflow with a broad paths: filter, no plan job and unconditional installs. This PR handles all three remaining members of the tri/graph-ledger family. Not here (5-file cap): the docs/graph_accuracy.md note for the three new audits. The broad PR workflows with no plan (codeql, muninn, estate-crucible, golden-crucible, crucible-path-independence, fact-crosscheck, ports-compile, rosetta-audit, unicode-gauntlet) stay with #6278 slice 4. None of these needs a burned-estate program.

Measurement (accuracy_audit_plan.py --audit X --replay 50, last 50 merged PRs)

workflow PRs it ran on before after notes
tri-comparison-audit 6 (12%) 5 (10%) language corpora scanned 18 -> 15 (3 baselined languages x 6 vs x 5 runs)
tri-comparison-history 4 (8%) 4 (8%) none skipped in this window
graph-comparison-history 8 (16%) 8 (16%) none skipped in this window

Honest read: in this 50-PR window almost every triggering PR also touched shared engine files or the tools, which run everything, so the saving is small here. The plan saves where it is designed to: a Haskell/Dart/PowerShell-only rule edit now runs no tri audit at all (--files .../haskell.py gives run=false), and comment/_meta edits skip all three. Runner-minutes per run when it does run are unchanged (successful runs, last 30: tri audit median 7.6 min wall, max 14.5; tri history median 7.7, max 19.5; graph history median 9.7, max 20.1). A skipped run costs one ~5 min-timeout plan job (a few seconds in practice) instead of that.

Tests / gates

  • tests/tools/test_accuracy_audit_plan.py (+~150 cases): every shared input runs; other events, empty diff, unplaceable/new/unreadable file run; comments, _meta and unread files skip; tri language selection and union; graph-history membership (call baseline + import corpus); glob entries; workflow structure (check name, plan job, every step gated, publish gated, LANGS via env, persist-credentials: false); every paths: entry is planned; replay.
  • pr_gates.py --fast: 7/7 pass. Tree-wide guards + tests/tools/test_accuracy_audit_plan.py, test_graph_accuracy_plan.py: 416 passed. No golden bless, ratchets or crucible check: no engine or parsing code changed.
  • Not run: --ratchets (no engine change), actionlint (not installed; YAML parsed).

🤖 Generated with Claude Code

…elect by diff (Part of #6501)

Extends accuracy_audit_plan.py with tri-comparison (per-language `langs` from the
tri baselines), tri-comparison-history and graph-comparison-history. Each
workflow gains a stdlib-only plan job; the heavy job keeps its check name and
runs if: always(), so a failed plan over-runs, never under-runs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 24, 2026 21:08
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 24, 2026 21:08
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6543 @ 5276c95: 1 failed check(s)

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40132883337/job/120988365107
repro: python -m pytest -q tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/tri-comparison-history.yml]
failing tests: tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/tri-comparison-history.yml]
errors:
fail-on-cache-miss: false
E AssertionError: {(135, 'apt')}
tests/core_engine/test_pipeline_pins.py:368: AssertionError
FAILED tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/tri-comparison-history.yml] - AssertionError: {(135, 'apt')}
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 204023
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 19919724a69692d5c81c4e9c566ce15191daadc5f81c060bd5d96e4a4dc2d164
Finalizing artifact upload
Artifact test-times-part-2 successfully finalized. Artifact ID 12575334429
Artifact test-times-part-2 has been successfully uploaded! Final size is 204023 bytes. Artifact ID is 12575334429
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40132883337/artifacts/12575334429
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/a1d498cc-b8c3-456a-bd2f-e9335b051c75' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 24, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (f988a10) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 24, 2026 21:58
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 24, 2026 22:00
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 30c6e35 into main Oct 24, 2026
49 of 51 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6501-20261024T2100Z branch October 24, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant