Skip to content

chore(compliance): run re-trigger sweep hourly (one issue per repo per hour)#445

Merged
don-petry merged 9 commits into
mainfrom
chore/retrigger-hourly
Jun 13, 2026
Merged

chore(compliance): run re-trigger sweep hourly (one issue per repo per hour)#445
don-petry merged 9 commits into
mainfrom
chore/retrigger-hourly

Conversation

@don-petry

Copy link
Copy Markdown
Contributor

Summary

Change the compliance re-trigger sweep from daily (0 5 * * *) to hourly (0 * * * *).

The per-run one-engagement-per-repo throttle (added in #432) is unchanged, so the net effect is at most one issue re-triggered per repo per hour. This drains each repo's stale-issue backlog ~24× faster while preserving the property that matters: never more than one concurrent dev-lead engagement per repo (no rebase storms, no token-burst).

Changes

  • .github/workflows/compliance-retrigger.yml: cron: '0 5 * * *''0 * * * *'.
  • scripts/compliance-retrigger.sh: docstring/comments updated (daily → hourly).

Why this is safe

  • The throttle caps work per run; raising frequency raises throughput, not burst size.
  • Issues with an open dev-lead/issue-* PR or a fresh in-progress label are skipped (dl_dev_lead_active), so an actively-worked issue is never re-cycled hour-to-hour.
  • Only stale issues (STALE_DAYS=2) are eligible, so this does not re-trigger fresh findings.

Note

Worst-case dev-lead invocations rise from ~1/repo/day to ~1/repo/hour while a backlog exists per repo; it self-limits to zero once a repo's eligible issues are cleared. The previous off-peak (12 AM Central) rationale is moot — hourly inherently spreads load.

Context

Follow-up to #431/#432 (sweep unbroken + throttled) and #438/#442 (Step 1 removed). Part of the Compliance program initiative.

Change the schedule from daily (05:00 UTC) to hourly (0 * * * *). The
per-run one-engagement-per-repo throttle is unchanged, so this yields at
most one issue re-triggered per repo per hour — draining each repo's
backlog ~24x faster while still avoiding concurrent dev-lead runs in a
single repo. Update the script docstring/comments to match.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@don-petry don-petry requested a review from a team as a code owner June 11, 2026 12:58
Copilot AI review requested due to automatic review settings June 11, 2026 12:58
@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.

@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

More reviews will be available in 16 minutes and 59 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: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f873c40f-d6b1-4833-b5f7-25aff25f6d84

📥 Commits

Reviewing files that changed from the base of the PR and between 73231f6 and db5d106.

📒 Files selected for processing (2)
  • .github/workflows/compliance-retrigger.yml
  • scripts/compliance-retrigger.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/retrigger-hourly

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.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the documentation comments in scripts/compliance-retrigger.sh to reflect that the compliance-retrigger script now runs on an hourly cadence instead of a daily cadence. There are no review comments, and I have no feedback to provide.

@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

@don-petry don-petry enabled auto-merge (squash) June 11, 2026 12:59

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

Adjusts the compliance “re-trigger stale issues” sweep cadence from daily to hourly to drain stale compliance-audit backlogs faster, while preserving the existing one-engagement-per-repo per run throttle introduced in #432.

Changes:

  • Updated the scheduled trigger in the compliance re-trigger workflow to run hourly (0 * * * *).
  • Updated scripts/compliance-retrigger.sh header/comments to reflect the new hourly cadence.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/compliance-retrigger.yml Changes the cron schedule from daily to hourly while keeping existing concurrency/permissions setup.
scripts/compliance-retrigger.sh Updates documentation/comments to describe the hourly schedule and retry behavior.

Comment thread scripts/compliance-retrigger.sh Outdated
@don-petry don-petry disabled auto-merge June 11, 2026 13:04
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (applied)

Changes committed and pushed.

@don-petry don-petry enabled auto-merge (squash) June 11, 2026 13:05
@don-petry don-petry disabled auto-merge June 11, 2026 13:11
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — waiting on PR blockers (intent: review-changes)

PR: #445
No changes were committed, but the PR still has blocking checks or reviews (failing or cancelled checks, or changes-requested reviews). The retry cron will re-attempt automatically. Next attempt after: 2026-06-11T13:43:26Z

@don-petry

Copy link
Copy Markdown
Contributor Author

Note

@don-petry I reviewed this PR and no code changes were needed, but it still has blocking checks or reviews (failing or cancelled checks, or changes-requested reviews), so I cannot mark it done yet. I'll re-check automatically.
Next attempt after: 2026-06-11T13:43:26Z

@don-petry don-petry enabled auto-merge (squash) June 11, 2026 13:13
@don-petry don-petry disabled auto-merge June 11, 2026 13:21
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

@don-petry don-petry enabled auto-merge (squash) June 11, 2026 13:22
@don-petry don-petry disabled auto-merge June 11, 2026 13:33
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — fix-bot-comment (no-changes)

Agent reasoning
   - CodeRabbit: **APPROVED**
   - Copilot, Gemini, don-petry: COMMENTED (no changes requested)
## Summary
**Bot: SonarCloud**  
**Issues addressed: 0**  
**Files analyzed: 2**
- `.github/workflows/compliance-retrigger.yml` — No issues
- `scripts/compliance-retrigger.sh` — No issues
**Result:** ✅ **No changes needed.** The SonarCloud analysis passed with zero new issues, zero security hotspots, and zero duplication on new code. The code changes (scheduling update + documentation) are valid and require no fixes.
**Note on cancelled CI checks:** The `Lint`, `Secret scan (gitleaks)`, and `ShellCheck` checks show `conclusion: "cancelled"` from older runs, but these are being retried with pending/queued status in newer runs. These are infrastructure/workflow state issues, not code issues, and will be resolved once the retry completes.

@don-petry don-petry enabled auto-merge (squash) June 11, 2026 13:34
@don-petry don-petry disabled auto-merge June 11, 2026 13:44
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — fix-bot-comment (no-changes)

Agent reasoning
- CI checks: No failures, timeouts, or cancellations — all are queued, in_progress, pending, or completed (skipped/success)
- Reviews: CodeRabbit approved; Copilot, Gemini, and don-petry only commented without requesting changes
- Result: **Zero Tier 1 blockers**
---
## Summary
**Bot:** SonarCloud  
**Issues addressed:** 0  
**Files changed:** None  
The SonarCloud quality gate has **passed** with zero new issues, zero security hotspots, and no actionable findings. All CI checks are either passing or still in progress (none have failed). No code changes are required.
The PR is ready for review and merge once remaining CI checks complete.

@don-petry don-petry enabled auto-merge (squash) June 11, 2026 13:44
@don-petry don-petry disabled auto-merge June 11, 2026 13:52
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

@don-petry don-petry enabled auto-merge (squash) June 11, 2026 13:53
@don-petry don-petry disabled auto-merge June 11, 2026 13:56
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — fix-bot-comment (no-changes)

Agent reasoning
Issues addressed: 0
- No issues identified — Quality Gate passed with 0 findings
Files changed: None (no fixes required)
Skipped: 0
```
The PR is ready for merge from a code quality perspective.

@don-petry don-petry enabled auto-merge (squash) June 11, 2026 13:56
@sonarqubecloud

Copy link
Copy Markdown

@don-petry don-petry disabled auto-merge June 11, 2026 14:02
@don-petry don-petry enabled auto-merge (squash) June 11, 2026 14:07
@don-petry don-petry merged commit 8678852 into main Jun 13, 2026
19 of 21 checks passed
@don-petry don-petry deleted the chore/retrigger-hourly branch June 13, 2026 20:12
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.

3 participants