Skip to content

fix: gracefully handle timeouts/input from uv when adding script metadata#8111

Merged
mscolnick merged 1 commit intomainfrom
ms/fix-gracefully-handle-timeoutsinput-from-uv-when-adding-script-metadata
Feb 4, 2026
Merged

fix: gracefully handle timeouts/input from uv when adding script metadata#8111
mscolnick merged 1 commit intomainfrom
ms/fix-gracefully-handle-timeoutsinput-from-uv-when-adding-script-metadata

Conversation

@mscolnick
Copy link
Contributor

@mscolnick mscolnick commented Feb 3, 2026

This pull request improves the robustness of the _ensure_marimo_in_script_metadata function in marimo/_cli/sandbox.py by preventing potential hangs and handling timeouts when running subprocesses.

Reliability improvements for subprocess execution:

  • Added stdin=subprocess.DEVNULL to prevent hanging on Windows when uv might wait for input.
  • Set a timeout=30 for the subprocess call and added handling for TimeoutExpired exceptions to log a warning if the operation times out.
@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Feb 3, 2026 10:06pm

Request Review

Copy link
Collaborator

@dmadisetti dmadisetti left a comment

Choose a reason for hiding this comment

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

Was this from an issue that we should close out?

@mscolnick
Copy link
Contributor Author

Was this from an issue that we should close out?

@dmadisetti its from the flakey windows tests, not an issue

@mscolnick mscolnick merged commit a11e989 into main Feb 4, 2026
53 of 56 checks passed
@mscolnick mscolnick deleted the ms/fix-gracefully-handle-timeoutsinput-from-uv-when-adding-script-metadata branch February 4, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

2 participants