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

Aperta
#4,617 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cmake, python, shell

Direzione di ricerca

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/.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C
Stelle
7.3k
Fork
1.6k
Merge medio
1g 19h
PR unite (30g)
67

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hathach/tinyusb

Tutte le issue di hathach/tinyusb

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.