Skip to content

Print the resume command when source-check waits expire - #1624

Merged
mergify[bot] merged 1 commit into
mainfrom
lean178/1468-source-wait-replacement
Nov 26, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
lean178/1468-source-wait-replacement

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Print the resume command when source-check waits expire

Context and goal

  • Goal: A source-check or mergeability timeout tells the operator how to resume the same command.
  • Problem: The shared timeout identifies a head but leaves the operator to infer whether to retry readiness or merge.
  • Context: Both commands return exit 3 for an expired wait. A final failure remains a refusal.

Closes #1470

The receipt-message issue #1468 was implemented by #1498. Earlier closing references for the two issues were transposed.

Acceptance

  • An expired source-check or mergeability wait names the command to resume and preserves exit 3.
  • An explicit configuration is retained in the retry advice. Terminal failures keep their existing output and exit behavior.

Notes

  • Supersedes Print the resume command when source-check waits expire #1484. Carries the source-wait wording and the dash-prefixed config repair from 6f9719f. When applying it to main, the timeout assertions retained main’s separate terminal-failure hint.
  • Existing source-wait tests reproduced the missing advice. The focused ready and merge wait suite passed after the wording update, including the explicit configuration case.
    Documentation impact is limited to CLI output. The architecture and wait semantics are unchanged.

Base

main @ 74f5867

Validation

Recorded for 5704ebfdcec7

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

Architecture-Review: unchanged; the timeout message changes while wait budgets and terminal verdicts are preserved.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by codex on 5704ebfdcec7f4a7f2421f51c565aba710d91831, 51.5s: approve (0 critical, 0 important, 1 suggestion)

Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: e4590e23d2b5a0b1f35252825db891bee5aafaca00cdd010501c022953397c2c

Comment thread src/loopzero/cli.py

def _print_check_wait_timeout(pr: github.PR, args: argparse.Namespace | None) -> None:
waiting_for = "GitHub to compute mergeability" if pr.mergeable == "UNKNOWN" else "required checks"
command = ["loopzero", args.command if args else "ready", "--wait"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Preserve a custom wait duration in the resume command

Both ready --wait=10 and merge --wait=10 now suggest retrying with bare --wait, which changes the timeout from 10 seconds to 30 minutes. The same change turns --wait=0 from a single observation into a polling wait. Consider printing --wait=<seconds> when args.wait differs from the default and covering that behavior in the existing timeout assertions.

@eowca
eowca marked this pull request as ready for review November 26, 2026 08:09
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as b388ed8 at 08:14 UTC

4 min in the queue, 3 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 08:09 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1691
  • ✅ Merged 08:14 · b388ed8 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit b388ed8 into main Nov 26, 2026
20 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1468-source-wait-replacement branch November 26, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tell agents which command to resume after a source-check wait expires

1 participant