Repository navigation
ci(color): actually run P9's TINY symbol check, and fail if it cannot (#4043) - #4401
Conversation
…#4043) P9 asks for the TINY tier's link-time property -- no float, no solver symbols -- to be verified by symbol-level inspection. The test for it has existed since #4390 and has never executed a single assertion. It reads an ATtiny85 ELF and skips when the build is absent, following `test_elf.py`. Nothing ever built an ATtiny85 before it ran: `pytest ci/tests` collects it in a job with no AVR build, so it skips there, and the two attiny85 workflows never invoke it. A deliverable asserted by a test that always skips is not asserted. `check_attiny85.yml` already builds attiny85 Blink to check its size, and that job is where the ELF is. The test now runs there, immediately after the Blink build and before the Apa102 one, with FL_REQUIRE_TINY_ELF=1. That variable is the point of the change as much as the wiring is. Without it the first thing to move the ELF would return this file to passing vacuously and nothing would say so -- the same failure being fixed, reintroduced. With it set, a missing build fails and names what it searched. Only the unmodified job: the sibling compiles with FASTLED_NO_FORCE_INLINE, whose link-time symbol set is a separate question this does not answer. Every other board using the template is unaffected -- the step is guarded on board and on empty extra_args, and attiny85 has one such caller. The hardcoded ELF path is gone too. `ci/compiled_size.py` documents two fbuild layouts and two build roots; the test pinned one spelling of one of them, so the other produced a silent skip. It now globs both roots and takes the newest match, the rule `ci/bloat.py` settled on in #4386. Verified locally, all four states: ELF present passes with and without the variable; ELF absent skips without it and fails with it; and the alternate `<env>/release` layout is found where the old path was not. Known limit, stated rather than implied: both attiny85 workflows trigger on push to master, not on pull_request, so this catches a regression one merge after it lands rather than blocking it. Making it a PR gate means paying for an AVR build on every PR, which is a cost decision for the maintainer, not something to slip in here. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe test now discovers the newest ATtiny85 ELF across supported build layouts. An environment variable controls whether missing ELF or ChangesATtiny85 ELF validation
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The ATtiny85 validation step correctly consumes the normal build artifact; no merge-blocking risk was identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 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 |
P9 (#4043) asks for the TINY tier's link-time property — no float helpers, no solver symbols — to be verified by symbol-level inspection. The test for it has existed since #4390 and has never executed a single assertion.
Why it never ran
It reads an ATtiny85 ELF and skips when the build is absent, following
test_elf.py. Nothing ever built an ATtiny85 before it ran:pytest ci/testscollects it in a job with no AVR build → skipsbuild_attiny85.ymlnorcheck_attiny85.ymlinvokes it —grepfortiny_linksacross.github/andci/returns nothing but the file itselfA deliverable asserted by a test that always skips is not asserted.
The fix
check_attiny85.ymlalready builds attiny85 Blink to check its size, so the ELF is right there. The test now runs in that job, immediately after the Blink build and before the Apa102 one.FL_REQUIRE_TINY_ELF=1is as much the point as the wiring. Without it, the first thing to move the ELF would return this file to passing vacuously and nothing would say so — the exact failure being fixed, reintroduced. With it set, a missing build fails and names the roots it searched.Scope is tight: guarded on
board == 'attiny85' && extra_args == ''. The sibling job compiles withFASTLED_NO_FORCE_INLINE, whose link-time symbol set is a separate question this does not claim to answer. The other ten boards using the template are untouched.The hardcoded path went too
ci/compiled_size.pydocuments two fbuild layouts and two build roots. The test pinned one spelling of one of them:so the other layout produced a silent skip. It now globs both roots for
.fbuild/build/**/firmware.elfand takes the newest match — the ruleci/bloat.pysettled on in #4386, for the same reason.Verification
All four states, locally:
Plus: with the ELF moved to the alternate
<env>/releaselayout it is still found — where the old hardcoded path found nothing.bash lintclean.uv run pytest ci/tests— 1502 passed, 41 skipped, 3215 subtests.Known limit, stated rather than implied
Both attiny85 workflows trigger on push to master, not on pull_request. So this catches a regression one merge after it lands rather than blocking it. Making it a PR gate means paying for an AVR build on every PR — a cost decision for the maintainer, not something to slip in here.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
Summary by CodeRabbit
Tests
Documentation