Skip to content

ci(registry): auto-merge the weekly rebuild after a green gate#25

Merged
robertoecf merged 1 commit into
mainfrom
ci/registry-auto-merge
Jun 17, 2026
Merged

ci(registry): auto-merge the weekly rebuild after a green gate#25
robertoecf merged 1 commit into
mainfrom
ci/registry-auto-merge

Conversation

@robertoecf

Copy link
Copy Markdown
Owner

What

Make the weekly registry rebuild fully hands-off (auto-merge) while keeping a PR in the history.

Why it was broken

Every weekly run has failed for >1 month. The branch pushes fine, but the create-PR step was denied:

##[error]GitHub Actions is not permitted to create or approve pull requests.

That's the repo setting Allow GitHub Actions to create and approve pull requests — now enabled. Result was orphan registry-update/* branches and no PR; the data only reached main via manual PRs (#17, #21).

What changed

  • Validate gate: rebuilt registry.sqlite is checked by test_registry_router.py (runs against the real embedded file) before anything merges — a broken/empty rebuild fails here and never reaches main.
  • Auto-merge: open the PR, then squash-merge it directly. PRs opened by the built-in token don't trigger CI (anti-recursion), so native --auto would wait forever — the inline gate is the merge gate instead. Merge retries to ride out the post-create mergeability window.
  • success() guards on every conditional step so a failed gate can't fall through to open/merge.

No PAT and no branch protection required.

The weekly rebuild has failed every run for over a month: it pushes the
registry-update/* branch fine, but the create-PR step was denied by the
"Allow GitHub Actions to create and approve pull requests" repo setting,
leaving orphan branches and no PR. (That setting is now enabled.)

Make the job fully hands-off while keeping a PR in the history:
  - validate the rebuilt registry.sqlite inline (test_registry_router runs
    against the real embedded file) so a broken rebuild never reaches main;
  - open the PR, then squash-merge it directly. PRs opened by the built-in
    token don't trigger CI (anti-recursion), so native --auto would wait
    forever; the inline gate is the merge gate instead. Retry the merge to
    ride out the post-create mergeability window;
  - guard every conditional step with success() so a failed gate can't fall
    through to open/merge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@robertoecf, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 35 minutes and 11 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 09b9607d-4db2-4f36-aa39-a05cc93600fe

📥 Commits

Reviewing files that changed from the base of the PR and between f71768f and da90d91.

📒 Files selected for processing (1)
  • .github/workflows/rebuild-registry.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/registry-auto-merge

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 and usage tips.

@robertoecf robertoecf merged commit 26be085 into main Jun 17, 2026
6 checks passed
@robertoecf robertoecf deleted the ci/registry-auto-merge branch June 17, 2026 00:09
robertoecf added a commit that referenced this pull request Jun 26, 2026
The weekly rebuild has failed every run for over a month: it pushes the
registry-update/* branch fine, but the create-PR step was denied by the
"Allow GitHub Actions to create and approve pull requests" repo setting,
leaving orphan branches and no PR. (That setting is now enabled.)

Make the job fully hands-off while keeping a PR in the history:
  - validate the rebuilt registry.sqlite inline (test_registry_router runs
    against the real embedded file) so a broken rebuild never reaches main;
  - open the PR, then squash-merge it directly. PRs opened by the built-in
    token don't trigger CI (anti-recursion), so native --auto would wait
    forever; the inline gate is the merge gate instead. Retry the merge to
    ride out the post-create mergeability window;
  - guard every conditional step with success() so a failed gate can't fall
    through to open/merge.

Co-authored-by: Roberto <robertoecf@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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