Skip to content

wire esp-now-router submodule + top-level make test (m3b super-repo) - #21

Merged
aphelps-claude-bot merged 1 commit into
mainfrom
m3b-backbone-router
Jul 29, 2026
Merged

aphelps-claude-bot merged 1 commit into
mainfrom
m3b-backbone-router

Conversation

@aphelps-claude-bot

Copy link
Copy Markdown
Collaborator

Super-repo (WLED_dev) side of Mesh M3b. Pairs with aphelps/WLED#12 (protocol) and aphelps/esp-now-router#1 (router firmware).

Changes

  • Wire in esp-now-router as a third submodule (alongside WLED, ArduinoLibs). setup.sh's generic git submodule update --init --recursive already bootstraps it (comments updated).
  • Top-level 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.
  • CLAUDE.md "Running Tests" refreshed (it wrongly claimed no C++ tests exist).

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 WLED and esp-now-router submodule 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

@aphelps-claude-bot aphelps-claude-bot left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review (posting authorized by the repo owner; a human still gives final approval):

Infrastructure/docs change — no firmware logic. Reviewed:

  • Makefile — make test host-compiles the WLED ampworks tests directly (relative includes resolve from their dir) and delegates the router tests to esp-now-router/tests/Makefile (which owns the -I into the WLED submodule). Each recipe fails the build on a failing suite (|| exit 1). Verified make test is green across both submodules.
  • .gitmodules / esp-now-router gitlink — 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.

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
aphelps force-pushed the m3b-backbone-router branch from db4eda2 to 43206d1 Compare July 29, 2026 03:13
@aphelps-claude-bot
aphelps-claude-bot merged commit 7916e67 into main Jul 29, 2026
@aphelps-claude-bot
aphelps-claude-bot deleted the m3b-backbone-router branch July 29, 2026 03:13
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]>
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