Skip to content

ci: the conflict gate leaves conflicting PRs green, and its 10-minute sweep runs about every 5 hours #20573

Open

Description

@mrveiss

Problem

pr-merge-conflict-gate can leave a conflicting PR showing a green no-merge-conflicts, and its re-check is far less frequent than its documentation says.

Measured 2026-11-01:

Cause not established. A plausible one is that the sweep read a mergeable value GitHub had not yet recomputed after the push; this has not been tested.

CI cost found: on those 10 heads, runs overlapping the time after the last main push were 2 runs, about 0.34 run hours, both ending cancelled. One moment's sample, not a rate.

Acceptance criteria

  • The cause of the green status on a conflicting PR is established with a reproduction or log evidence.
  • A PR that is conflicting stops showing success within a stated, measured bound after the push that caused it.
  • The workflow's header states the interval the schedule actually delivers.

Activity

  1. mrveiss commented on Nov 2, 2026

    @mrveiss
    OwnerAuthor

    Part of this landed in the merge train (PR #20594, 655489c4e6) via #20593: pipeline-scripts/pr_conflict_gate.py counts mergeable: true only when GitHub test merge has the live base tip and the PR head as parents, and re-reads an older test merge, leaving it pending if it does not settle. The header of .github/workflows/pr-merge-conflict-gate.yml now states the measured schedule (median 306.9 minutes over the latest 25 runs, 2026-11-01). Stays open: no reproduction or log evidence of the original green status is recorded here, and the bound after a push has not been measured on a live run.

  2. mrveiss commented on Nov 2, 2026

    @mrveiss
    OwnerAuthor

    First measurement with the fix (#20593), on the main push 655489c4e6. One sample.

    Time (UTC) Event
    09:24:11 Push to main
    09:32:35 Gate job starts: 8m24s waiting for a runner
    09:32:51 to 09:35:54 PRs checked

    Last status set 11m43s after the push, nearly all of it queue time. Results: 23 conflicting, 53 mergeable, 0 left unknown. Afterwards, of 77 open PRs: 23 GitHub false with status failure, 53 true with success, 1 true with no status yet, 0 conflicting PRs showing success.

    AC Status Evidence
    Cause established Ticked Log evidence: the sweep at 18:51Z set success on five heads that conflict with that main by local merge, 4 minutes after the push. mergeable: true read off an older test merge, seen live on 20 of 47 true readings.
    Bound stated and measured Open One sample. It stays open for two more main pushes, then the bound gets stated in the workflow header. Runner queue, up to about 10 minutes in the samples so far, dominates it.
    Header states the real interval Ticked .github/workflows/pr-merge-conflict-gate.yml, 306.9-minute median.

    Not shown by this run: whether any PR needed a re-read. The log records only final verdicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions