Skip to content

ci: speed up Windows jobs by trimming the msys2 install - #354

Merged
ViralBShah merged 2 commits into
masterfrom
ci-windows-faster
Jun 23, 2026
Merged

ViralBShah merged 2 commits into
masterfrom
ci-windows-faster

Conversation

@ViralBShah

Copy link
Copy Markdown
Member

The Windows jobs are slow in setup, not build. On the windows-11-arm clangarm64 job the steps were:

step time
Set up MSYS2 environment 318s
make 41s
make test 12s

The msys2 package cache is already enabled by default and hits (the log shows a 1.5 GB cache restore). The cost that remains is pacman extracting/installing the packages — ~3.5 min — which caching cannot avoid. We were installing base-devel (≈150 packages: autotools, perl, …) plus the full mingw-w64-*-toolchain meta.

This installs only what the build uses: make + a C compiler.

  • gcc environments (mingw64/mingw32/ucrt64): mingw-w64-<env>-gcc pulls in binutils + runtime, so they drop both base-devel and the toolchain meta.
  • clang environments (clang64/clangarm64): kept on the toolchain meta (no standalone binutils package provides ar/lld), but still drop base-devel.

Validated by the Windows CI on this PR (build + make test green on all five environments).

@codecov

codecov Bot commented Jun 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.12%. Comparing base (aeef4da) to head (5f16973).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #354   +/-   ##
=======================================
  Coverage   72.12%   72.12%           
=======================================
  Files         233      233           
  Lines        6135     6135           
  Branches     1607     1607           
=======================================
  Hits         4425     4425           
  Misses       1417     1417           
  Partials      293      293           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The msys2 package cache is already enabled by default and hits, but the
slow part of the Windows jobs is pacman *extracting* the installed
packages, which the cache does not avoid: on the windows-11-arm runner
the install step alone took ~3.5 min installing base-devel and the full
toolchain meta-package.

Install only what openlibm builds with — make plus a C compiler. The
-gcc packages pull in binutils and the runtime, so mingw64/mingw32/ucrt64
drop base-devel and the toolchain meta entirely. The clang environments
keep their toolchain meta (no standalone binutils package provides ar),
but still drop base-devel.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
mingw-w64-clang-*-clang requires lld and llvm-tools (which provides ar),
so it is a complete toolchain by itself. Drop the clang -toolchain meta
(lldb/openmp/flang/... are unused) to cut the slow windows-11-arm setup.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@ViralBShah
ViralBShah merged commit 5233e2c into master Jun 23, 2026
24 checks passed
@ViralBShah
ViralBShah deleted the ci-windows-faster branch June 23, 2026 00:06
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
openlibm 0.8.8

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* Update riscv64 fenv.c initialization to fix warnings by @ViralBShah in JuliaMath/openlibm#330
* Musl compatibility fixes for s390 and powerpc by @sertonix in JuliaMath/openlibm#331
* Fix cmake error for 4.x by @HIllya51 in JuliaMath/openlibm#333
* Bump actions/checkout from 4 to 5 by @dependabot[bot] in JuliaMath/openlibm#335
* Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in JuliaMath/openlibm#336
* Bump actions/checkout from 5 to 6 by @dependabot[bot] in JuliaMath/openlibm#338
* Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in JuliaMath/openlibm#339
* Bump actions/upload-artifact from 6 to 7 by @dependabot[bot] in JuliaMath/openlibm#341
* Bump codecov/codecov-action from 5 to 6 by @dependabot[bot] in JuliaMath/openlibm#342
* ci: add native ARM (Linux + Windows) and Intel macOS runners by @ViralBShah in JuliaMath/openlibm#345
* ci: workflow hygiene (concurrency, timeouts, loongarch fold, mips64, fork-safe codecov) by @ViralBShah in JuliaMath/openlibm#346
* riscv: Fix feholdexcept() by @AlekseyZhmulin in JuliaMath/openlibm#324
* CI: add -Werror strict lane and an auto-discovered regression-test harness by @ViralBShah in JuliaMath/openlibm#350
* ci: speed up Windows jobs by trimming the msys2 install by @ViralBShah in JuliaMath/openlibm#354
* ci: make codecov coverage status informational by @ViralBShah in JuliaMath/openlibm#358
* riscv: allow single-precision float ABI (lp64f / ilp32f) by @ViralBShah in JuliaMath/openlibm#349
* Fix powl() returning NaN instead of +0 on extreme underflow (#334) by @ViralBShah in JuliaMath/openlibm#351
* Make powl() thread-safe (#222) by @ViralBShah in JuliaMath/openlibm#355
* Bump codecov/codecov-action from 6 to 7 by @dependabot[bot] in JuliaMath/openlibm#359
* riscv64: Keep hard-float fenv functions private by @maleadt in JuliaMath/openlibm#360

## New Contributors
* @sertonix made their first contribution in JuliaMath/openlibm#331
* @HIllya51 made their first contribution in JuliaMath/openlibm#333
* @AlekseyZhmulin made their first contribution in JuliaMath/openlibm#324

**Full Changelog**: https://github.com/JuliaMath/openlibm/compare/v0.8.7...v0.8.8</pre>
  <p>View the full release notes at <a href="https://github.com/JuliaMath/openlibm/releases/tag/v0.8.8">https://github.com/JuliaMath/openlibm/releases/tag/v0.8.8</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!18388
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