Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR upgrades the project’s NiceGUI dependency to 3.10.0 to pick up the CVE-2026-39844 security fix, and adjusts a notebook service integration test to align with NiceGUI 3.10’s testing/lifecycle behavior.
Changes:
- Bump
nicegui[native]constraint from>=3.5.0,<4to>=3.10.0,<4. - Update
uv.lockto lock NiceGUI at3.10.0. - Fix
test_serve_notebookby switching fromfastapi.TestClient(app)tonicegui.testing.User.http_clientand making the test async.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
uv.lock |
Locks NiceGUI at 3.10.0 to ensure the upgraded version is actually installed. |
pyproject.toml |
Raises the declared NiceGUI minimum version to 3.10.0 for the CVE fix. |
tests/aignostics/notebook/service_test.py |
Updates the failing notebook serving test to use NiceGUI’s testing client instead of creating a conflicting FastAPI TestClient. |
|
|
||
| try: | ||
| response = client.get("/notebook/4711?results_folder=/tmp", timeout=60) | ||
| response = await user.http_client.get("/notebook/4711?results_folder=/tmp", follow_redirects=True) |
There was a problem hiding this comment.
user.http_client.get(...) is now called without an explicit request timeout. httpx defaults (often ~5s) can make this integration test flaky because the notebook endpoint may block while the Marimo server starts. Pass an explicit timeout (e.g., matching the previous 60s) or configure the async client's timeout for this request.
| response = await user.http_client.get("/notebook/4711?results_folder=/tmp", follow_redirects=True) | |
| response = await user.http_client.get( | |
| "/notebook/4711?results_folder=/tmp", | |
| follow_redirects=True, | |
| timeout=MARIMO_SERVER_STARTUP_TIMEOUT, | |
| ) |
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |



Why?
NiceGUI 3.10 patches CVE-2026-39844.
How?
The upgrade to 3.10 breaks
tests/aignostics/notebook/service_test.py::test_serve_notebookbecause conflicting NiceGUI lifecycle managers. This PR removesclient = TestClient(app)and usesuser.http_clientinstead.