Skip to content

Report Python TraCI protocol version mismatches - #20006

Open
M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-7940-traci-client-protocol-version
Open

M-Colley wants to merge 3 commits into
eclipse-sumo:mainfrom
M-Colley:codex/sumo-7940-traci-client-protocol-version

Conversation

@M-Colley

@M-Colley M-Colley commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Add traci.getClientVersion() to the Python client. During start() and init(), warn at the caller when the version reported by the server differs from the client's. Reuse the existing version query. If the caller promotes the warning to an error, close and reap the new connection before selecting it.

Fixes #7940.

Evidence

A stock SUMO socket server reported protocol 22 while the regression set the client's expected version to 21. Upstream main supplied no warning. The patched client passed the default and mesoscopic regressions, plus the tracing, transport recovery, and multi-connection controls. A direct init() check verified the warning location, resulting label, and returned server version.

Merge Danger

The Python client now reports a warning on version mismatch. Compatible connections keep their existing return value and selection behavior.

M-Colley and others added 3 commits December 5, 2026 04:14
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com>
@behrisch
behrisch force-pushed the codex/sumo-7940-traci-client-protocol-version branch from 4337511 to cfc16f3 Compare December 5, 2026 03:14
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.

introduce traci.getClientVersion and warn about version mismatch on startup

1 participant