Skip to content

test(runtimed): fix all integration test failures — 107/107 green#1029

Merged
rgbkrk merged 2 commits intomainfrom
test/integration-tests-green
Mar 21, 2026
Merged

test(runtimed): fix all integration test failures — 107/107 green#1029
rgbkrk merged 2 commits intomainfrom
test/integration-tests-green

Conversation

@rgbkrk
Copy link
Member

@rgbkrk rgbkrk commented Mar 21, 2026

All 107 integration tests passing, plus 40 unit tests and 104 Deno WASM tests.

Fixes:

  1. Auto-launch race (test_uv_inline_deps_*, test_conda_inline_*): Added shutdown_and_start_kernel helper that reliably shuts down the auto-launched prewarmed kernel before starting with a specific env_source. The daemon auto-launches on create_notebook(), which races with the test's explicit start_kernel(env_source=...).

  2. Stale xfail (test_output_types_and_error_stops_execution): Removed — confirm_sync in execute_cell now handles this.

  3. Stale fixture artifacts (test_pyproject_auto_detection): Regenerated uv.lock (was revision=3, incompatible with daemon's uv) and removed stale .venv directory from the pyproject fixture.

  4. 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 between create_cell and execute_cell/stream_execute. Under broadcast pressure (kernel warmup, runtime state updates), confirm_sync's best-effort fallback fires before cell source propagates.

  5. Error capture (test_stream_execute_error_in_output): Rewrote to use stream_execute API (broadcasts in real-time) instead of execute_cell (doc-sync race for error outputs).

PR submitted by @rgbkrk's agent Quill, via Zed

- 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)
@github-actions github-actions bot added test Test infrastructure and coverage quill PR authored by Quill Agent 🦆 labels Mar 21, 2026
…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.
@rgbkrk rgbkrk merged commit 8af9703 into main Mar 21, 2026
19 of 21 checks passed
@rgbkrk rgbkrk deleted the test/integration-tests-green branch March 21, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

quill PR authored by Quill Agent 🦆 test Test infrastructure and coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant