Skip to content

measure_esp32s3_opt_ins: Stage 3 sdkconfig overlay is never applied #4570

Closed

Description

@zackees

Problem

tests/measure_esp32s3_opt_ins.py applies the Stage 3 overlay (tools/sdkconfig_for_smallest_fastled.defaults) by patching board_build.sdkconfig_defaults into the repo-root platformio.ini (patch_project_ini). The fbuild compile path never reads that file: ci/compiler/board_compiler.py::init_fbuild_project generates its own ini from ci/boards.py and rewrites sdkconfig.defaults in the build dir on every compile (CONFIG_FREERTOS_HZ=1000, CONFIG_AUTOSTART_ARDUINO=y only).

Impact

The stage3, stack and max_savings configs build without the overlay, so stage3 measures the same as baseline, and any SLIM table rows it produces for those configs are wrong. -D defines are unaffected; they already go through bash compile --defines.

Fix direction

Give the compile path a supported way to append an sdkconfig overlay (for example a --sdkconfig-defaults <file> option that board_compiler merges into the generated sdkconfig.defaults). Then have the script use it and drop patch_project_ini. Add a test asserting that the overlay reaches the compile command, like the existing --defines tests in ci/tests/test_measure_esp32s3_opt_ins.py.

Found during code review of the #4567 branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions