Skip to content

Reset Mergify poll backoff when queue admission is confirmed #1302

Done

Description

@eowca

A builder can wait almost two more minutes for loopzero merge --wait after Mergify moves the PR into the queue. The poller keeps the full accumulated delay from waiting for admission even after it sees the PR admitted.

In an offline replay with fixed 0.95 jitter, the queue became visible at 195s and the CLI confirmed it at 199.5s. The PR landed at 201s. The next landing read was at 313.5s, 112.5s after the merge. Restarting at the existing 30s interval at confirmation would read at 228s, saving 85.5s in this replay. At 18 such transitions per day that is about 26 builder-minutes. The daily figure assumes 18 matching transitions.

Reset the existing poll delay once when membership first becomes confirmed. Retain jitter, the same deadline and exact-head landing check. The delay can grow normally while membership stays confirmed.

Acceptance criteria

  • In a fake-clock queue replay that has reached the 120s cap before admission, the next landing read after confirmation uses the initial interval and detects the merge.
  • A stable queue state retains the existing backoff. A dequeue or changed head retains its existing verdict, and limits on total waiting time still apply.

Poll schedule · Mergify admission and landing · Existing queue deadline issue #1155

Activity

  1. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    Closed PR #1425 in the stale PR sweep. It conflicts with current main and has used both review rounds. This issue remains open for a fresh PR.

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