Repository navigation
Description
Background
Today the platform smoke tests at tests/platforms/<x>/ are ad-hoc — whatever someone happened to drop in. There is no shared baseline of "every supported board must compile this exact set of representative sketches." That makes regressions board-specific and hard to compare across backends.
This issue is a follow-up to #2410 (compiler-flag drift detection between fbuild and PlatformIO). Even with flag-drift detection, we also need a standardized cross-backend test harness so we can quickly answer the question "does PlatformIO build this same code, or is fbuild the only thing that fails?" — which is exactly what we couldn't easily answer when Teensy 4.x broke.
Concretely, the recent Teensy 4.x section-conflict regression (uncommitted on branch pr-2395) took manual CI archaeology to confirm it was an fbuild-only failure. A one-click PlatformIO comparison job would have made it obvious in minutes.
Proposal
Part A: standardized per-platform smoke sketch set
Define a small canonical set of sketches (e.g. Blink, XYMatrix, a chipset that exercises PROGMEM tables, an audio sketch that exercises FFT/sin LUTs) that every board MUST compile in CI. Living in something like tests/platforms/_standard/ rather than per-board directories.
Per-board overrides remain available in tests/platforms/<board>/ for board-specific quirks, but the standard set is the contract.
Part B: opt-in PlatformIO comparison job in build_template.yml
Extend .github/workflows/build_template.yml with a new input:
inputs:
also_build_with_platformio:
type: boolean
required: false
default: false # opt-in for speedWhen set, the template runs the same standardized sketch set through PlatformIO in addition to fbuild, and the workflow summary shows:
- Pass/fail per backend per sketch
- For any sketch that fbuild fails but PlatformIO passes (or vice versa), include the failing translation unit's compile command from each backend (links to ci: detect compiler-flag drift between fbuild and PlatformIO across all platforms #2410's drift report)
Default-disabled so normal PR builds aren't slowed down. Triggered by:
- Manual
workflow_dispatchwith the input set true - A PR label like
ci: also-build-piofor diagnostic runs - Nightly on master
Part C: agent docs update
Update agents/docs/commands-reference.md (and/or agents/docs/build-system.md) with a section explaining:
When fbuild fails on a board and you suspect backend drift rather than a real source bug, trigger the PlatformIO comparison build by adding the
ci: also-build-piolabel. If PlatformIO passes the same sketch, the failure is likely flag drift — see #2410.
Acceptance criteria
- Canonical sketch set lives at
tests/platforms/_standard/with documented contract -
build_template.ymlexposesalso_build_with_platformioinput, defaultfalse - Workflow summary clearly differentiates fbuild vs PlatformIO results when both ran
- Agent docs include a "diagnosing fbuild-only failures" section pointing at this option
- Doesn't slow down the default per-PR build matrix
Related
- ci: detect compiler-flag drift between fbuild and PlatformIO across all platforms #2410 — fbuild ↔ PlatformIO compiler-flag drift detection
- Sibling: arduino-cli three-way comparison (filing separately)
- Discovered investigating uncommitted Teensy 4.x PROGMEM workaround on branch
pr-2395
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriage
Activity
feat(ci): standardized per-platform smoke-sketch manifest (refs #2411) (
zackees commentedon Aug 20, 2026
Deferred after a current-master audit. PR #2803 completed only Part A (the smoke-sketch manifest/parser). Parts B/C remain: consuming the manifest in board CI, an opt-in PlatformIO comparison input/trigger, dual-backend summaries and command comparison, and diagnostic docs. This is a multi-workflow CI feature; resume with an owner for the comparison-job design and runner-cost budget.