Skip to content

ci: assert every Main Watch workflow_run entry exists and runs on main (Part of #4935) - #4958

Merged
squid-protocol merged 1 commit into
mainfrom
ci/4935-main-watch-trim
Oct 12, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/4935-main-watch-trim

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4935 (Main Watch trim). Workflow edit allowed for this item; shepherd-reconcile.yml untouched (#4936).

Finding: the trigger list needs no trimming. Audited all 15 workflow_run entries in main-watch.yml against the current on: blocks and tests/tools/main_watch.py:

  • every name matches a workflow file;
  • every one runs on main today (push on main, nightly/weekly schedule, or dispatch: CodeQL and Muninn weekly, Det Sweep / Evidence Refresh nightly, Full Suite Gate via post-merge dispatch + nightly, the rest on push);
  • main_watch.py opens/comments/closes an issue on the verdict of every one of them (success/failure, push/schedule/dispatch). None is ignored.
    The earlier trims already landed (Evidence Refresh's push lane and Muninn's push trigger were removed; their stale push runs on main from before then are the only "push" history left).

Change: test_every_watched_workflow_exists_and_runs_on_main (tests/tools/test_main_watch.py): each watched name must be the name: of a workflow file, that file must be able to run on main (main push / schedule / dispatch; tags-only push does not count), and none may itself be a workflow_run consumer. Checked by mutation (an unknown name fails it). Hourly reconcile is untouched.

Main Watch runs/day (gh api, Main Watch only exists since 2026-10-10): 116 (10-10), 239 (10-11, a full day), 47 so far on 10-12; 402 in total (338 success, 57 skipped for cancelled upstream runs, 7 scheduled/dispatch). Before = after (no trigger removed): about 240/day, roughly 9 push-per-merge workflows x merges/day. Cutting that further means dropping a push-time watch (Smoke, Mainframe Ground Truth, Tree-sitter, Fact, Java, Ports, Estate, CICS, unicode: ~100 runs/week each), which loses the post-merge-red signal the owner built it for (#4825), so it is left as an owner decision.

Cross-repo: none.

Gates: pr_gates --fast 5/5, --ratchets 7/7 (0 skipped). test_main_watch.py 13 passed.

🤖 Generated with Claude Code

… (Part of #4935)

Audit of main-watch.yml's workflow_run list: all 15 workflows run on main (push/schedule/dispatch) and Main Watch acts
on each verdict, so no entry is trimmed; the test keeps it that way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 12, 2026 07:43
@squid-protocol
squid-protocol enabled auto-merge (squash) October 12, 2026 07:43
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit c3b0509 into main Oct 12, 2026
25 checks passed
@squid-protocol
squid-protocol deleted the ci/4935-main-watch-trim branch October 12, 2026 07:53
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