build: change verification fails on boards that cannot build on a dev host (stale local master, Synergy SSP, ESP-IDF)

Open
#4,617 0 comments 0 reactions 0 assignees View on GitHub

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
Tech stack
cmake, python, shell

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

follow-up Prio 📌

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-14 runs check_build.py --base master [--worktree], which resolves the
    local master branch. Here local master was 490eb4ec9 while origin/master was 93aa62bce, so the build
    verification of a 3-file src/class change 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 fetch origin/master because 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_s124 always fails in that matrix. hw/bsp/synergy/family.cmake:20-21 raises FATAL_ERROR
    "Renesas Synergy SSP was not found or is incomplete"; SSP is licensed and not fetched by tools/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 with FileNotFoundError: ... 'idf.py'. The first launch's setup had exported it;
    the second's did not.
  • Make-only family: with --base origin/master the selector picked 69-70 boards and still included olimex_emz64
    (pic32mz), failing Family pic32mz is not known/supported; its family.json row has cmake: null. Tracked in #4545.

Solution

  • Compare against an up-to-date base: origin/master after a fetch, or fail on a local base behind it, in the recipe
    and in the pr-babysit build 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.py is reported as uncovered rather
    than a failed build.
  • Test in .claude/test/: a selection that includes dk_s124 without 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hathach/tinyusb

All issues in hathach/tinyusb

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.