SWE-AF icon indicating copy to clipboard operation
SWE-AF copied to clipboard

A repository without CI delays the factory PR handoff by about twenty-five minutes

Open AbirAbbas opened this issue 3 weeks ago • 0 comments

What happened

The 2026-11-11 G7 attempt on SWE-AF main 2587bc2dffbc opened a PR in a repository without CI. Its CI watcher ran for 1,505 seconds against a 1,500-second cap before returning no_checks. The factory's PR field waited for the build root to finish. This was latency after a successful publication, with no model work during the wait.

Replication

Use a fake gh response reporting no checks and the poller's fake clock to run the existing no-check tests in go/internal/cigate/watch_test.go, including TestNoChecksWhenPRHasNoCI and TestNoChecksWhenGhReportsNoChecksReported. Inspect when the no_checks result is returned. No real PR creation or twenty-five-minute sleep is necessary for this check.

Where

go/internal/roles/ci/ci.go: RunCIWatcher defaults wait_seconds to 1500 and poll_seconds to 30. go/internal/cigate/watch.go: WatchPRChecks keeps waiting on an empty check set until the full wait cap.

The fix

Support an explicit no-CI policy or shorter no-check startup grace period, while continuing to wait for checks that are expected to start.

Acceptance

Through the build's CI gate and factory handoff, an explicitly workflow-free repository should return no_checks promptly and expose its already-open PR without consuming the full CI wait cap.

AbirAbbas avatar Nov 12 '26 11:11 AbirAbbas