Skip to content

Observe required checks near the end of a bounded source wait #1303

Done

Description

@eowca

loopzero ready --wait can time out after required checks have already passed, forcing the builder to run the waiter again. The source-check poller uses half of its final interval for the last observation and then sleeps through the other half without reading GitHub.

With a fake clock, ready --wait=300 read at 0, 28.5, 85.5, 199.5 and 249.75s. The required check turned green at 280s, and the command slept through it and exited 3 at 300s. That is 20s after the check settled, plus the repeat command. The blind interval can approach 60s. At 18 cases like the replay per day, the wait after green alone is 6 builder-minutes. A 10-second replay with green at 8s produced the same false timeout.

Schedule the existing last observation as late as practical with a bounded time allowance for the read. Use the existing monotonic deadline and full source readiness checks.

Acceptance criteria

  • A fake-clock source readiness test has the required check pass after the old midpoint and early enough for the last bounded observation to finish. ready --wait returns 0 on the unchanged head.
  • Cover the source-check phase of merge --wait through the same helper. A read that cannot finish by the deadline still times out, and --wait=0 observes once.

Final interval · Bounded source reads · Source wait in merge

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