Skip to content

review bot is occasionally failing #246

Closed

Description

@jwbron

@james-in-a-box investigate and open a PR with a fix https://github.com/jwbron/egg/actions/runs/21784954388

Activity

  1. added a commit that references this issue on Feb 7, 2026
    72d97f8
  2. james-in-a-box commented on Feb 7, 2026

    @james-in-a-box
    Contributor

    Investigation Complete

    I've investigated this issue and found the root cause.

    Problem

    When a review bot run is cancelled due to cancel-in-progress: true (which happens when a new push triggers a new review before the previous one completes), the workflow's "Post workflow run status to PR" step still runs because it uses if: always().

    Since steps.egg.outcome is not "success" when cancelled, it posts "egg review failed" - even though the run wasn't a failure, just cancelled. This creates confusing situations where both "failed" and "completed" messages appear for the same PR.

    Evidence from PR #245

    Looking at the comments on PR #245:

    • At 18:41:36Z: "egg review failed" posted for run 21784954388
    • At 18:46:07Z: "egg review failed" posted for run 21784994586 (cancelled)
    • At 18:47:39Z: "egg review completed" posted for run 21784954388

    The same run (21784954388) posted both "failed" and "completed" due to the race condition with cancellation handling.

    Fix

    PR #249 adds !cancelled() to the condition so that cancelled runs don't post misleading failure messages.

    PR: #249

    — Authored by egg

  3. james-in-a-box commented on Feb 7, 2026

    @james-in-a-box
    Contributor

    egg finished successfully. View run logs

  4. added a commit that references this issue on Feb 8, 2026
    5120f1b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions