// a miniature IP-regression platform
A DAG flow runner, EDA-style log parsing, waivers, and run-to-run diff — the core loop of a chip-design regression product, rebuilt small enough to read in an afternoon and honest enough to trust in CI.
In chip design, a nightly regression runs dozens of tools across a
dependency graph, each spewing gigabyte logs where a tool can exit
0 and still have failed. What a team actually needs to know
isn't "did tonight pass" — it's what broke that
was working yesterday. GAUNTLET rebuilds that loop end to end.
A tool exits 0 but its log holds an unwaived ERROR → the step still FAILs. Exit codes under-report; the log is the source of record.
A known failure becomes WAIVED — never silently green. It stays visible in every report with an owner and a JIRA reason.
Run-to-run, GAUNTLET reports NEW FAILURES, FIXED, and STILL FAILING — and exits non-zero on regressions, so CI can gate on it.
A flow is a YAML DAG. The scheduler submits a step only when every dependency has passed, runs it as a real subprocess in its own process group, then parses the log against a rulepack and applies waivers. Here's the smoke flow — lint gates two sims that run in parallel, then synth.
Workers spend their lives blocked in subprocess.wait(), where the GIL is released — a ThreadPoolExecutor gives real parallelism with none of the ceremony.
Steps launch in their own process group. On timeout we signal the group, grace it, then hard-kill — so a shell wrapper can't die while its simulator lives on.
When a dependency fails, dependents go SKIPPED — and the diff blames the upstream step that actually broke, not the ones it starved.
Logs are classified line by line against compiled regex rulepacks. Real EDA logs run to gigabytes; reading one whole is how you fall over in production.
Same seed, same flow — but a flake injects an overflow in u_fifo_tx.
The waiver only matches u_fifo_rx, so it doesn't fire: the step
FAILs. GAUNTLET doesn't just report the new run —
it reports what changed.
| PASS | lint_rtl | 4 warnings |
| WAIVED | sim_unit | 1 error waived |
| PASS | sim_integration | 1 warning |
| PASS | synth_quick | clean |
| PASS | lint_rtl | 4 warnings |
| FAIL | sim_unit | SIM-ERR-007 · u_fifo_tx |
| PASS | sim_integration | 1 warning |
| SKIPPED | synth_quick | upstream failure |
The scheduler's real rules, replayed in your browser: steps start only when their dependencies pass, failures cascade SKIPPED, waivers turn a known error WAIVED. Run it clean, inject a fault, run again — then read the diff.
Run the flow once to set a baseline.
gauntlet serve opens a local dashboard over the same SQLite file
the CLI writes — run history, a report per run, any-two-runs diff, and which
steps keep flipping. Standard library only: http.server and
sqlite3. It reloads itself when a new run lands.
No plugins, no async, no web server in the core — just the behaviors a regression platform actually needs, each one deliberate.
A step is submitted only when every dependency is PASS or WAIVED. Failures cascade SKIPPED transitively; --keep-going lets independent branches finish. Ordering is proven by tests, not vibes.
Per-tool regex rulepacks compile once at load. A bad pattern is a config error at startup — exit 2 — never a surprise mid-run.
rule-id + substring match, each carrying an owner and reason. Precise, not blanket — the same rule with a different signature still fails.
history, report, and diff all work from the DB alone — long after the raw logs are cleaned up.
report latest --html writes one self-contained page — DAG, timeline, filterable violations, waiver debt — that opens offline. See one →
A step that only passes on retry is marked flaky: it satisfies its dependents, but every report says so. A flaky pass is information, not a pass.
gauntlet serve — runs, reports, diffs and stability over the SQLite history. Read-only, localhost by default, stdlib only.
--junit for every CI test tab, --markdown for $GITHUB_STEP_SUMMARY with the DAG as Mermaid. WAIVED never flattens into a plain pass.
gauntlet stats reads the last N runs and scores each step: pass rate, flips between neighbours, flaky retries, p95 duration — then names the steps that need an owner. A diff answers "what changed"; this answers "what keeps changing".
gauntlet graph prints layers, Mermaid or DOT. Reports light up the dependency chain that bounded wall-clock time.
Clone it, install the one dependency, and watch a clean run, a regression, and the diff that catches it. Then open the dashboard.
# run, publish JUnit + a step summary, then fail the job only on NEW failures - run: gauntlet run flows/nightly.yaml --keep-going --junit junit.xml || true - run: gauntlet report latest --markdown - >> "$GITHUB_STEP_SUMMARY" - run: gauntlet diff latest~1 latest # exit 1 → the gate trips
GAUNTLET is one project. There are 18 more (and a few jet engines) over at charanreddy.dev. If you're hiring, collaborating, or just curious how the diff works — the door's open.