Skip to content

ci(monitor): assert main carries a release tag on a daily schedule - #846

Merged
scttbnsn merged 1 commit into
dev/v1.7from
ci/v1.7-main-released-monitor
Aug 21, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.7from
ci/v1.7-main-released-monitor

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Adopts the org's main-is-released invariant monitor (drydock is the first caller). Daily schedule + workflow_dispatch, contents: read, pinned to the shared workflow by SHA with the frozen-SHA guard updated in the same commit.

Two deliberate choices, both documented in the workflow header:

  • Not a required context, ever. A promotion PR's merge result is untagged by definition — the tag comes after the merge — so requiring this check deadlocks every promotion. It's an invariant monitor; the signal is a red Actions badge.
  • allow-prerelease: true. drydock promotes dev→main before every cut including RCs, so main correctly sits on an rc tag through each soak window (it's on v1.7.0-rc.2 right now). With the default false the monitor would run red for the whole soak by design and train everyone to ignore it. It still catches the real drift: an untagged main HEAD.

Cron is 05:10 UTC, collision-checked against every other cron in the repo. Workflow tests 208/208; the harden-runner guard already handles reusable-caller jobs (no runs-on/steps), same as the starchart caller.

✨ Added a daily scheduled and manually triggered monitor for an untagged main HEAD.

🔧 Changed:

  • Pinned main-is-released.yml to a shared reusable workflow by SHA.
  • Granted read-only contents access.
  • Allowed prerelease tags.
  • Updated the frozen reusable-workflow allowlist.
  • Kept the monitor non-required because release tags are created after promotion merges.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deployment failed for project drydock-website with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/codeswhat?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@scttbnsn, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 1 minute

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ef15d362-a28e-4dc9-ab95-7e77b19820e5

📥 Commits

Reviewing files that changed from the base of the PR and between b61c3d0 and c223a81.

📒 Files selected for processing (1)
  • .github/workflows/main-is-released.yml

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: 207ba5b9-52fc-4c41-ab1f-869f232e9e1b

📥 Commits

Reviewing files that changed from the base of the PR and between 1be5e86 and b61c3d0.

📒 Files selected for processing (2)
  • .github/tests/reusable-ci-config.test.ts
  • .github/workflows/main-is-released.yml

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


📝 Walkthrough

Walkthrough

Added the Main Is Released workflow. It runs daily at 05:10 UTC and supports manual dispatch. It invokes the pinned reusable workflow with read-only contents access and prerelease tags enabled. Updated the reusable CI configuration test with the frozen SHA and allowlist entry for the new workflow.

Suggested labels: second-opinion

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
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.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/v1.7-main-released-monitor

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.

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caller shape matches the reusable workflow's own docs; not-required rationale is right.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allow-prerelease justified by RCs cutting from main; SHA guard moved in the same commit.

@scttbnsn
scttbnsn enabled auto-merge (squash) August 21, 2026 15:31
@coderabbitai coderabbitai Bot added the second-opinion Summon Greptile for a second-opinion review label Aug 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@greptileai Review exact head b61c3d03041a66e34cb3171d95af2cc29d961c69. Review for correctness, security issues, and cross-file regressions.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn disabled auto-merge August 21, 2026 15:45
Adopts the org's main-is-released reusable workflow, pinned by SHA, as
a scheduled invariant monitor rather than a push-triggered or required
check: a push trigger would red-flag every dev->main promotion during
the merge-to-tag window, and a required check would deadlock every
promotion since its merge result is untagged until the tag lands after
the merge. allow-prerelease is on because dev/v1.7 syncs to main
immediately before every cut, including RCs, so main legitimately
sits on a prerelease tag through each soak window.
@scttbnsn
scttbnsn force-pushed the ci/v1.7-main-released-monitor branch from b61c3d0 to c223a81 Compare August 21, 2026 15:51
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deployment failed for project drydockdemo-website with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/codeswhat?upgradeToPro=build-rate-limit

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving after the amend: allow-prerelease removed per the org ruling, comment updated to match.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default-false is the ruled target state; caller otherwise unchanged.

@scttbnsn
scttbnsn enabled auto-merge (squash) August 21, 2026 15:51
@scttbnsn
scttbnsn merged commit 9bc7d9f into dev/v1.7 Aug 21, 2026
28 of 31 checks passed
@scttbnsn
scttbnsn deleted the ci/v1.7-main-released-monitor branch August 21, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

second-opinion Summon Greptile for a second-opinion review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants