Skip to content

ci(tests): optimize workflow jobs and windows shards#624

Merged
Chemaclass merged 3 commits intomainfrom
ci/optimize-tests-workflow
Apr 18, 2026
Merged

ci(tests): optimize workflow jobs and windows shards#624
Chemaclass merged 3 commits intomainfrom
ci/optimize-tests-workflow

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

Summary

  • Consolidate 5 standalone Ubuntu full-suite jobs (ubuntu, simple-output, simple-output-parallel, extended-output-parallel, strict-mode) into a single ubuntu matrix. Same coverage, fewer YAML blocks.
  • Rebalance Windows unit shards: 6 → 5 by merging unit c + unit coverage (≈1m45s, still under the unit d-p ceiling). Wall-clock unchanged, saves one runner per PR.
  • Rename windows-acceptance display to Windows acceptance - ... so the skipped-on-PR job no longer collides with the windows job name, and the unexpanded ${{ matrix.name }} template stops leaking into the UI.

Test plan

  • CI green on this PR (Ubuntu matrix, Windows matrix, locales, macOS, alpine)
  • On PR events: windows-acceptance shows as cleanly skipped with resolved matrix names
  • On push to main: windows-acceptance matrix expands and runs

@Chemaclass Chemaclass added the enhancement New feature or request label Apr 18, 2026
@Chemaclass Chemaclass self-assigned this Apr 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ Contributor Report

User: @Chemaclass
Status: Trusted contributor (whitelisted)

This user is on the trusted contributors list and was automatically approved.

Consolidate 5 standalone Ubuntu full-suite jobs into a single matrix.
Rebalance Windows shards (6 to 5) by merging `unit c` with `unit coverage`.
Rename Windows jobs to remove name collision between `windows` and
`windows-acceptance` (the skipped job on PRs now shows a clean label).
Keep acceptance matrix push-only.
@Chemaclass Chemaclass force-pushed the ci/optimize-tests-workflow branch from c5e07e0 to 1d5ff3a Compare April 18, 2026 10:47
Previous run showed `unit d-p` as the slowest shard at ~2m01s.
Split into `unit d-g` (6 files, ~820 LOC) and `unit h-p` (4 files,
~848 LOC, includes the heavy `helpers_test.sh` and `parallel_test.sh`).
Wall-clock target drops to ~1m per shard. Adds one runner, halves
Windows completion time.
GitHub evaluates job-level `if:` before matrix expansion, so a skipped
job with a `${{ matrix.name }}` template leaks the raw template into
the PR checks UI. Removing the explicit `name:` lets GitHub auto-name
from the job id (`windows-acceptance` when skipped, `windows-acceptance
(a-e)` etc. when running).
@Chemaclass Chemaclass merged commit c316dcc into main Apr 18, 2026
28 checks passed
@Chemaclass Chemaclass deleted the ci/optimize-tests-workflow branch April 18, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant