Skip to content

feat: implement issue #333 — [Fleet Monitor] petry-projects/ContentTwin — .github/workflows/pr-review-mention.yml - #336

Merged
don-petry merged 2 commits into
mainfrom
dev-lead/issue-333-20260714-2159
Jul 14, 2026
Merged

feat: implement issue #333 — [Fleet Monitor] petry-projects/ContentTwin — .github/workflows/pr-review-mention.yml#336
don-petry merged 2 commits into
mainfrom
dev-lead/issue-333-20260714-2159

Conversation

@don-petry

Copy link
Copy Markdown
Contributor

Closes #333

Implemented by dev-lead agent. Please review.

…in — .github/workflows/pr-review-mention.yml
Copilot AI review requested due to automatic review settings July 14, 2026 22:13
@don-petry
don-petry requested a review from a team as a code owner July 14, 2026 22:13
@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 gemini-code-assist Bot left a comment

Copy link
Copy Markdown

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 BATS tests for the pr-review-mention workflow to align with a concurrency fix (issue #333) that sets cancel-in-progress to false and keys the concurrency group on both the event name and the PR/issue number. The feedback suggests refactoring a Python one-liner assertion in the tests to assign the cancel-in-progress value to a local variable, which avoids complex nested quote escaping and improves readability.

Comment thread scripts/tests/pr-review-mention-workflow.bats Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request addresses issue #333 by adjusting the concurrency strategy in the pr-review-mention workflow so that bursts of comment/review events no longer generate “0-job failure” runs that inflate Fleet Monitor’s failure rate.

Changes:

  • Updated .github/workflows/pr-review-mention.yml concurrency to use cancel-in-progress: false and a group keyed by github.event_name plus PR/issue number to avoid cross-cancellation.
  • Updated the Bats guard tests to validate the new concurrency behavior and group keying.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/pr-review-mention.yml Switches concurrency to avoid startup-failure cancellations and scopes groups by event + conversation number.
scripts/tests/pr-review-mention-workflow.bats Updates workflow guards to assert cancel-in-progress: false and validate the new group key components.

@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) July 14, 2026 22:19
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 22 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

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.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a178cee8-397e-495e-a180-8b72017158b2

📥 Commits

Reviewing files that changed from the base of the PR and between be67649 and 21352db.

📒 Files selected for processing (2)
  • .github/workflows/pr-review-mention.yml
  • scripts/tests/pr-review-mention-workflow.bats
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev-lead/issue-333-20260714-2159

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.

@sonarqubecloud

Copy link
Copy Markdown

@don-petry
don-petry disabled auto-merge July 14, 2026 22:20
@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) July 14, 2026 22:21

@donpetry-bot donpetry-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.

Automated review — APPROVED ✓

Risk: MEDIUM
Reviewed commit: 21352db8ca27a7566b032518d284da78cc03cbb7
Review mode: triage-approved (single reviewer)

Summary

Fixes issue #333 (Fleet Monitor 50% failure rate on pr-review-mention.yml) by switching workflow concurrency to cancel-in-progress: false with a group keyed on event name + PR/issue number, so superseded pending reusable-caller runs are recorded as clean cancellations instead of 0-job startup failures. Mirrors the validated add-to-project.yml fix (#331). Guard tests updated accordingly. All CI green, sole review thread resolved.

Linked issue analysis

Linked issue #333 reports a 50% failure rate (43/86 runs) on pr-review-mention.yml, caused by the prior #323 fix: cancel-in-progress: true cancelled pending reusable-caller runs, which GitHub records as startup failures (0 jobs). This PR substantively addresses the root cause — cancel-in-progress: false makes superseded runs record as clean 'cancelled', and keying the group on github.event_name + issue/PR number prevents cross-cancellation between distinct event types and unrelated conversations. Dropping the github.ref fallback is safe: every triggering event carries issue.number or pull_request.number.

Findings

No blocking findings.

  • Workflow change is concurrency-only; permissions: {} unchanged, no new actions or secrets, actionlint (Lint) passed. The multiline >- folded expression is a standard Actions pattern and validated by CI.
  • Bats guard tests correctly updated to assert cancel-in-progress: false and event+conversation group keying, including gemini-code-assist's readability suggestion (local variable extraction) — thread resolved.
  • Secret scanning MCP tool unavailable in this environment; gitleaks CI check passed and the diff contains no secret-like content.

CI status

All required checks green: CI (Lint, Format, Test, gitleaks secret scan), CodeQL, SonarCloud Quality Gate passed (0 new issues, 0 security hotspots), AgentShield, dependency-audit (ecosystem jobs skipped as expected — no matching manifests changed), CodeRabbit success. Mergeable; merge state BLOCKED only pending required review.


Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review.

@don-petry
don-petry merged commit f2ff479 into main Jul 14, 2026
22 checks passed
@don-petry
don-petry deleted the dev-lead/issue-333-20260714-2159 branch July 14, 2026 22:34
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.

[Fleet Monitor] petry-projects/ContentTwin — .github/workflows/pr-review-mention.yml

3 participants