Run slow CLI guard contracts in parallel

Merged
TE
2mo ago
+62-1

Summary

Split the two independent slow checks in workflow-guard-cli-scripts into a two-way matrix:

  • tui-resolution: cmux-tui client commit-resolution contract;
  • profiling: profiling support-script contract.

The reusable workflow keeps the same workflow-guard-cli-scripts job ID, so guard-status still gets one fail-closed aggregate result.

Measured motivation from #13431's CI run:

  • CLI guard total: ~117s;
  • cmux-tui commit resolution: ~60s;
  • profiling scripts: ~34s;
  • setup/checkout made up the rest.

Those two long checks have no dependency on each other, so serializing them only stretches wall time.

Related: #13095, #13325.


Summary by cubic

Runs the two slow, independent CLI guard contracts in parallel so they no longer serialize.

  • Splits workflow-guard-cli-scripts into a tui-resolution/profiling matrix, cutting the guard wall time from ~117s to about the longest contract (~60s) plus setup.
  • Keeps the same job ID so guard-status still receives one fail-closed aggregate result.
  • Adds a structural test on the reusable guard workflow that locks in the matrix wiring and runs as part of the ci guard group.