Repository navigation
Provider CI: pack only what the test jobs read - #1882
Merged
Merged
Conversation
The provider test products archive was 1,065 MiB at zstd -3. Of its 4,519 MiB of files, 1,948 MiB were dSYM bundles, 333 MiB SwiftPM's bare clones in .build/repositories and 62 MiB host tools (the -tool macro and Modules-tool); no test step reads them. The coverage report reads the coverage maps in the binaries, and SwiftPM reads the bare clones only to check out a dependency whose checkout is missing or at another revision. The archive now leaves them out, and zstd packs it at level 9 with a 2 GiB long-distance window, which stores the test bundle's metallib copies and the code the executables share once. On the products of run 42318853015 that is 265 MiB. Unpacking passes the same window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- ci-test-products.py: drop the redundant `Modules-tool` entry from INTERMEDIATES; the `-tool` suffix rule in `unread` already drops it with the host tools. Size the archived files with one lstat per entry (stat.S_ISREG) instead of is_file, is_symlink and lstat. - test-ci-test-products.py: name the round trip for what it drops now, and note that it proves the unpack passes the long window. - build.md: list `Modules-tool` with the host tools, as the code does. No behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The provider test products hand-off (
scripts/ci-test-products.py,.github/actions/provider-ci-products) packs only what the test jobs read, and packs it tighter.Composition of the provider archive of run 42318853015 (1,065 MiB at zstd -3), by kind:
.dSYMbundles (test bundle 948,darkbloom465,darkbloom-enclave438, others 98)llvm-covreads the coverage maps in the binaries..build/repositories(bare git clones)darkbloom,darkbloom-enclave,darkbloom-publish,darkbloom-fan-helper,cluster-member-fixture-child)mlx.metallibcopies in the test bundle (2 x 213 MiB).build/checkoutsmlx.metallibin the bin directoryMLXHuggingFaceMacros-tool, its dSYM,Modules-tool)build.db,debug.yaml,description.json, ...)swift test --skip-buildopensbuild.db; the lock-retry guard depends on it)The object files,
ModuleCache,indexandModuleswere already out (#1817).Changes
scripts/ci-test-products.py: the archive also leaves out every.dSYM(at any depth: the test bundle holds its own), the-toolhost products andModules-tool, and.build/repositories.-T0 -9 --long=31to pack,--long=31to unpack. The 2 GiB long-distance window stores the metallib copies and the code shared by the test bundle and the executables once.scripts/test-ci-test-products.py: the kept and dropped fixtures cover the new rules (a nested test-bundle dSYM, a-toolfile and.product,Modules-tool,repositories; the metallib copies,build.db,description.json, a checkout's alternates file and a-toolname outside the build directory stay). The round trip proves the unpack passes the long window: a--long=31frame does not decompress without it.docs/developer/build.md(Build Once) andchangelog.d/ci-smaller-provider-products.md.Unchanged: every test selection, the toolchain check, the fixed path
/private/tmp/dinf, the lock-retry guard, the self-tests and the coverage report.Measurements (laptop, 10 cores, products of run 42318853015)
-3-3-6 --long=31-9 --long=30-9 --long=31(chosen)Darkbloom test VMs have 32 GiB; the 2 GiB unpack peak is before the tests start.
Before and after (CI)
Before: run 42318853015 (#1872's head, this branch's base). After: run 42322758594, attempt 2 (provider shards on Darkbloom) and attempt 1 (the route answered
profile_degraded, so every shard ran on Blacksmith). The build job ran onblacksmith-12vcpu-macos-27each time.The before run had
mimo_audio: true, so its shard 2 also ran the MiMo audio fixture steps; this PR's runs hadmimo_audio: false. Without the download, shard 1 took 7.5 min before and 7.2 min after. Attempt 2's run wall includes Cluster Runtime Tests shard 5, which lost its Darkbloom runner (see below).Checks on the after runs:
Each provider shard ran the same Swift Testing runs as before (shard 1: 950, 180, 1,078 and 1,501 tests; shard 2: 790, 883 and 1,868). The only test names missing are two
MiMoV26ManagedAudioProviderTestscases that run only withmimo_audio: true.No SwiftPM
Fetching,CloningorCreating working copyline in any shard log: SwiftPM loads the package graph from the checkouts andworkspace-state.jsonwithout.build/repositories.Each shard's audit of its selections against
swift test list --skip-buildand its coverage report passed.The coverage report keeps its denominators (90,530 regions, 28,909 functions, 193,069 lines in shard 1, as before).
Non-green checks
Provider Testsgate failed on it. The same shard passed in attempt 1. Not rerun: attempt 2 was this PR's one rerun, made to get Darkbloom provider shards.d-inferenceandd-inference-console-ui-dev: fail on every open PR and on Run the real-geometry rows check in two halves on separate GPU shards #1872; this PR touches neither app.Refactor pass
Done by a dedicated refactor subagent, commit 012a0f4. No behavior change:
Modules-toolleaves INTERMEDIATES, because the-toolsuffix rule inunreadalready drops it with the host tools (build.mdnow lists it with the host tools too). The file-size sum takes onelstatper entry (stat.S_ISREG). The round-trip self-test has a new name and a comment: the unpack fails without--long=31, because a frame packed from a pipe declares the full 2 GiB window. The action, the changelog, the fixtures, the zstd flags, the toolchain check and the fixed path are unchanged.Trade-off
Without dSYMs, a stalled-test sample (
scripts/run-provider-test-watchdog.py,/usr/bin/sample) names each frame's function and offset, but not its file and line. No CI step reads the dSYMs.Not done
DarkbloomProviderPackageTests.xctest, so a per-shard split would not shrink either download.🤖 Generated with Claude Code