Turn reproduced bugs and size limits into CI checks
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c
- Domain
- build-system, embedded-iot, testing
Research direction
Start by reading the existing unit tests under test/unit-test, fuzz corpus tooling such as tools/pcapng_to_corpus.py, and the size reporting script tools/code_size.py. The issue calls for several separate CI checks, including ISR call analysis and a pinned board, example, toolchain, and configuration; those checks depend on choosing reference build budgets. Done means the specified checks have passing and failing cases, document their coverage gaps, and preserve broader code size reporting.
Written by the indexing model from the issue text.
Description
Every reproduced bug should leave a check behind, and size limits should fail the build rather than only report. Each step lands in pre-commit or CI with a failing and a passing case and states what it cannot cover.
Steps
- Regression test per reproduced bug. Add a unit test (
test/unit-test) and keep the minimized replayable input: a fuzz seed (test/fuzz, e.g. viatools/pcapng_to_corpus.py) or a replayed setup/event sequence, next to the HIL reproducer. Lint only for recurring, mechanically recognizable defect classes. A hardware-dependent fix still needs hardware validation; replay does not prove it.
→ verify: the test fails before the fix and passes after; the seed replays. - ISR-context check. On one configured build, flag forbidden blocking
osal_*calls reachable fromdcd_int_handler/hcd_int_handler. No general call-graph framework.
→ verify: allowed and forbidden paths in tests; the report states gaps (function pointers/callbacks, assembly, other configurations and ports). - Size gate. One pinned board/example/toolchain/config with separate flash and RAM budgets via
tools/code_size.py; an increase needs a justified budget bump in the PR. Keep the broader code-size reporting.
→ verify: threshold boundary tests; repeatable measurements.
Later: per-board throughput/latency baselines on the HIL boards, and one small formal model (usbd control stages or usbh enumeration) once its invariants are stated.
Human decisions
The reference build and its flash/RAM budgets (recommend measuring baselines first).
- 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