build: change verification fails on boards that cannot build on a dev host (stale local master, Synergy SSP, ESP-IDF)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- build-system, ci-cd, tooling
Research direction
Start with .claude/skills/build/SKILL.md lines 13-14 and 55: the recipe resolves local master while the code-size guidance already fetches origin/master, so make the build recipe compare against a fetched origin/master or fail when the local base is behind. Then read check_build.py (invoked as check_build.py --base master [--worktree]) to see how its selector picks boards, and add skip/uncovered reporting for license-gated SDKs (hw/bsp/synergy/family.cmake:20-21, dk_s124), ESP-IDF boards when idf.py is absent, and cmake: null rows like olimex_emz64 (see #4545). Done means a selection including dk_s124 without SSP or an espressif board without ESP-IDF does not fail verification, with tests added under .claude/test/.
Written by the indexing model from the issue text.
Description
Found while verifying repairs on #4610.
Problem
The build contract's change verification fails on boards that can never build on a dev host, so correct repairs are
rejected for reasons unrelated to the change. Two consecutive pr-babysit repairs on #4610 were reported
fix-verification-failed and left uncommitted.
- Stale base:
.claude/skills/build/SKILL.md:13-14runscheck_build.py --base master [--worktree], which resolves the
localmasterbranch. Here localmasterwas490eb4ec9whileorigin/masterwas93aa62bce, so the build
verification of a 3-filesrc/classchange resolved the full matrix, including non-code paths landed since
(.claude/skills/hil-contract/SKILL.md,.github/workflows/*,test/hil/hil_flash.py): 57 boards. The same file
(line 55) already tells code-size users to fetchorigin/masterbecause a stale ref inflates the diff; the build
recipe has no such guard. Same class of problem as #4292 (closed, code-size only). - Licensed SDK:
dk_s124always fails in that matrix.hw/bsp/synergy/family.cmake:20-21raises FATAL_ERROR
"Renesas Synergy SSP was not found or is incomplete"; SSP is licensed and not fetched bytools/get_deps.py, so no
dev host has it. The other 56 of 57 boards built. - ESP-IDF environment: a second launch's build ran without
. "$IDF_PATH/export.sh"yet still selected
espressif_p4_function_ev, failing withFileNotFoundError: ... 'idf.py'. The first launch's setup had exported it;
the second's did not. - Make-only family: with
--base origin/masterthe selector picked 69-70 boards and still includedolimex_emz64
(pic32mz), failingFamily pic32mz is not known/supported; itsfamily.jsonrow hascmake: null. Tracked in #4545.
Solution
- Compare against an up-to-date base:
origin/masterafter a fetch, or fail on a local base behind it, in the recipe
and in thepr-babysitbuild verification. - Make the selector skip, or report as uncovered, boards that cannot build on the host: license-gated SDKs (Synergy
SSP) and Make-only families (the pic32mz part is #4545). - Set up or skip ESP-IDF boards consistently across launches, so a missing
idf.pyis reported as uncovered rather
than a failed build. - Test in
.claude/test/: a selection that includesdk_s124without SSP, or an espressif board without ESP-IDF,
must not fail the verification.
Deferred from #4610: outside its scope (class driver fixes); its repairs were verified by hand with
--base origin/master.
Related: #4545 - same failure for pic32mz only, on the resolver side; this one adds the stale base, Synergy SSP and
ESP-IDF cases.
Related: #3941 - check_build.py coverage checks in --board mode, not which boards a scope selects.
Originating PR: https://github.com/hathach/tinyusb/pull/4610
- Dominant language
- C
- Stars
- 7.3k
- Forks
- 1.6k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 67
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hathach/tinyusb
-
follow-up Port WCH USBFS Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
follow-up Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
hil-contract: a background hil_remote.py launch is killed at the Bash default 10 min timeoutPossibly taken @hathach claimed this 16 days ago. Openfollow-up Prio 📌
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
ch32v30x: debug UART loses queued bytes when its TX ring fillsPossibly taken @hathach claimed this 16 days ago. Openfollow-up Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
followup Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
-
Missing slice offset check in jvp_equal fast path corrupts slice comparison and aborts delpathsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
area9innovation/flow9#1805 ·
Maintainers usually reply within 3 days
-
AI:Robustness triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
open5gs/open5gs#5246 · 1 comment ·
Maintainers usually reply within 1 day