Skip to content

ci: add cron entries at :22, :37, :52 to ensure hourly runs - #159

Closed
don-petry wants to merge 2 commits into
mainfrom
fix/pr-review-hourly-schedule
Closed

ci: add cron entries at :22, :37, :52 to ensure hourly runs#159
don-petry wants to merge 2 commits into
mainfrom
fix/pr-review-hourly-schedule

Conversation

@don-petry

Copy link
Copy Markdown
Collaborator

Problem

GitHub Actions scheduled workflows are frequently delayed or skipped under load. The current single cron entry (7 * * * *) is configured to run hourly but in practice fires every 2–5 hours.

Solution

Add three additional cron offsets so at least one trigger fires within every clock-hour:

- cron: "7 * * * *"
- cron: "22 * * * *"
- cron: "37 * * * *"
- cron: "52 * * * *"

The existing concurrency group (pr-review-scheduled) with cancel-in-progress: false prevents overlapping runs — extra triggers will queue but not pile up.

GitHub Actions scheduled workflows can be delayed or skipped under
load. Adding three additional offsets so at least one trigger fires
per clock-hour. Concurrency group prevents overlapping runs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 13, 2026 13:13
@gemini-code-assist

Copy link
Copy Markdown

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 May 13, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@github-actions[bot] has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 50 minutes and 35 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f9c185a4-2e4d-40a2-806f-9c0dcdc6ff6e

📥 Commits

Reviewing files that changed from the base of the PR and between 9fd7361 and 745c231.

📒 Files selected for processing (1)
  • .github/workflows/pr-review.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/pr-review-hourly-schedule

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.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR increases the reliability of the scheduled PR review workflow by adding additional cron triggers within each hour to reduce the chance that GitHub Actions schedule delays/skips result in multi-hour gaps between runs.

Changes:

  • Add three additional schedule cron entries (:22, :37, :52) alongside the existing :07 schedule.
  • Keep a single concurrency slot for scheduled/manual batch runs while allowing per-PR slots for mention-triggered reviews.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +63 to +64
# Copilot engine reuses GH_PAT (a separate user PAT with Copilot subscription).
COPILOT_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
# Mention-triggered runs (repository_dispatch or workflow_dispatch with pr_url)
# get per-PR slots so they don't queue behind hourly batches or each other.
group: ${{ (inputs.pr_url || github.event.client_payload.pr_url) && format('pr-review-mention-{0}', inputs.pr_url || github.event.client_payload.pr_url) || 'pr-review-scheduled' }}
cancel-in-progress: false
@don-petry

Copy link
Copy Markdown
Collaborator Author

Closing — branch was forked from a bad state (empty file). Recreating from correct main.

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.

2 participants