Repository navigation
ci: wire backend flag-drift detector into teensy40 (refs #3122 B4 / #2410 / #2413) - #3155
Conversation
…2410 / #2413) B4 of meta #3122. Closes the canonical-board-coverage gap on #2410 by wiring the existing ci/check_backend_flag_drift.py (shipped in #2801, refs #2410) into a dedicated GitHub Actions workflow for **teensy40** — the canonical broken case cited in #2413 ("fbuild silently drifted from PlatformIO and broke Teensy 4.x for 50+ consecutive master CI runs ... the `.progmem` section-type conflict in `colorpalettes.h:23`"). Workflow contract: - Triggers on pushes to master + PRs that touch the flag-drift script, the compile orchestrator, T4 platform code, or the workflow itself. - Drives both backends to build `Blink` for teensy40, captures build_info_*.json from each, runs the drift script. - Writes a report to .build/drift/teensy40_drift.txt, surfaces it in the workflow summary (so reviewers see drift inline on the PR), and uploads as an artifact (30-day retention) for later analysis. Drift gating: - `continue-on-error: true` for now — drift surfaces visibly but does not block merges. The right next step is to gate merges on drift *after* a clean-slate run confirms the existing flag set is the intended one; today's PR makes drift legible, not mandatory. Reasoning behind the single-board scope: - Doing all 5+ envs at once would obscure which board the drift came from in the summary view. Starting with teensy40 closes the original reported bug; future PRs can add per-board workflows (or refactor to a matrix) once the contract is proven. Validation: - `bash lint` — clean (Python pipeline, ESLint, TypeScript, C++, meson, platformio-internal-usage all pass). - Workflow won't actually run until the PR is open and master is hit; first execution will populate the artifact + summary that prove the contract end-to-end. Refs #3122 B4, #2410, #2413, #2801 (script).
|
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 (1)
📝 WalkthroughWalkthroughA new GitHub Actions workflow file is added for the Teensy 40 board that runs ChangesTeensy 40 Backend Flag Drift Workflow
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related issues
Poem
✨ Finishing Touches🧪 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 |
B4 of meta #3122. Wires the existing
ci/check_backend_flag_drift.py(shipped in #2801, refs #2410) into a dedicated GitHub Actions workflow for teensy40 — the canonical broken case cited in #2413 ("fbuild silently drifted from PlatformIO and broke Teensy 4.x for 50+ consecutive master CI runs ... the.progmemsection-type conflict incolorpalettes.h:23").What the workflow does
Blinkfor teensy40, runs the drift script..build/drift/teensy40_drift.txt, surfaces it in the workflow summary, uploads as an artifact (30-day retention).Drift gating
continue-on-error: true— drift surfaces visibly but does not block merges yet. The right next step is gating merges on drift after a clean-slate run confirms the existing flag set is the intended one. Today's PR makes drift legible, not mandatory.Why single-board scope
Doing all 5+ envs at once would obscure which board the drift came from in the summary view. Starting with teensy40 closes the original reported bug; future PRs can add per-board workflows or refactor to a matrix once the contract is proven.
Validation
bash lint— clean.Refs #3122 B4, #2410, #2413, #2801.
Summary by CodeRabbit