Repository navigation
Conversation
The Node ID is regenerated when the chip server starts during suite setup, after the run is already executing, so the one-shot query at 'executing' printed a stale ID. Watch the backend instead and display the Node ID (and manual pairing code) whenever the server is started and the ID changes.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
093de92a-7a49-4c34-bbfb-054ce6380e29
Files selected for processing: 3-
tests/test_run/test_websocket_additional.pyth_cli/api_lib_autogen/models.pyth_cli/test_run/websocket.py
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
-
A backend that predates the server_started field omits it; defaulting to False would suppress the Node ID banner entirely (#1193).
aa60953 to
7c003b2
Compare
* Show the CHIP server Node ID once the server has started (#1193) The Node ID is regenerated when the chip server starts during suite setup, after the run is already executing, so the one-shot query at 'executing' printed a stale ID. Watch the backend instead and display the Node ID (and manual pairing code) whenever the server is started and the ID changes. * Treat only an explicit server_started=False as not started A backend that predates the server_started field omits it; defaulting to False would suppress the Node ID banner entirely (#1193). * Re-generated api classes * isort (cherry picked from commit ba40a92)
Summary
Replace the one-shot Node ID query at
executingwith a background watcher. It polls/chip-server/infoevery 2 s and prints the Node ID banner (and manual pairing code) wheneverserver_startedis true and the ID differs from the last one shown. The watcher is cancelled when the connection closes.Why
The Node ID is regenerated when the chip server starts during suite setup, after the run is already executing. The old query printed a stale ID, so commands run from the semi-automated user prompt with that ID failed. Requires the companion backend PR (
server_startedfield).Python-test runs never start the chip server, so they no longer print a bogus Node ID.
Notes
server_startedwas added toapi_lib_autogen/models.pyby hand; regenerate with./scripts/generate_client.shonce the backend is up to confirm it matches.Testing
pytest tests/test_run: 430 passed; new tests for unstarted server, first display, unchanged ID, changed ID and the polling loop.Node ID: 0x4de0d0b685c67b43, matching the ID used for pairing in the backend log, plus the manual pairing code.Closes #1193 (Node ID part)