Repository navigation
feat(prebuilt): canonical prebuilt-core fingerprint over component stamps (#1882) - #2169
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 24, 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.
Unit 4 of decision 8a/8 (#1882): the canonical prebuilt-core build fingerprint — the key a published core object is addressed by.
Why
With #2162 / #2164 / #2166 / #2167 / #2168 on
main, every framework component carries an identity taken in staging, and the framework term is already a field of the esp32 fast-path metadata. What does not exist yet is the object that turns those identities plus the rest of one exact compiler invocation into a servable key. Decision 8 lists the inputs explicitly: schema + ABI version, toolchain identity, core/SDK/skeleton component IDs, recipe, MCU, variant dir, the ordered canonical argv per TU, and config/header digests. This PR is the function that hashes exactly that set, and nothing else.What
crates/fbuild-library/src/library/esp32_framework/prebuilt_core.rs(public module):CoreBuildInputsmcu,sdk_variant,units: &[CompileUnit],config: &[ConfigDigest]CompileUnit/ConfigDigestEsp32Framework::prebuilt_core_plan(&inputs) -> Option<PrebuiltCorePlan>Noneunless the framework has an identity and every input is presentPrebuiltCorePlanfingerprint()(64-hex sha256) plusmcu(),sdk_variant(),core_version()canonical_argv_digest/canonical_config_digestNonefor an empty or unnamed listProperties, each carried by a test:
CompileUnit::argv: the caller must pass canonical argv (prefix-mapped, no temp dirs). Anything else is not this module's guess to make.None: no object is addressed, no stamp is written, the caller compiles from source (test 20).None.ABI_SCHEMAversions the whole thing.Real test output
RED proven, not asserted: replacing
self.framework_identity(...)?with a constant makesan_unstamped_framework_never_plansandincomplete_inputs_never_planFAIL (5 passed / 2 failed); restoring it returns 7/7. Adding a-Dto one unit, changing a header digest, or changing the toolchain version each move the fingerprint.LOC:
prebuilt_core.rs225,prebuilt_core_tests.rs302 (sibling test module, sotests.rsstays at 967).Not in this PR
--prebuilt-core/FBUILD_PREBUILT_COREflag: a flag with no fetch ladder behind it would be unreachable code, which is what decision 8 rejects about the pilot. The flag, the eligibility predicate, the Catalog reader and the rung ladder are the next units.v1/...shape but the<product>name for core objects is not yet ruled, so this PR stops at the fingerprint.#1882 stays open.