Repository navigation
Conversation
This branch has not been 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
#2196cell 4: every ESP32 build now records the prebuilt serving-ladder decision inbuild_info_<env>.jsonasprebuilt_libs: {used, source, key, sha256}(plusreason), per decision 1 ofdocs/design/artifact-serving-decisions.md. This is the last piece#1882's cold/warm hook needs — with it, the benchmark can tell its prebuilt arm from its source arm by reading the build output alone.A build that compiles from source records
used: falseand keeps the ladder's own reason (reason: nullwhen the opt-in was off, so "never asked" and "asked and declined" stay distinguishable).keyis the identity the publisher uploads under — the same{framework}/{version}/{arch}/fp-<sha16>relative pathprebuilt::tree_rootextracts into.How
crates/fbuild-build-engine/src/prebuilt_record.rs:PrebuiltLibsRecordwithsource(..)/served(..)constructors and its own serde + emitter tests.BuildInfogainsprebuilt_libs: Option<PrebuiltLibsRecord>withskip_serializing_if, following theshrinkprecedent, so a platform that never consults the ladder (every non-ESP32 one) keeps its JSON byte-identical.shrink_link::emit_build_infotakes the record and attaches it;build.rspasses it.prebuilt_core::consult_and_hydratenow returns theOutcomeinstead of just the log lines, withOutcome::record()(thebuild_infoblock) andOutcome::log_into(..);Outcome::silent()marks "prebuilt was never considered" (no line,used: false).Evidence (real output)
soldr cargo test -p fbuild-build-engine --lib→ 607 passed; 0 failed; 6 ignoredsoldr cargo test -p fbuild-build-esp --lib→ 282 passed; 0 failed; 7 ignored (10 inprebuilt_core, 4 new)soldr cargo fmt --all --checkclean;ci/enforce_platform_boundary.py --print-totals→rows=0; dylint_rows=0with_prebuilt_libsto ignore its argument failsthe_emitted_build_info_carries_the_block(assertion left == right failed); restored +touch, green again.Local
soldr cargo check -p fbuild-buildand clippy never got the build lease (phantom remote workerforge-ci-paired-worker-205f947/…/root-maintenance.lock, 3 attempts), soBuild fbuild+Dylint Fullin CI are the compile gate for this PR.#2196stays open: cell 3b (the packer must writeobjects.jsonand the pinned fingerprint inputs) is still missing, so no published tree is consumable yet.