Skip to content

ci: main-watch sees dispatched Full Suite Gate runs (PAT dispatch + reconcile) (#4859) - #4860

Merged
squid-protocol merged 2 commits into
mainfrom
ci/main-watch-dispatched-runs
Oct 10, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
ci/main-watch-dispatched-runs

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Fixes #4859
Part of #4840

Root cause (verified, see #4859): runs created with the repo GITHUB_TOKEN (post-merge.yml's dispatch of the Full Suite Gate) raise no workflow_run, so main-watch never saw their failures.

Changes

  • post-merge.yml: the dispatch uses AUTOMATION_PAT (falls back to GITHUB_TOKEN if unset).
  • main-watch.yml: checks out main only; watch job (workflow_run) and new hourly/manual reconcile job, both calling tests/tools/main_watch.py.
  • tests/tools/main_watch.py: pure decide(); dedupes by run URL; closes only on a success newer than the issue; failures with cancelled legs say so, and a failure with no failed leg says it is not a verdict on the code.
  • Tests in tests/tools/test_main_watch.py; docs/ci.md section.

Status

pr_gates --fast passes; test_main_watch.py 11 pass (after merging main). --ratchets: all pass except ports, which also fails on origin/main + a tests-only change (#4861) because the local CardDemo corpus isn't at its pinned ref: environment, not this PR. actionlint is not installed here.

Dry run against the live repo (main_watch.py reconcile --dry-run, read-only) produces exactly one action: a "Failed again" comment on #4840 for run 38083925457, naming the failed windows/3.10 leg and the 2 cancelled macOS shard-3 legs.

AUTOMATION_PAT exists; the shepherd already uses it for gh run rerun and shepherd:matrix dispatches, which need actions: write.

Only provable after merge

A dispatched Full Suite Gate run completing on main should produce a Main Watch workflow_run run (PAT dispatch), and the reconcile job (run it via workflow_dispatch) should comment on #4840 with the latest run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

@squid-protocol squid-protocol changed the title WIP: main-watch sees dispatched Full Suite Gate runs (PAT dispatch + reconcile) ci: main-watch sees dispatched Full Suite Gate runs (PAT dispatch + reconcile) (#4859) Oct 10, 2026
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 22:37
@squid-protocol
squid-protocol enabled auto-merge (squash) October 10, 2026 22:38
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit b6112c4 into main Oct 10, 2026
25 checks passed
@squid-protocol
squid-protocol deleted the ci/main-watch-dispatched-runs branch October 10, 2026 22:48
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.

main-watch never sees dispatched Full Suite Gate runs (GITHUB_TOKEN dispatch raises no workflow_run)

1 participant