Skip to content

ci: cache mcpp sandbox + install patchelf, run Linux elfpatch tests#18

Closed
Sunrisepeak wants to merge 1 commit into
mainfrom
ci/cache-sandbox-and-patchelf
Closed

ci: cache mcpp sandbox + install patchelf, run Linux elfpatch tests#18
Sunrisepeak wants to merge 1 commit into
mainfrom
ci/cache-sandbox-and-patchelf

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Two CI optimizations:

  1. Cache ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.3/registry (mcpp 0.0.3's bootstrapped musl-gcc + binutils + glibc + ninja + patchelf, ~800 MB). Fixed key safe since the set is version-pinned.

  2. apt install patchelf + narrow the filter from -ApplyElfpatchAuto_* to -ApplyElfpatchAuto_MacOs*. The three Linux* elfpatch tests now run on CI; only the two MacOs* ones (need install_name_tool) stay skipped.

Two CI optimizations:

1. **Cache mcpp's self-bootstrapped sandbox** (musl-gcc + binutils +
   glibc + ninja + patchelf, ~800 MB) under a fixed key
   `mcpp-sandbox-Linux-mcpp0.0.3`. Toolchain set is version-pinned
   by mcpp 0.0.3, so the key needs no source / lock fingerprint.
   Cache-hit runs skip the bulk download.

2. **Install patchelf via apt + un-filter Linux elfpatch tests.**
   The previous filter `-ExecutorTest.ApplyElfpatchAuto_*` skipped
   five tests because the runner had no `patchelf` /
   `install_name_tool`. With apt's patchelf in place, the three
   `Linux*` tests now run; only the two `MacOs*` ones (which still
   need `install_name_tool`) stay filtered:
   `--gtest_filter=-ExecutorTest.ApplyElfpatchAuto_MacOs*`.
@Sunrisepeak Sunrisepeak closed this May 9, 2026
@Sunrisepeak Sunrisepeak deleted the ci/cache-sandbox-and-patchelf branch May 9, 2026 22:28
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