Repository navigation
Closed
Description
Incident evidence
Validated against origin/main at 2705844b9c061b060a26e09ffda4b22c1766a4db on 2026-07-13.
The Validate Boards run exits before comparing offsets:
Error: esp32 configs not found at .../crates/fbuild-build/src/esp32/configs
Both the module documentation and configs_dir() in ci/check_flash_offsets.py still name the pre-split path. The actual JSON files are under crates/fbuild-build-esp/src/esp32/configs.
Root cause
The crate split moved the ESP32 implementation and configs, but the repository-relative CI helper was not updated. The offset data and the authoritative pioarduino source are not implicated.
Implementation runbook
- In the module docstring at the top of
ci/check_flash_offsets.py, replace the old config path with:crates/fbuild-build-esp/src/esp32/configs/esp32*.json - In
configs_dir(), change only the crate directory component fromfbuild-buildtofbuild-build-esp. Keep resolution relative toPath(__file__).resolve().parent.parent; do not depend on the caller's current directory. - Add
ci/test_check_flash_offsets.pyusing the standard-libraryunittestmodule. Its discovery test must:- call
configs_dir(); - assert the resolved directory is exactly the repository's
crates/fbuild-build-esp/src/esp32/configs; - assert all 9 current
esp32*.jsonfiles are discovered; - change the process working directory to a temporary directory before calling the helper, proving discovery is script-relative.
- call
- Add the unit test to the Validate Boards workflow before the network-backed offset check, or otherwise ensure it is run by an existing always-on Python test gate.
- Do not edit any JSON offsets, the pioarduino tag, download logic, or mismatch rules in this fix.
Verification
This issue does not require a Rust build.
uv run --no-project python -m unittest ci.test_check_flash_offsets
uv run --no-project python ci/check_flash_offsets.py --download
git diff --checkThen verify the Validate Boards workflow reaches the per-chip comparison table and reports All 9 esp32 config(s) match, instead of failing at directory discovery.
Acceptance criteria
- Script documentation and
configs_dir()usefbuild-build-esp. - Discovery works from outside the repository working directory.
- The regression test runs in CI.
--downloaddiscovers every currentesp32*.jsonconfig and performs the authoritative comparison.- Existing offset normalization and mismatch behavior are unchanged.
Related issues
- test: validate per-chip flash offsets against an authoritative source (recurring ROM-offset bug) #279 — introduced recurring authoritative flash-offset validation.
- ESP32-P4 (eco2) won't boot: bootloader flashed at 0x0 (should be 0x2000) + eco5-linked bootloader/app crash on eco2 silicon #278 — tracked the original ESP32 boot-offset failure.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsTriage
Activity
fix(ci): repair board validation and rustdoc