Repository navigation
perf(ci): persist bounded ESP-IDF compiler cache without reusing firmware images - #199
Conversation
…ct-head firmware builds
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Measured acceptance (first cold-cache CI, exact head |
Performance root cause
The pinned
espressif/idf:v5.5.4container has ccache enabled, but the ephemeral GitHub runner discards its object cache after every run. The Studio Native Preview intentionally rebuilds firmware at every PR HEAD so the ESP32 image embeds and attestsARSTACK_SOURCE_COMMIT; skipping this build or rewriting provenance would be unsafe.Bounded and verifiable solution
sdkconfigand workflow version. QML-only commits retain the same content key; firmware source changes get a new key, with safe object-level fallback.idf.py build, merged recovery image, source SHA/build ID embedded inside the binary, firmware SHA-256 verification, package manifest and exact-head source checks unchanged. No firmware artifact or release binary is reused.Acceptance
ESP32-P4 SMV Injectorexact-head CI passes.sourceCommitequals exact PR HEAD, andbuildIdremains visible in binary; release package SHA remains verified.This optimization deliberately avoids skip-build heuristics and preserves current safety/physical testing gates.