Skip to content

HITL pyrite backend: run the on-hardware tests on a simulated ESP32-C6 - #1

Draft
ShahriarAhnaf wants to merge 8 commits into
mainfrom
pyrite-sim
Draft

ShahriarAhnaf wants to merge 8 commits into
mainfrom
pyrite-sim

Conversation

@ShahriarAhnaf

@ShahriarAhnaf ShahriarAhnaf commented Dec 4, 2026 •

Copy link
Copy Markdown

Adds HITL_BACKEND=pyrite: Reservation becomes PyriteReservation, backed by one simulated ESP32-C6 in pyrite (sim run --scenario) instead of a Pi rig. The on-hardware tests are not edited. See pi/hitl/sim/README.md; every result, per-PR run and gap is in pi/hitl/sim/RESULTS.md.

The rig-side BLE scripts (hitl_improv.py, hitl_ble_player.py, ble_name_watch.py, ble_identify.py) now run unchanged against a bleak-compatible shim over pyrite's host-driven BLE central; the USB console (PROV, WIFI SCANMISS), hitl-monitor --reset (the flash survives it), mDNS through the gateway's responder and an update without --erase-fs are served too.

Main firmware 04c56c7 (CI artifact), sim wall times on a shared host:

test result wall
improv_e2e, e2e_netstack, tls_churn_netstack, led_capture_netstack PASS 42 / 49 / 68 / 50 s
ble_player_e2e_netstack, ble_capture_e2e_netstack, identify_blink PASS 46 / 69 / 187 s
improv_wrong_password (default budgets), improv_fresh_join PASS 383 / 262 s
effect_store, map_upload, preconnect, loaded_tls, rejoin_loop, upgrade_keeps_wifi PASS 102 / 67 / 83 / 156 / 398 / 176 s
stable_identity FAIL: only the mDNS A record (gateway answers 127.0.0.1) 104 s
ble_rename FAIL: scan response invisible to the scripted central (pyrite#6111) 1587 s

Open PRs of fughilli/splanc (their firmware bundle where CI still had one): fughilli#722 e2e PASS, fughilli#741 e2e + effect_store PASS; fughilli#510, fughilli#486, fughilli#325, fughilli#586 have no bundle (see RESULTS.md). fughilli#722's own CI fails to build pi/mesh_radio/src/bridge.rs:348 (StatusMsg is missing the new debug field).

The sim is a local merge of unmerged pyrite branches, never pushed.

🤖 Generated with Claude Code

ShahriarAhnaf and others added 8 commits December 4, 2026 02:37
…ESP32-C6 in pyrite

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… over the sim's host-driven central, the USB console, mDNS and chip resets

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ial windows, raw USB-Serial-JTAG bytes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…through sh -c, README for the new rig calls

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…> file && python3 file)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…; fetch_bundle.sh picks the run that has the artifact; README + RESULTS.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shipped = re.fullmatch(r"echo (\S+) \| base64 -d > (/tmp/\S+) && (.+)", str(remote_cmd))
if shipped: # a script sent inline, then run
with open(self._local(shipped.group(2)), "wb") as f:
f.write(base64.b64decode(shipped.group(1)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants