Skip to content

Enable cancel-in-progress for review dispatches on the same PR #1357

@fullsend-ai-retro

Description

@fullsend-ai-retro

What happened

PR #944 had multiple review agent runs queued because the fullsend shim workflow uses cancel-in-progress: false in its concurrency group. When Renovate force-pushed twice in quick succession (e.g., at 06:13:36 on May 20), two fullsend workflow runs triggered, potentially dispatching overlapping review agent runs.

What could go better

Setting cancel-in-progress: true on the concurrency group for the review dispatch path would automatically cancel stale review runs when a new push arrives. This is standard practice for CI workflows and would prevent wasted compute on outdated commits. Confidence is high — canceling a review for a superseded commit is always safe since a new review will run on the latest commit.

Proposed change

In the fullsend shim workflow template (or documentation for shim setup), change the concurrency configuration to use cancel-in-progress: true for review-related triggers (opened, synchronize, ready_for_review). The concurrency group key should include the PR number to ensure only same-PR runs cancel each other. Example: concurrency: { group: 'fullsend-review-${{ github.event.pull_request.number }}', cancel-in-progress: true }.

Validation criteria

After the change, verify that rapid successive pushes to the same PR result in only the latest review run completing. Check that close/retro dispatches are on a separate concurrency group and are not affected.


Generated by retro agent from konflux-ci/project-controller#944

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions