Repository navigation
feat(prebuilt): stamp the arduino-esp32 core component identity in staging (#1882) - #2162
Merged
Merged
Conversation
Decision 8a of docs/design/artifact-serving-decisions.md: framework identity is per component and is taken in that component's staging directory, never as a hash of an installed tree. This lands the first component and the machinery every other component reuses. - component_id: content id over one component's files (relative path, bytes, exec bit, symlink target), with component-root-relative subtrees excluded; stamp read/write (`component-identity.json`, schema 1, `recipe` counter). A tree with no stamp, an unreadable stamp, or a foreign schema has no identity, and read_stamp says so instead of guessing. - Esp32Framework: the core component is stamped in staging, after every staging mutation and before the atomic rename, excluding tools/esp32-arduino-libs and tools/.libs-archives - the subtrees the SDK/MCU merge writes into after the core install commits, so SDK patching cannot move the core identity. CORE_RECIPE is 0 because no post-extract mutation of the core's own subtree runs on main today; adding one means bumping it. - The stamp file and the install sentinel are excluded from the id, so the id taken in staging equals the id of the installed tree it became. Verified (real output): `soldr cargo test -p fbuild-packages-fetch --lib` 299 passed / 0 failed / 2 ignored (15 new); `-p fbuild-library --lib` 383 passed / 0 failed / 9 ignored (1 new); clippy on both crates with --all-targets -D warnings exit 0; fmt check exit 0; platform boundary rows=0 and ci.test_enforce_platform_boundary 14 tests OK. Not done here: nothing consumes the stamp yet (no fingerprint, no planner, no ladder), and the closure wiring is proven at function level only - a real ensure_installed install is the true proof and needs a full framework download, which belongs with the ignored e2e cells of #2133. Per decision 8c nothing is published without explicit maintainer approval. #1882 stays open (remaining units: SDK/MCU component stamps, patch-sites moved ahead of the stamp, the hidden --prebuilt-core opt-in, the 8b ladder).
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Dylint's ban_manual_slash_normalize rejected the hand-rolled
`value.replace('\\', "/")` helper in component_id.rs, which was the only
real failure on PR #2162 (the rest were cascade + the missing CI summary).
- exclusion names and symlink targets now go through
NormalizedPath::new(..).display_slash(), which also strips Windows
extended-length prefixes (\\?\ / \\?\UNC\) the hand-rolled version kept.
- relative_key drops the redundant re-normalization; NormalizedPath already
renders slash-separated, so a literal backslash in a Linux file name is no
longer silently folded into a separator.
- delete slash_key entirely.
This was referenced Nov 23, 2026
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.
feat(prebuilt): stamp the core component's identity in staging (#1882)
Decision 8a of docs/design/artifact-serving-decisions.md: framework identity
is per component and is taken in that component's staging directory, never as
a hash of an installed tree. This lands the first component and the machinery
every other component reuses.
exec bit, symlink target), with component-root-relative subtrees excluded;
stamp read/write (
component-identity.json, schema 1,recipecounter).A tree with no stamp, an unreadable stamp, or a foreign schema has no
identity, and read_stamp says so instead of guessing.
staging mutation and before the atomic rename, excluding
tools/esp32-arduino-libs and tools/.libs-archives - the subtrees the SDK/MCU
merge writes into after the core install commits, so SDK patching cannot
move the core identity. CORE_RECIPE is 0 because no post-extract mutation of
the core's own subtree runs on main today; adding one means bumping it.
taken in staging equals the id of the installed tree it became.
Verified (real output):
soldr cargo test -p fbuild-packages-fetch --lib299passed / 0 failed / 2 ignored (15 new);
-p fbuild-library --lib383 passed /0 failed / 9 ignored (1 new); clippy on both crates with --all-targets
-D warnings exit 0; fmt check exit 0; platform boundary rows=0 and
ci.test_enforce_platform_boundary 14 tests OK.
Not done here: nothing consumes the stamp yet (no fingerprint, no planner, no
ladder), and the closure wiring is proven at function level only - a real
ensure_installed install is the true proof and needs a full framework download,
which belongs with the ignored e2e cells of #2133. Per decision 8c nothing is
published without explicit maintainer approval.
#1882 stays open (remaining units: SDK/MCU component stamps, patch-sites moved
ahead of the stamp, the hidden --prebuilt-core opt-in, the 8b ladder).
Dylint follow-up (commit 1a241cd):
ban_manual_slash_normalizerejected thehand-rolled
replace('\\', "/")helper, the only real red check on the firstpush (local clippy cannot see that lint). Exclusion names and symlink targets now
go through
NormalizedPath::new(..).display_slash(), which also strips Windowsextended-length prefixes; the redundant re-normalization in
relative_keyisgone. Re-verified: packages-fetch 299 passed / 0 failed / 2 ignored, clippy
-p fbuild-packages-fetch --all-targets -D warningsexit 0, fmt exit 0,boundary rows=0 + 14 boundary unittests OK, and
Dylint Fullgreen on CI.