You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mp3): pin codegen audit compiler to prevent cache-dependent regressions #4779
The MP3 CPU audit fails in PR #4774 at minimp3-float/codegen/riscv32-esp/dct32/instructions: 47 exceeds the pinned 44 plus 5% tolerance (46.2). Reproduced in CI runs 37699075000 and 37700808770.
Two investigation rounds isolated compiler selection:
src/third_party/minimp3 and ci/codec_cpu are identical between unchanged master 61d6ccf and the PR. The isolated codegen probe already uses -fno-exceptions, independently of ESP project staging.
Explicit GCC 13.2.0 (esp-13.2.0_20240530) produces the same counts on unchanged master and the PR: float dct32 47, float polyphase 185, fixed dct32 88, fixed polyphase 88.
Explicit GCC 14.2.0 (20260121) on the same current sources produces 44, 185, 81, 88 respectively. Its float dct32 matches the existing baseline.
The workflow warms several boards and adds cached compiler directories to PATH. ci/codec_cpu/audit.py selects a PATH compiler before searching cached packages. The measured compiler can therefore vary with installed package/cache contents.
Proposal
Select the codegen compiler deterministically and record compiler version/provenance alongside the baseline and current report. Define the supported compiler rather than raising a threshold to mask selection drift.
Acceptance criteria
RED: reproduce ambiguous selection with both supported compiler versions present and show the 47-versus-44 result on identical sources.
GREEN: explicit deterministic selection produces the intended metric regardless of PATH/cache ordering.
Report compiler path, version and target flags with each target-codegen result.
Preserve existing decoder sources and instruction thresholds unless a separately justified compiler baseline migration is required.
The existing CI warm-up must actually provide the selected compiler before deciding whether source-only selection is sufficient. Do not claim that availability is proven from the local cache. No implementation, baseline threshold or workflow change has been made.
Activity
zackees commentedon Oct 7, 2026
Read-only follow-up identified a narrow implementation proposal in
ci/codec_cpu/audit.pyand its existing tests:objdumpfrom the same directory.The existing CI warm-up must actually provide the selected compiler before deciding whether source-only selection is sufficient. Do not claim that availability is proven from the local cache. No implementation, baseline threshold or workflow change has been made.