Add `thesis`, a local runner for the Antithesis Test Composer templates
in testing/antithesis/, replacing stress-composer/shuffle-run.sh.
thesis runs a template as a single seeded timeline: first_ commands,
randomly chosen driver steps, then finally_ and eventually_ commands.
It seeds Python's global RNG in every command it launches, which the
Antithesis SDK's get_random() and random_choice() fall back to outside
Antithesis, so the same seed replays the same commands with the same
random choices. It also evaluates SDK assertions, which do not raise on
their own: a false always() or a reached unreachable() fails the run,
and a failure prints the command that reproduces it.
Run it from the repository root with:
uv run --group antithesis thesis run testing/antithesis/stress-composer --seed 42
The antithesis dependency group builds pyturso from the checkout, so
runs exercise local changes.
Use OSC background detection without the unreliable console palette fallback. Isolate the process-global pending-byte test in its own binary, and run C compatibility coverage on both Linux and Windows.
Tests: focused terminal and pending-byte tests; focused Clippy with warnings denied
With the .sqltest corpora relocated to sqlite/conformance, the
testing/sqltests directory holds only the runner crate, so the plural
name no longer fits. Rename the directory to testing/sqltest and the
crate and binary from the generic test-runner to sqltest, matching the
DSL and file extension the tool is named after.
Update the workspace manifest, the conformance Makefile, the runner
docs, and the JS backend references accordingly. The root Makefile
targets follow suit: test-runner{,-js,-cli} become
test-sqltest{,-js,-cli}; nothing outside the aggregate test target
invokes them.
Tests: cargo test -p sqltest, make -C sqlite/conformance check
Relocate the SQL conformance test corpora so testing/sqltests holds only
the test-runner crate: testing/sqltests/tests becomes
sqlite/conformance/sqlite-sqltests (SQLite-compatible coverage, also run
against real sqlite3) and testing/sqltests/turso-tests becomes
sqlite/conformance/turso-sqltests (Turso-specific behavior). The
Makefile and the database fixtures move along with them, so the suite
is now driven with make -C sqlite/conformance.
Keeping the fixtures next to the Makefile matters because .sqltest
files reference them with working-directory-relative paths like
database/integrity_*.db. The runner previously generated integrity
fixtures under its own CARGO_MANIFEST_DIR while backends opened them
relative to the working directory; generation now uses the working
directory too, so both sides agree regardless of where the corpora
live.
Tests: make -C sqlite/conformance check and run-rust (1438 passed),
cargo test -p core_tester test_drop_broken_legacy_view_row
Layers Aretta's Aristo verification onto upstream turso so the WAL
correctness properties can be canon-verified.
- #[aristo::intent] annotations at the load-bearing WAL enforcement
sites in core/storage/wal.rs and core/storage/pager.rs, bound to the
aretta-books canon corpus. .aristo/ durable state (canon-matches.toml) +
aristo.toml. core depends on aristo 0.2 from crates.io.
- CONTRIBUTING.md: how to author, verify, and instrument intents.
- CI via aretta-ai/aristo-action@v1: aristo.yml lite PR gate
(audit/lint; version unpinned -> latest aristo) and aristo-verify.yml
heavy canon verification (manual dispatch).
- .gitignore the regenerable/runtime .aristo state per aristo 0.4
conventions (index.toml + the per-annotation .aristo/doc/ are
gitignored, not committed).
Follow-up: the per-annotation docs (.aristo/doc/) and the `doc` CI check
are omitted here to keep the diff small. To enable them: run `aristo
doc` to regenerate .aristo/doc/, drop the `.aristo/doc/` line from
.gitignore, and add `doc` back to aristo.yml's `checks:`.
### Things to review:
- [ ] **Review (Important)**: Do the intents match what is expected from
the WAL?
- [ ] **Follow-up**: Are there missing intents you would like to capture
for the WAL
- [ ] **Follow-up**: Remove .aristo/docs from .gitignore if you want
documentation blocks for intent
### Follow-up & Next Steps:
- [ ] **TODO:** Set `ARETTA_API_URL` on repo variables.
- Or, gh-cli: `gh variable set ARETTA_API_URL --repo
tursodatabase/turso --body "https://turso.aretta.ai/"`
- [ ] Trigger verify run from GH action (works on any branch)
- [ ] See results on GH runner and https://turso.aretta.ai/
Integrating Aristo with Turso
Annotations added using Aristo + Claude Code
Closes#7688
Layers Aretta's Aristo verification onto upstream turso so the WAL correctness
properties can be canon-verified.
- #[aristo::intent] annotations at the load-bearing WAL enforcement sites in
core/storage/wal.rs and core/storage/pager.rs, bound to the aretta-books
canon corpus. .aristo/ durable state (canon-matches.toml) + aristo.toml.
core depends on aristo 0.4 from crates.io.
- aristo.toml `[instance] url` pins this repo's data-plane (verify + canon
match) to https://turso.aretta.ai; ARETTA_API_URL still overrides and
auth/login is unaffected.
- CONTRIBUTING.md: how to author, verify, and instrument intents.
- CI via aretta-ai/aristo-action@v1: aristo.yml lite PR gate (audit/lint;
version unpinned -> latest aristo) and aristo-verify.yml heavy canon
verification (manual dispatch).
- .gitignore the regenerable/runtime .aristo state per aristo 0.4 conventions
(index.toml + the per-annotation .aristo/doc/ are gitignored, not committed).
Follow-up: the per-annotation docs (.aristo/doc/) and the `doc` CI check are
omitted here to keep the diff small. To enable them: run `aristo doc` to
regenerate .aristo/doc/, drop the `.aristo/doc/` line from .gitignore, and add
`doc` back to aristo.yml's `checks:`.
Co-authored-by: Adwait Godbole <32107329+adwait@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Build and package the .NET bindings as a single Turso.Data.Sqlite NuGet package. The package bundles the Turso.Data.Sqlite facade, the Turso-specific ADO.NET provider assembly, the raw interop assembly, and native SDK-kit runtime assets for Linux, macOS, and Windows on x64 and arm64.
Add a push-triggered dry-run publishing workflow with native build jobs, artifact collection, gated NuGet publishing, and multi-targeted managed assets for net8.0, net9.0, and net10.0.
Centralize .NET package versioning in Directory.Build.props and wire scripts/update-version.py so NuGet versions stay aligned with the existing Turso release process.
Set managed assembly metadata without appending source revisions to ProductVersion, and add Windows VERSIONINFO metadata for turso_sdk_kit.dll.
Update project layout, README, examples, tests, and build scripts to match the single-package model.
Improve provider-replacement compatibility by making SqliteCommand.Prepare() safe for multi-statement batches, materializing declared GUID/UNIQUEIDENTIFIER values as Guid, and accepting common compatibility connection-string keywords.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PyPI has a storage quota for the pyturso package. This adds a script
that queries PyPI for RC versions older than 90 days and deletes them.
Runs as dry-run by default; pass --execute to actually delete.
Also documents the process in CONTRIBUTING.md.
Hello!
I am studying databases and wanted to follow along with the repo! When I
was going through the "Getting Started" guide I was having some issues
running the tests on macOS.
To get it to work, I had to run `cargo build -p turso_sqlite3` (similar
to the Linux steps) before `cargo test`.
I also noticed that under the "Submitting your work" section, it said to
run `make` to run the test suite, but that just does a build. `make
test` seems to run the full test suite.
I was trying to follow along with the "Getting Started" guide and had
some issues running tests.
None
Closes#4386
With these settings I can see much more clearly which functions
are major contributors in flamegraphs -- using default profile
has heavy inlining which obfuscates things.
I am not changing any package names - I'd rather Pekka do that so he
can verifies it works, or things that look like references to external
entities mentioning limbo.
All the rest is changed.
This adds a "limbo_stress" tool for stress testing Limbo in
non-deterministic way together with support code to run the tests under
Antithesis (which makes them deterministic). The stress tester does not
really do anything useful yet, this is just a step to make sure we can
run tests under Antithesis.