Skip to content

ci: skip setup steps in ci.yaml units jobs when tests are skipped - #15381

Merged
lqiu96 merged 1 commit into
mainfrom
ci/skip-noop-units-setup
Dec 2, 2026
Merged

lqiu96 merged 1 commit into
mainfrom
ci/skip-noop-units-setup

Conversation

@lqiu96

@lqiu96 lqiu96 commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Simplify and guard units and units-8-runtime in .github/workflows/ci.yaml so setup steps are skipped when unit tests do not run:

  • Combine src and ci into a single units output on generated-libraries-filter.
  • Guard units-8-runtime (units (8)) at the job level with if: ${{ needs.generated-libraries-filter.outputs.units == 'true' }} so it skips cleanly without booting a runner.
  • Guard all steps in the units matrix job with if: ${{ needs.generated-libraries-filter.outputs.units == 'true' }} (kept at the step level so matrix check names still expand for branch protection).

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@lqiu96
lqiu96 added this pull request to stack #15366 December 2, 2026 04:51
@lqiu96
lqiu96 force-pushed the ci/skip-noop-units-setup branch 3 times, most recently from c17bdc3 to 82b2451 Compare December 2, 2026 19:04
@lqiu96
lqiu96 requested a review from jinseopkim0 December 2, 2026 19:36
@lqiu96
lqiu96 marked this pull request as ready for review December 2, 2026 19:36
@lqiu96
lqiu96 requested a review from a team as a code owner December 2, 2026 19:36
@lqiu96
lqiu96 force-pushed the ci/skip-noop-units-setup branch 2 times, most recently from d340338 to 4f5fcc7 Compare December 2, 2026 20:21
Base automatically changed from ci/skip-checkout-paths-filter to main December 2, 2026 21:43
@lqiu96
lqiu96 requested a review from a team as a code owner December 2, 2026 21:43
@lqiu96
lqiu96 force-pushed the ci/skip-noop-units-setup branch from 4f5fcc7 to 2fe344e Compare December 2, 2026 21:43
@lqiu96
lqiu96 removed this pull request from stack #15366 December 2, 2026 21:46
@lqiu96
lqiu96 enabled auto-merge (squash) December 2, 2026 21:49
@lqiu96
lqiu96 merged commit 0bcd453 into main Dec 2, 2026
191 checks passed
@lqiu96
lqiu96 deleted the ci/skip-noop-units-setup branch December 2, 2026 22:31
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.

2 participants