Repository navigation
feat(m e s o n): add --input-file to extend configure-cache key (closes #654) - #655
Merged
Merged
Conversation
#654) Repeatable --input-file PATH flag. Each file's content enters the cache key alongside existing inputs. Path recorded verbatim; set is deduped and sorted so argv order is irrelevant. Unblocks downstream callers whose source-change detection lives outside meson.build itself (e.g. FastLED's metadata-cache layer hashing test/example/source globs to a sidecar file). Pointing --input-file at that sidecar invalidates the cached configure tree when globs change, instead of forcing the caller to bypass the wrapper. Bumps zccache-meson-cache-v1 -> v2 so existing cache entries don't collide with the new key layout. Callers that don't pass --input-file see no behavioural change beyond the one-time v1->v2 invalidation. Three new integration tests pin the contract: input_file_change_busts_the_cache; input_file_is_distinct_from_no_input_file (domain partitioning); input_file_order_does_not_affect_key (sort + dedup contract). All 6 cli_meson_configure_cache tests pass on Windows.
zackees
added a commit
to FastLED/FastLED
that referenced
this pull request
Jun 4, 2026
Bumps zccache pin >=1.11.12 -> >=1.11.13 and feeds FastLED's SourceHashes (src/test/source globs) into the configure-cache wrapper's key via the new --input-file flag (forge-ci/zccache#655, closes forge-ci/zccache#654). Previously the wrapper bypassed itself whenever FastLED's metadata-cache layer triggered --reconfigure, because the wrapper hashed only meson.build files and would have served a stale-target tree on a source-only change. With --input-file we extend the cache key with a sidecar that holds (src_hash, test_hash, source_hash). The wrapper key now correctly invalidates on a source-trigger reconfigure, so the wrapper engages on EVERY path (not just non-reconfigure). Sidecar layout: written to <build_dir.parent>/.zccache-meson-inputs-<build_mode>.hash so it survives 'bash test --clean' (which wipes the inner build_dir) but stays per-build-mode unique. Path is recorded verbatim in the cache key (the wrapper's documented behaviour); FastLED's path is deterministic so cache lookups remain stable across invocations. Measured on Windows host (clang 21.1.5, zccache 1.11.13, --setup-only): * Cold first-time (fresh cache): ~22.0s (was 19.1s; +2.9s for v1->v2 cache-tag bump + slightly larger key) * Cold with cache restore: ~8.1s (was 9.2s; ~12% better, ~30% vs no-wrapper baseline) * Warm reconfigure-triggered: ~7.4s (was ~9-11s on the bypass path) Net: the reconfigure path now benefits from cache restoration instead of always re-running real meson; cold first-time pays a one-time penalty for the v1->v2 tag rotation.
This was referenced Jun 5, 2026
zackees
added a commit
to zackees/clang-tool-chain
that referenced
this pull request
Jun 5, 2026
The existing `zccache>=1.3.0` floor pre-dated a long string of behavior fixes that clang-tool-chain's zccache_shim entry-points silently depend on: - 1.11.11 — depfile-on-cache-hit fix (forge-ci/zccache#643). Without this, `deps = gcc` records `#deps 0` for every cached object and incremental builds produce stale `.obj` files after a git pull that changes transitive headers (symptom: `undefined symbol: ...` link errors hours after the header actually changed). - 1.11.12 — `meson configure` wrapper itself (forge-ci/zccache#649) - 1.11.13 — `--input-file` for the wrapper (forge-ci/zccache#655) - 1.11.14 — `--no-walk` for the wrapper (forge-ci/zccache#660) clang-tool-chain's `zccache_shim` entry-points (-clang, -clang-cpp, -emcc, -em-cpp, -wasm-ld, -clang-tidy, -iwyu) just exec into the installed zccache binary, so this bump affects only the installation-time floor — no shim code change is required. Tracker: forge-ci/zccache#662 Co-authored-by: Claude Opus 4.7 <[email protected]>
3 tasks
zackees
added a commit
to forge-ci/soldr
that referenced
this pull request
Jun 5, 2026
) (#678) Bumps every codified mention of the managed zccache version from 1.11.8 to 1.11.14, picking up six zccache CLI releases worth of fixes plus the new `meson configure --no-walk` wrapper (forge-ci/zccache#660, closes forge-ci/zccache#659). Also bumps the soldr workspace version 0.7.51 -> 0.7.52 so release-auto cuts a new soldr ship; setup-soldr's downstream issue (forge-ci/setup-soldr#379) can then pick up the new default `soldr-version`. Notable zccache pickups since 1.11.8: - 1.11.11 — depfile-on-cache-hit fix (forge-ci/zccache#643). Without this, `deps = gcc` records `#deps 0` for every cached object and incremental builds produce stale `.obj` files after a git pull that changes transitive headers. - 1.11.12 — `meson configure` wrapper itself (forge-ci/zccache#649). - 1.11.13 — `--input-file` for the wrapper (forge-ci/zccache#655). - 1.11.14 — `--no-walk` for the wrapper (forge-ci/zccache#660). On FastLED's tree this took cold-with-cache reconfigure from ~5.6s (walked hit) to 0.62s (no-walk hit) — see FastLED/FastLED#2761. Files touched (mechanical version-string replacements only): - `Cargo.toml` — workspace version 0.7.51 -> 0.7.52 - `Cargo.lock` — regenerated via `cargo update --workspace` - `contracts/zccache-runtime.v1.json` — `zccache.managed_version` - `crates/soldr-cli/src/fetch/mod.rs` — `MANAGED_ZCCACHE_VERSION` const - `crates/soldr-cli/src/zccache.rs` — 2x test-fixture path strings - `crates/soldr-cli/tests/cli_cache.rs` — 3x assert_eq strings - `crates/soldr-cli/tests/cli_install_zccache.rs` — 2x assert_eq strings Tracker: forge-ci/zccache#662 Co-authored-by: Claude Opus 4.7 <[email protected]>
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.
Closes #654. Adds repeatable --input-file PATH flag to zccache m e s o n configure. Each file's content enters the cache key alongside existing inputs.
Downstream callers whose source-change detection lives outside meson.build set (e.g. FastLED's metadata-cache layer that hashes test/example/source globs to a sidecar digest) can pass --input-file to invalidate the cached tree when the globs change, instead of bypassing the wrapper.
Key domain tag v1 -> v2 (one-time invalidation). Three new integration tests pin the contract: input_file_change_busts_the_cache; input_file_is_distinct_from_no_input_file; input_file_order_does_not_affect_key. All 6 cli_meson_configure_cache tests pass on Windows.