[WIP] Add hardware-in-the-loop testing for Linux - #347
Draft
LeeNX wants to merge 6 commits into
Draft
Conversation
- BleGamepad::getHidReportSize() / getHidReportDescriptorSize(): expose the sizes begin() computes, so the HIL rig can assert the report descriptor stays inside the fixed tempHidReportDescriptor[150] buffer. - scripts/hil.sh: build hil_runner firmware against the current working tree, push to the Raspberry Pi tester (192.168.101.16), run the pytest BLE-HID suite + latency benchmark there, pull results into ./hil-results/. - HilTesting.md: what the rig verifies (features, ranges, GATT/DIS, battery, power state, polling-rate/latency) and how to run it; linked from README. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
esp32dev, v0.7.5-rc0, Raspberry Pi 3B+ tester (kernel 6.18.34, BlueZ 5.82): single button press -> host in ~18.6 ms median (p99 ~67), 0 dropped across 200 paced presses per profile, latency flat vs HID report size (3..28 B). The library negotiates a 48.75 ms connection interval on every profile -- the dominant latency factor and the ~20 Hz report-rate ceiling. Charts + bench-table under docs/hil/, regenerated by `python -m hil.charts`. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…rk refresh - getHidReportDescriptor() -- the generated descriptor bytes (pairs with the existing size getters). Lets a test harness assert the descriptor the library built matches what the host received over GATT, byte for byte. - HilTesting.md: rig repo is now github.com/LeeNX/ESP32-BLE-Gamepad-HIL; generic tester wording; corrected the throughput section (48.75 ms interval bounds latency, not paced rate -- NimBLE batches packets per connection event, paced input delivers 100% at 80-130 Hz); Feature/Output-report and HID-descriptor coverage added; refreshed baseline table + charts. - scripts/hil.sh: per-profile progress banners + verdict roll-up, cleans stale bundles before build, adds the `reports` profile, requires HIL_SSH_HOST / HIL_SSH_USER (no baked-in host). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
All six HIL profiles (default, signed-axes, specials, minimal, maxbtn, reports) verified green on esp32dev. Refreshed bench-table + SVGs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Owner
|
only really adds 3 lines of code to one file - go ahead |
New .github/workflows/hil.yml + .github/scripts/hil_dispatch.sh: on push to master, path-filtered PRs (Ble*.cpp/.h), a weekly cron, and workflow_dispatch, fire a repository_dispatch (type: hil) at LeeNX/ESP32-BLE-Gamepad-HIL with the library ref to test, then block until that rig run finishes and exit with its conclusion. The run is correlated by workflow + event + creation time; both repos serialise on a concurrency group so only one lands in the window. Job summary links the rig run. Guarded to LeeNX/ESP32-BLE-Gamepad; forks and fork PRs skip cleanly. Needs one repo secret, HIL_DISPATCH_TOKEN (PAT for the rig repo: Contents:write + Actions:read). HilTesting.md gains a "From CI" section documenting the wiring and the rig-side setup. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Memory usage change @ 6787737
Click for full report table
Click for full report CSV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.