Skip to content

[codex] fix AutoResearch network client endpoints - #3608

Merged
zackees merged 1 commit into
masterfrom
codex/fix-autoresearch-net-client-endpoints
Jul 6, 2026
Merged

zackees merged 1 commit into
masterfrom
codex/fix-autoresearch-net-client-endpoints

Conversation

@zackees

@zackees zackees commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes AutoResearch runNetClientTest to call the routes actually registered by startNetServer.

The client helper now checks:

  • GET /ping
  • GET /status
  • GET /leds

instead of the stale GET /data route, which the WROOM server does not expose.

Root cause

startNetServer() registers /ping, /status, /echo, and /leds. runNetClientTest() still built a /data URL, so the dual-device C6-to-WROOM traffic helper returned tests_passed=1, tests_failed=1 with a 404 even when the server was reachable.

Validation

Hardware setup discovered with fbuild port scan:

  • COM11: CP210x NodeMCU/WROOM-class ESP32 server
  • COM9: ESP32-C6 client

Reflashed both boards through bash autoresearch ... --upload-port ... --skip-lint after this patch; fbuild deploy succeeded on both.

Dual-device run after the fix:

  • C6 joined WROOM AP as 192.168.4.2
  • First runNetClientTest passed all 3 endpoints: /ping, /status, /leds
  • I2S under active C6 traffic:
    • [10]: pass
    • [10,10]: pass
    • [10,10,10,10]: pass
    • [10]*8: timed out after 180s, WROOM still responded to ping

Baselines:

  • No traffic: [10]*8 passed in 160 ms and [10]*16 passed in 370 ms
  • AP associated but idle: [10,10] and [10]*4 passed

Summary by CodeRabbit

  • Bug Fixes
    • Improved stability when making consecutive HTTP requests, helping the example run more reliably.
    • Updated endpoint checks to validate the app’s current status and LED responses.

@zackees
zackees merged commit afdb991 into master Jul 6, 2026
7 checks passed
@zackees
zackees deleted the codex/fix-autoresearch-net-client-endpoints branch July 6, 2026 00:49
@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 20c84d5c-e852-4bf1-b4f9-3769bba01c8d

📥 Commits

Reviewing files that changed from the base of the PR and between 8769d2c and 9756a0f.

📒 Files selected for processing (1)
  • examples/AutoResearch/AutoResearchNet.cpp

📝 Walkthrough

Walkthrough

The runNetClientTest function in AutoResearchNet.cpp was updated to construct and test HTTP requests against /status and /leds endpoints instead of /data. Watchdog feed calls were added between blocking HTTP GET tests.

Changes

Client Test Endpoint Update

Layer / File(s) Summary
URL construction and test sequence
examples/AutoResearch/AutoResearchNet.cpp
Replaces /data URL setup with url_status and url_leds construction; Test 2 now GETs /status and Test 3 now GETs /leds; watchdog feed calls added between the blocking HTTP GET tests.

Estimated code review effort: 1 (Trivial) | ~5 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-autoresearch-net-client-endpoints

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant