Skip to content

Allow websockets 13 to 17 - #120

Merged
cpmpercussion merged 1 commit into
mainfrom
update-dependency-pins
Sep 27, 2026
Merged

cpmpercussion merged 1 commit into
mainfrom
update-dependency-pins

Conversation

@cpmpercussion

Copy link
Copy Markdown
Owner

The websockets<14 cap came from websockets = "^12.0" (May 2024), carried through the PEP 621 migration. There was no known incompatibility behind it. IMPSY only uses the sync server API (websockets.sync.server.serve), which hasn't changed. On Colab the cap downgraded websockets to 13.1 and broke preinstalled packages that need 14+.

  • websockets>=13.0,<18, locked at 17.1. Only websockets changes in the lock file.
  • New test_websocket_client_round_trip: the existing test never connected a client. This one connects a real client, sends a note and a CC (plus an invalid message, which should be skipped), checks the callback gets the right updates, and checks output reaches the client.
  • Tested locally on websockets 13.0 and 17.1. Full suite passes on 17.1 (229 tests).
  • Black also reformatted one existing line in tests/test_impsio.py.

Part of the dependency review in #119.

🤖 Generated with Claude Code

https://claude.ai/code/session_016oUxTsghWZWfnCnnkKcuNv

The <14 cap came from a Poetry caret constraint (^12.0) carried through
the PEP 621 migration, not a known incompatibility. IMPSY only uses the
sync server API, which is unchanged. On Colab the cap downgraded
websockets and broke preinstalled packages that need 14+.

Adds a test that connects a real client, sends input (including an
invalid message) and receives output. It passes on websockets 13.0 and
17.1.

Refs #119

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016oUxTsghWZWfnCnnkKcuNv
Copilot AI lite review requested due to automatic review settings September 27, 2026 00:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Add reproducible WebSocket test coverage for the advertised 13.0 lower bound.

Review effort: Lite
Findings: None

What changed in this PR

This PR broadens WebSocket compatibility and adds real client/server round-trip coverage.

Changes:

  • Supports websockets 13–17, locked at 17.1.
  • Adds integration tests for WebSocket input and output.
  • Applies Black formatting.
File Description
tests/​test_impsio.py Adds client round-trip coverage and formatting.
pyproject.toml Expands the WebSocket dependency range.
poetry.lock Locks websockets at 17.1.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cpmpercussion
cpmpercussion merged commit e88dee4 into main Sep 27, 2026
11 checks passed
@cpmpercussion
cpmpercussion deleted the update-dependency-pins branch September 27, 2026 00:49
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