Skip to content

A half-failed dependency-ordered apply

What the engine does

tfpr apply is one job that walks the impacted set in dependency order. Units with no dependency between them apply side by side, two at once by default. When a unit fails, every unit downstream of it is skipped rather than applied against stale dependency outputs. Each skipped unit gets its own report comment saying dependency <label> did not apply, and the job exits non-zero so the run is red and the merge gate stays closed.

So a partial apply is the intended outcome, not a broken state. The units before the failure are applied. The failed unit is not. Everything after it is untouched.

Recover

  1. Read the failing unit's report comment. Fix the cause in the same PR.
  2. Push the fix. The engine re-plans the impacted units.
  3. Comment tfpr apply again.

Re-applying the whole set is safe. Units that already applied re-plan as no changes and apply nothing. There is no need to select the remaining units by hand, though tfpr apply -p <label> works if you want to narrow it.

If the failure is in a unit you cannot fix now, revert that unit's change in the PR so the impacted set shrinks, and land the rest.