Skip to content

chore: Dispatcher pin freshness gate now runs on pushes to main and on a daily schedule - #2475

Merged
hatayama merged 1 commit into
mainfrom
chore/hatayama/dispatcher-pin-freshness-workflow
Aug 31, 2026
Merged

hatayama merged 1 commit into
mainfrom
chore/hatayama/dispatcher-pin-freshness-workflow

Conversation

@hatayama

@hatayama hatayama commented Aug 31, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #2474 (issue #2463).

Summary

  • The dispatcher pin freshness gate now actually runs on main: it moves from build-and-test.yml, which never runs on branch pushes, into its own workflow triggered by pushes to main, a daily schedule, and manual dispatch

User Impact

Changes

  • .github/workflows/dispatcher-pin-freshness.yml (new): checkout + setup-go (cache: false) + go run ./cmd/check-dispatcher-pin-freshness; contents: read only; action SHAs reused from existing workflows
  • .github/workflows/build-and-test.yml: the misplaced step removed
  • docs/dispatcher-pin-release-order.md: names the new workflow and why it also runs on a schedule

Verification

  • actionlint on both workflows: clean
  • go run ./cmd/check-dispatcher-pin-freshness from cli/release-automation against the live repository still passes for the current pin (dispatcher-v3.0.1)
  • The first automatic run happens on the merge commit of this PR; I will confirm it in the Actions tab

https://claude.ai/code/session_01XbhSMKK4LFud57iAmowDz7

Review in cubic

build-and-test.yml only runs on tag pushes, pull requests, and manual
dispatch, so the step added there in #2474 never executed on a push to
main and the lagging-pin gate was effectively inert. Give the check its
own workflow triggered by pushes to main, a daily schedule (a release can
be published without any later push), and workflow_dispatch.
@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1fc3bb3b-0787-4a1f-a418-50d1c6ba4986

📥 Commits

Reviewing files that changed from the base of the PR and between 4c27bb2 and 929e3eb.

📒 Files selected for processing (3)
  • .github/workflows/build-and-test.yml
  • .github/workflows/dispatcher-pin-freshness.yml
  • docs/dispatcher-pin-release-order.md
💤 Files with no reviewable changes (1)
  • .github/workflows/build-and-test.yml

Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

The change moves dispatcher pin freshness checks from the build workflow to a dedicated workflow. The new workflow runs on main pushes, daily schedules, and manual dispatches. Documentation describes the triggers and remediation paths.

Changes

Dispatcher Pin Freshness

Layer / File(s) Summary
Dedicated freshness workflow
.github/workflows/dispatcher-pin-freshness.yml, .github/workflows/build-and-test.yml, docs/dispatcher-pin-release-order.md
The new workflow runs check-dispatcher-pin-freshness on main pushes, daily schedules, and manual dispatches. The build workflow removes its duplicate freshness step. Documentation reflects the new execution and remediation paths.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 929e3

This change moves the dispatcher pin freshness check into a workflow that runs on pushes to main, daily, and manually, while preserving the existing failure behavior. No actionable merge-blocking risk remains after normal checks and review.

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant dispatcher_pin_freshness_workflow
  participant check_dispatcher_pin_freshness
  GitHubActions->>dispatcher_pin_freshness_workflow: Trigger on main push, schedule, or manual dispatch
  dispatcher_pin_freshness_workflow->>check_dispatcher_pin_freshness: Run command with GITHUB_TOKEN
  check_dispatcher_pin_freshness->>GitHubActions: Report pin freshness result
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: the dispatcher pin freshness gate now runs on pushes to main and on a daily schedule.
Description check ✅ Passed The description directly explains the workflow move, triggers, removed step, documentation update, verification, and user impact.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/hatayama/dispatcher-pin-freshness-workflow

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hatayama
hatayama merged commit 512ca0f into main Aug 31, 2026
13 checks passed
@hatayama
hatayama deleted the chore/hatayama/dispatcher-pin-freshness-workflow branch August 31, 2026 15:30
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