Repository navigation
Fail the build when the index root does not exist - #1772
Merged
Merged
Conversation
…x-root-1118 # Conflicts: # packages/rust/src/lib.rs
thekevinbot
marked this pull request as ready for review
November 18, 2026 18:22
…x-root-1118 # Conflicts: # packages/rust/src/lib.rs
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.
Fixes #1771
A
DirSQLwhose index root does not exist now fails the build withroot directory <dir> does not exist, in the Rust SDK, Python, and TypeScript. The check runs inprepare_resolved, the entry every build path shares. The CLI always roots at the current directory, so it cannot name a missing root and has no new test.code_review_findings.rs'si3_watch_error_exposes_underlying_sourcebuilt over a missing root to provoke a watch error; that build now fails, and thesource()assertion it made is already covered by theerror_helpers_build_expected_variantsunit test, so the integration test is removed. Thewith_ignore_and_fstest seam skips the root check so itsFileSystemdouble can stand in for a root such as/ws.Red: CI job 135005854123 (
Integration tests):a_missing_root_fails_the_build ... panicked at packages/rust/tests/missing_root.rs:12:18: the build succeeded; Python binding job 135005857802:it_raises_when_the_root_does_not_exist - Failed: DID NOT RAISE Exception.Manual exercise: in Python,
await DirSQL("/no/such/dir").ready()raisedRuntimeError: root directory /no/such/dir does not exist; over an existing empty directory,SELECT 1returned[{'x': 1}].Changelog / Migrations
<root>/<pkg>/changelog.d/for each changed package (or:skip-changelogtrailer on a commit with reason)<root>/<pkg>/migrations.d/for each changed package (every subsection but Summary_None._when nothing breaks)E2E Verification
cargo test -p dirsql --features cli; thenon_utf8_namessuites fail locally on main too, a filesystem limit of this host)packages/python/e2e-attestations/<branch>.jsonreceipt written ifpackages/pythonchanged (just e2e-attest-python)packages/ts/e2e-attestations/<branch>.jsonreceipt written ifpackages/tschanged (just e2e-attest-ts)just e2e-attest-ts; inpackages/python,testing-conventions e2e attest 'uv run python -m pytest <20 non-speed e2e files> -x -q'aftermaturin develop --releaseand a release CLI build