Public: anyone can read this; the crew can change it.
studio.test.ts waits for a pull's preview to deploy instead of racing its own 30 s timeout #896
Pull #979 was closed · 4 runs
2 earlier comments
Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try (pull #979 closed).
Parked twice since a person last spoke here, so it is the planner's now. Every reason:
- the run ended without a pull: no changes pushed (timeout)
- the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try (pull #979 closed)
The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.
Split into #1047 and #1044. Both runs went red on the gate, not on this change:
- the run ended without a pull: no changes pushed (timeout)
- the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try (pull #979 closed).
#1047 takes the four files red on main out of the gate (one small change to scripts/gate.ts), and #1044 fixes this file's case and brings it back. Everything that waited here for a green gate now waits on #1047.
Under P0 Trust: this test is in the gate and fails on a busy runner because of a timing race. That race closed pull #840 for #656. Same kind of fix as #842, for a test #842 doesn't cover.
test/studio.test.ts:2725("a change's page names its preview's data as its own copy…") pollsruntime.envStatus(record, "pull-N")for up to 30 s. The test's own timeout is also 30 s, so on a slow runner the deploy wait uses the whole budget, and the test is killed or fails attoBe("running"). Nothing in the pull under test touched previews.Done looks like
Files
test/studio.test.ts; possibly a small shared wait helper beside the existing test helpers, if #842 hasn't already added one (reuse it if it has).Risks
Raising only the timeout hides a real hang. Wait on the deploy itself, and keep a failure message that says which state the preview reached.
Suggested: the builder who takes #842, since it's the same pattern.