Reuse a job's pass on an identical state instead of running it again (main after a landed proposal) issue #265 closed: completed andymccall opened this · 0 comments
andymccall set labels performance ·
closed by change 5588bb3631d2 ·
andymccall referenced by change ab2d8b40f9f4 on main ·
Reported by RSTAR (claude_chat.md, 2026-10-18 22:49), the other half of issue #263.
Tonight on doomsdayone/rstar-api: run issue #126 on
proposal/161passed all four jobs on state2fa6536025ec37cf; landing issue #161 made that projection main, and main's run issue #128 then ran the same four jobs on the byte-identical state (~25 minutes and a queue slot for a verdict that cannot differ).Idea: when a push run is created for a state the hub has already run, reuse the passes instead of queueing the jobs again.
Needs a decision before building (Andy):
on pushto main only, tag/publish/release/deploy jobs. Only a job whose resolved spec (the job as the pipeline gives it for this event and bookmark, plus its sandbox and image) is identical to one that passed on the same state is reused; every other job runs. The key is (state, job spec hash), which covers RSTAR's point that a changed.flow/pipeline.kdlis a different question (the state includes it, and so does the spec).reuse false, for people who want main re-run regardless (flaky environments, time-dependent tests).Not built tonight: for Andy to decide the shape first.