test(runtimed): fix all integration test failures — 107/107 green#1029
Merged
test(runtimed): fix all integration test failures — 107/107 green#1029
Conversation
- Add shutdown_and_start_kernel helper to handle auto-launch race when tests need a specific env_source (uv:inline, conda:inline) - Remove stale xfail on test_output_types_and_error_stops_execution (sync race fixed by confirm_sync) - Exclude uv.lock and .venv from fixture copytree in pyproject tests (stale lockfile incompatible with daemon's uv version) - Add CRDT sync delays before execute_cell/stream_execute when cell source was just created (confirm_sync best-effort fallback can fire under broadcast pressure from kernel warmup) - Rewrite test_stream_execute_error_in_output to use stream_execute instead of execute_cell (avoids doc-sync race for error outputs)
…ect fixture The fixture's uv.lock had revision=3 from a newer uv, causing the daemon's uv to fail with exit code 2. Regenerated with current uv (revision=2) and removed the .venv directory artifact. Reverts the ignore_patterns workaround since the fixture is now clean.
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.
All 107 integration tests passing, plus 40 unit tests and 104 Deno WASM tests.
Fixes:
Auto-launch race (
test_uv_inline_deps_*,test_conda_inline_*): Addedshutdown_and_start_kernelhelper that reliably shuts down the auto-launched prewarmed kernel before starting with a specificenv_source. The daemon auto-launches oncreate_notebook(), which races with the test's explicitstart_kernel(env_source=...).Stale xfail (
test_output_types_and_error_stops_execution): Removed —confirm_syncinexecute_cellnow handles this.Stale fixture artifacts (
test_pyproject_auto_detection): Regenerateduv.lock(was revision=3, incompatible with daemon's uv) and removed stale.venvdirectory from the pyproject fixture.CRDT sync race (
test_async_execute_cell_reads_from_document,test_async_syntax_error,test_stream_execute_*,test_output_types_and_error_stops_execution): Added 0.5s delay betweencreate_cellandexecute_cell/stream_execute. Under broadcast pressure (kernel warmup, runtime state updates),confirm_sync's best-effort fallback fires before cell source propagates.Error capture (
test_stream_execute_error_in_output): Rewrote to usestream_executeAPI (broadcasts in real-time) instead ofexecute_cell(doc-sync race for error outputs).PR submitted by @rgbkrk's agent Quill, via Zed