You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Op waves: a rendered spec can say a wave has nothing to run at this commit #5059
Found while moving terragucci's apply waves onto chant's Op waves generators (terragucci issue 1411, terragucci PR 1451).
With renderSpec.runsAtHead, a product renders the job's own spec at the applied commit and leaves out of a wave the runs that must not plan there. terragucci leaves out the roots a pending estate migration plans: they plan through the migration until it applies. When that leaves a wave with no runs, chant's spec validation refuses the empty wave, so terragucci has to keep those roots in the spec and end its own wave hook early with "nothing to apply".
That works for the one-job shape, but before merge chant's split record job still runs for a wave whose plan job planned nothing, and a share or group job of such a wave runs too. Neither path is tested.
Done when:
A rendered spec can mark a wave as having nothing to run at this commit (an empty runs on a non-discover wave, or an explicit flag), and every job of that wave (one-job, deciding, share, group, and the split plan, gate, apply and record jobs) exits 0 with a line saying so, writing an applied outcome so the waves after it go on.
The shape the generator is handed still decides the jobs; only the rendered spec says the wave is empty.
Off by default: a spec without it validates and runs as before.
Activity