Repository navigation
wire esp-now-router submodule + top-level make test (m3b super-repo) - #21
Merged
Merged
Conversation
aphelps-claude-bot
left a comment
Collaborator
Author
There was a problem hiding this comment.
Self-review (posting authorized by the repo owner; a human still gives final approval):
Infrastructure/docs change — no firmware logic. Reviewed:
Makefile—make testhost-compiles the WLED ampworks tests directly (relative includes resolve from their dir) and delegates the router tests toesp-now-router/tests/Makefile(which owns the-Iinto the WLED submodule). Each recipe fails the build on a failing suite (|| exit 1). Verifiedmake testis green across both submodules..gitmodules/esp-now-routergitlink — third submodule added;setup.sh's generic recursive init already bootstraps it. Submodule pointers deliberately not bumped here (they advance at merge alongside #12 / #1).CLAUDE.md— Running Tests section corrected.
No implementation findings. One non-blocking note: make test assumes submodules are checked out (documented — run after ./setup.sh); a friendlier error if WLED//esp-now-router/ are empty could be a future nicety.
aphelps
approved these changes
Jul 29, 2026
Add esp-now-router as a third submodule (alongside WLED, ArduinoLibs); setup.sh's generic recursive init already bootstraps it. Add a top-level Makefile that runs the host unit tests across all submodules: `make` (WLED ampworks SensorSync + esp-now-router relay / leader-election), plus test-wled / test-router / test-ui / test-all. Guards: an uninitialized submodule fails loudly with the fix, and a submodule with no tests at its pinned revision is skipped with a note. Refresh CLAUDE.md's Running Tests section (host C++ tests now exist).
aphelps
force-pushed
the
m3b-backbone-router
branch
from
July 29, 2026 03:13
db4eda2 to
43206d1
Compare
1 task done
aphelps-claude-bot
added a commit
that referenced
this pull request
Aug 28, 2026
ArduinoLibs 002f6d7 -> ff2a367 (RFM95Socket, #16) HMTL c65f1a3 -> 0a5d7cd (esp32_lora_gw DISABLE_LORA plumbing, #15) WLED 8ea0be8 -> eb14ddb (rs485_bridge framing-count caveat, #21) The ArduinoLibs pointer deliberately lands on the commit that carries BOTH the library and its test wiring, not just the library. The top-level Makefile records why this matters: main once briefly pinned esp-now-router at its README-only commit and the router suites vanished from `make test` with no signal at all. Verified on this exact tree rather than assumed: make test STRICT=1 green, and the ArduinoLibs section now names rfm95_socket_test and rfm95_socket_test_quiet (79 checks each) plus the rfm95-layout sweep under both the host ABI and -fpack-struct=1. pio run -e ampworks SUCCESS, after rm -rf .pio/libdeps/ampworks so the path-based deps were re-copied rather than read from a stale cache. This is the firmware that ships, so it is confirmed rather than reasoned about -- platformio.ini names each ArduinoLibs dependency explicitly and does not glob, so RFM95Socket is not pulled in here. Co-authored-by: aphelps-claude-bot <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.
Super-repo (WLED_dev) side of Mesh M3b. Pairs with
aphelps/WLED#12(protocol) andaphelps/esp-now-router#1(router firmware).Changes
esp-now-routeras a third submodule (alongsideWLED,ArduinoLibs).setup.sh's genericgit submodule update --init --recursivealready bootstraps it (comments updated).Makefile— run the host unit tests across all submodules from one place:make/make test— all pure-logic host tests (WLED ampworks SensorSync + esp-now-router relay/leader-election).make test-wled/make test-router— one submodule's;make test-ui— WLED web-UI builder (Node);make test-all— everything.Test plan
make test— all submodule host tests pass (WLED:sensor_sync_test,sensor_sync_ring_test; esp-now-router:test_relay,test_election).Notes
The
WLEDandesp-now-routersubmodule pointers are intentionally NOT bumped here — they advance to the merge commits of #12 / #1 at merge time (this PR only adds the submodule + the Makefile).Submodule PRs
WLED: add multi-hop relay + leader-election protocol for the sensor-sync backbone (m3b) WLED#12esp-now-router: esp-now-router firmware: multi-hop relay + leader election + http-ota (m3b) esp-now-router#1