Repository navigation
refactor(ci): drop fbuild→.pio mirror; read merged-bin from active backend - #2299
Conversation
TestPathStructureChecker rejected tests/fl/url_lnk.cpp — the test path
didn't match a source file at src/fl/url_lnk.{h,hpp,cpp.hpp}. Since
parse_lnk lives in src/fl/stl/url.h alongside the rest of the fl::url
API, consolidate its tests into the existing tests/fl/stl/url.cpp.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… mirror Replaces the ``_mirror_fbuild_artifacts_to_pio`` workaround with a direct read from whichever backend produced the artifacts. Adds ``PioCompiler._artifacts_dir(env_name)`` returning either ``.fbuild/build/<env>/release/`` (when use_fbuild=True) or ``.pio/build/<env>/`` (PlatformIO). ``build_with_merged_bin`` and ``get_merged_bin_path`` both use the helper, so esptool merge_bin runs against fbuild's output without any cross-directory copy. The mirror was added in #2285 and extended in #2292 to bridge fbuild output into ``.pio/build/`` so legacy consumers (QEMU/AVR8JS workflows, crash decoder, ``build_with_merged_bin``) kept working. The new ``fbuild test-emu`` workflows (#2296) read fbuild's release dir directly, leaving ``build_with_merged_bin`` as the only remaining consumer — and that is now also fbuild-aware, so the mirror has no callers left. Diagnostic dump in the missing-artifacts branch now labels the active backend's dir explicitly and lists both possible locations, so the debug story when artifacts vanish is at least as good as before. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR removes the fbuild artifact mirroring mechanism that copied build outputs from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
PioCompiler._artifacts_dir(env_name)returning.fbuild/build/<env>/release/whenuse_fbuild=True, else.pio/build/<env>/.build_with_merged_binandget_merged_bin_pathnow read from whichever backend produced the artifacts, so esptool merge_bin runs against fbuild output without any cross-directory copy._mirror_fbuild_artifacts_to_pioand its call site in_build_with_fbuild. The function was added in fix(ci): repair all four emulation workflows (ESP32 QEMU + AVR8JS Uno) #2285 and extended in perf(ci): use fbuild for ESP32 QEMU merged-bin builds #2292 to bridge fbuild output into.pio/build/. Its consumers — QEMU/AVR8JS workflow scripts (now read fbuild dir directly viafbuild test-emuin feat(ci): migrate AVR8JS + QEMU emulation to fbuild test-emu #2296), the crash decoder (already fbuild-aware), andbuild_with_merged_bin(this PR) — no longer need it.tests/fl/url_lnk.cppinto existingtests/fl/stl/url.cppsoTestPathStructureCheckeris satisfied (parse_lnk lives insrc/fl/stl/url.h).This is the cleanup follow-up the c62f200 commit message called out, completed now that #2292 added boot-artifact emission to fbuild's ESP32 orchestrator.
Test plan
bash lint ci/compiler/pio.py— passesbash test url --debug— passes (10 url + parse_lnk subcases)bash test --qemufor esp32c3/esp32s3 (FBUILD_BOARDS path)fbuild test-emu)🤖 Generated with Claude Code
Summary by CodeRabbit
Chores
Tests