Skip to content

Own bounded content-authoritative tree fingerprints - #158

Merged
zackees merged 1 commit into
mainfrom
feat/tree-fingerprint
Sep 13, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/tree-fingerprint

Conversation

@zackees

@zackees zackees commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Build clients currently pull zccache's fingerprint/cache graph just to hash a selected source tree. Add fs-gated hash::blake3_tree using the existing kernel walker, glob matcher, and BLAKE3 implementation, with bounded parallel streaming reads and no new dependencies.

The versioned digest frames relative paths and fixed-size content hashes. It detects same-size edits with restored mtimes and changes to names/file membership, while remaining independent of root location and worker order. Exclusions prune directories; symlinks are skipped. Read/scan errors, non-UTF-8 paths, and resource-limit violations fail explicitly. The digest format intentionally differs from zccache's, causing one cache miss on client migration.

Validation: eight focused tree tests; full fs,fs-watch suite with RUSTFLAGS='-C link-arg=-Wl,--build-id=sha1' (required by the existing Linux build-ID test on this host); strict Clippy. The fastled-wasm consumer passes its complete default-feature Rust suite and Python tests, removes 11 lockfile packages, and moves its generic content-change/deletion coverage upstream. Local review found no blocking issues; its documentation precision suggestion was addressed with an invalid-filename regression test.

Closes #157. Refs #155. Coordinated with FastLED/cli#233 and FastLED/cli#229. This capability must land and be released before the consumer removes its temporary local dependency patch.

@zackees
zackees merged commit f2199d8 into main Sep 13, 2026
40 checks passed
zackees added a commit to FastLED/cli that referenced this pull request Sep 13, 2026
Refs #229, #233. Depends on forge-ci/kernal-api#158. Remove the zccache dependency graph; retain FastLED source-selection and cache invalidation policy.
@zackees
zackees deleted the feat/tree-fingerprint branch November 5, 2026 05:51
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.

Own bounded content-authoritative tree fingerprints for build clients

1 participant