Skip to content

fix(ci): one AgentCore reviewer concurrency group per trigger - #355

Merged
leon1418 merged 2 commits into
awslabs:mainfrom
rsmets:fix/agentcore-reviewer-concurrency-per-trigger
Oct 22, 2026
Merged

leon1418 merged 2 commits into
awslabs:mainfrom
rsmets:fix/agentcore-reviewer-concurrency-per-trigger

Conversation

@rsmets

@rsmets rsmets commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Problem

Both triggers of agentcore-reviewer.yml share one concurrency group. On a fork pull request, the pull_request run skips its job, but it first cancels the pull_request_target run that does the review. Fork pull requests therefore show a cancelled and skipped pair and get no criteria 1 and 2 review. #343, #347 and #348 all show this on their current heads.

Closes #354.

Solution

Add the event name to the concurrency group:

group: agentcore-reviewer-${{ github.event_name }}-${{ github.event.pull_request.number }}

Each trigger now cancels only its own older runs. The cost bound from #259 holds: the job condition means only one arm reaches the runtime for a given pull request, so a push storm still leaves at most one review in flight per pull request. The same fix also closes the reverse race on same-repo pull requests, where a skipped pull_request_target run could cancel the pull_request review.

The fork arm runs the copy on main, so this can only be verified after merge. To re-trigger an affected pull request afterwards, close and reopen it, or push to it.

Type of Change

  • New plugin/power/tool
  • Bug fix
  • Enhancement to existing content
  • Documentation update
  • Guardrail/CI update

Team Folder

  • advisor/
  • migrate/
  • solution-architecture/
  • Other: .github/

Checklist

  • I have read the CONTRIBUTING.md guidelines
  • My changes do not include hardcoded secrets, credentials, or internal-only content
  • I have run mise run build locally and it passes (fails only on runs provider-free plans with Terraform 1.13, a local Terraform version mismatch that fails identically on main)
  • I have updated documentation if needed
  • My changes are scoped to my team's folder only

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The skipping arm shared a group with the reviewing arm and cancelled it,
so fork pull requests got no review. Closes awslabs#354.
@rsmets
rsmets requested a review from a team as a code owner October 13, 2026 20:06

@igkins igkins 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.

lgtm

@leon1418
leon1418 merged commit 44f72f4 into awslabs:main Oct 22, 2026
9 checks passed
@rsmets
rsmets deleted the fix/agentcore-reviewer-concurrency-per-trigger branch October 22, 2026 19:56
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.

AgentCore reviewer: review every fork push with one concurrency group per trigger

3 participants