fix: debug and fix WASM marimo test selectors (approach A)#530
Closed
paddymul wants to merge 1 commit into
Closed
Conversation
…ility in Pyodide
The WASM Playwright test timed out because micropip.install("buckaroo")
failed on fastparquet (C extension with no pure-Python wheel for Pyodide).
This cascaded to all downstream cells, preventing widget rendering.
Three-part fix:
- WASM notebooks: install deps manually with deps=False, create a minimal
fastparquet stub module so buckaroo's import chain succeeds
- serialization_utils.py: make fastparquet import optional (try/except)
for forward compatibility when the next release is published to PyPI
- Test: replace fixed-timeout waitFor with polling loop, increase timeout
to 300s, add console log capture for CI debugging
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Author
|
Closing in favor of #532 (uses real Pyodide-bundled fastparquet) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
micropip.install("buckaroo", keep_going=True)fails in Pyodide becausefastparquet(a C extension) has no pure-Python wheel. Despitekeep_going=True, the install raises aValueError, crashing the first cell and cascading failures to all downstream cells that use BuckarooWidget.deps=False, and create a minimalfastparquetstub module (types.ModuleType) so buckaroo's import chain succeeds. Applied to all three WASM notebooks.fastparquetimport optional inbuckaroo/serialization_utils.pyviatry/except ImportError, so future releases don't need the stub workaround.waitForwith fixed timeout (which was too short at 60s) with a polling loop that waits up to 240s for content + 60s for widgets, with console log capture for CI debugging.Test plan
bash scripts/marimo_wasm_output.sh buckaroo_simple.py runin CI or pre-committed HTML)🤖 Generated with Claude Code