Skip to content

Run slow CLI guard contracts in parallel - #13496

Merged
teamleaderleo merged 5 commits into
mainfrom
codex/ci-parallel-cli-guards
Sep 21, 2026
Merged

teamleaderleo merged 5 commits into
mainfrom
codex/ci-parallel-cli-guards

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Written for commit ab30ae3. Summary will update on new commits.

Review in cubic

@coderabbitai

coderabbitai Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: manaflow-ai/cmux/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: ace2ccd1-05e5-4a6d-94d0-5e92b42777c4

📥 Commits

Reviewing files that changed from the base of the PR and between 7739f10 and ab30ae3.

📒 Files selected for processing (2)
  • .github/workflows/ci-guards.yml
  • tests/test_ci_guard_workflow_structure.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@teamleaderleo
teamleaderleo enabled auto-merge (squash) September 21, 2026 23:25
@github-actions

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@teamleaderleo
teamleaderleo merged commit 288265f into main Sep 21, 2026
41 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant