Commit Graph

64 Commits

Author SHA1 Message Date
Pekka Enberg
31d8686632 Local Antithesis test suite runner
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.
2026-09-27 10:33:01 +03:00
themixednuts
dfc103284b windows: make compatibility checks reliable
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
2026-08-11 05:13:37 -05:00
Pekka Enberg
629a492e60 testing: rename sqltests runner to sqltest
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
2026-07-19 10:00:20 +03:00
Pekka Enberg
b596de0d9b testing: move .sqltest corpora to sqlite/conformance
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
2026-07-17 08:38:30 +03:00
Pekka Enberg
1144f2c217 Merge 'Add Aristo WAL verification' from Sushant Dinesh
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
2026-07-02 09:11:42 +03:00
Pekka Enberg
0376057400 Add some guidance on good commit messages 2026-07-01 16:46:38 +03:00
Sushant Dinesh
d9609538ee feat(aristo): add Aristo WAL verification + CI
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>
2026-07-01 01:45:38 +00:00
n3on p0rtal
5ddb235c46 Clarify mold linker is Linux only 2026-06-25 15:30:43 +02:00
Engineer
a568b2fdee Update outdated 'Limbo' project references to 'Turso'
- CONTRIBUTING.md: fix GitHub issues link (limbo → turso repo)
- docs/testing.md: update project name and simulator references
- docs/contributing/contributing_functions.md: update project name,
  shell prompt (limbo> → tursodb>), and testing path references
2026-06-23 15:15:39 +02:00
Marc-André Moreau
7869be78a6 Add .NET NuGet package publishing workflow
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>
2026-06-12 08:09:23 -04:00
Pekka Enberg
b785312de0 Discuss "can I work on it" in CONTRIBUTING.md 2026-06-08 14:16:07 +03:00
Yinka Makanjuola
73756451b6 version pinned due to rust-toolchain.toml being pegged at 1.88 2026-06-01 10:11:56 +01:00
Pekka Enberg
e30645fd4d Add section on AI coding to CONTRIBUTING.md
Co-authored-by: Avinash Sajjanshetty <avi@turso.tech>
2026-05-15 18:50:54 +03:00
Pekka Enberg
1d4a1f5dfa Add script to clean up old RC versions from PyPI
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.
2026-03-31 12:58:52 +03:00
Pekka Enberg
b7efbf014c Update CONTRIBUTING.md 2026-03-26 07:15:09 +02:00
Pekka Enberg
538b9217e1 Add section on making releases to CONTRIBUTING.md 2026-03-26 07:13:35 +02:00
pedrocarlo
12edd8bc15 change name in separate files 2026-03-17 12:47:51 -03:00
Amodh Dhakal
06fd81941c docs: removed unsupported macos mold linker instructions 2026-03-13 16:45:54 -05:00
pedrocarlo
33e600e1c1 adjust files that referenced previous file path 2026-01-31 16:07:27 -03:00
pedrocarlo
5d32f12685 adjust paths and docs 2026-01-20 12:24:03 -03:00
pedrocarlo
6db8d94bda edited Contributing.md 2026-01-14 11:40:50 -03:00
Pekka Enberg
8379ada169 Merge 'docs: change test build instructions' from Mason Hall
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
2026-01-05 12:33:18 +02:00
Jussi Saurio
6e6be4dc28 Modify bench-profile to allow generating better flamegraphs
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.
2025-12-30 14:31:52 +02:00
Mason Hall
7755f531a6 docs: fix test build instructions
- Add missing cargo build step before cargo test
- Fix 'make' to 'make test' in submission guidelines
2025-12-29 14:04:02 -05:00
Nuno Gonçalves
4c6881fe7a docs: update clippy command in CONTRIBUTING.md to match CI job 2025-12-16 10:22:58 +00:00
Preston Thorpe
ecf918fe3a Merge 'Docs: add table of contents to CONTRIBUTING.md' from Fahd Ashour
Reviewed-by: Preston Thorpe <preston@turso.tech>

Closes #4037
2025-12-02 16:47:41 -05:00
Juan Garcia Orozco
dd6f3c1be4 fix: Link to Google Books in English in CONTRIBUTING 2025-11-27 22:15:06 +01:00
Fahd Ashour
9f5eaada00 doc: add table of contents to CONTRIBUTING.md 2025-11-25 07:13:59 +02:00
Pekka Enberg
012ac00e46 Merge 'Document ThreadSanitizer in CONTRIBUTING.md' from Pekka Enberg
Closes #3739
2025-10-16 08:43:33 +03:00
Pekka Enberg
08f010b969 Document ThreadSanitizer in CONTRIBUTING.md 2025-10-15 18:16:31 +03:00
Pekka Enberg
a09fd83544 Add Mold linker setup to CONTRIBUTING.md 2025-10-01 07:49:31 +03:00
Avinash Sajjanshetty
94e7f6defc Update whopper run and explore scripts 2025-09-17 21:58:54 +05:30
Avinash Sajjanshetty
d35789690e make whopper run with checksums
pass `--enable-checksums` to either `run` or `explore` commands
2025-09-14 20:08:34 +05:30
Pekka Enberg
a9694c87b1 whopper: A new DST with concurrency
This is a new deterministic simulator for Turso that focuses on finding
concurrency bugs.

You can run whopper with:

```console
penberg@vonneumann turso % SEED=1234 ./whopper/bin/run
   Compiling turso_whopper v0.1.5-pre.3 (/Users/penberg/src/tursodatabase/turso/whopper)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.22s
seed = 1234
       .             I/U/D/C
       .             44/19/11/2
       .             68/33/21/2
       |             104/51/29/3
       |             121/69/41/3
      ╱|╲            150/84/51/3
     ╱╲|╱╲           184/97/59/3
    ╱╲╱|╲╱╲          199/105/64/4
   ╱╲╱╲|╱╲╱╲         206/115/69/5
  ╱╲╱╲╱|╲╱╲╱╲        234/138/82/6
 ╱╲╱╲╱╲|╱╲╱╲╱╲       269/164/91/7
```
2025-09-11 08:35:18 +03:00
Pekka Enberg
0a6c54100f Add fault injection steps to CONTRIBUTING.md 2025-08-20 13:50:04 +03:00
Pekka Enberg
4aea9372bd Rename liblimbo_sqlite3 to libturso_sqlite3 2025-08-02 11:24:40 +03:00
Avinash Sajjanshetty
4e91ed1201 Add Rickrolling Turso blog post to contrib 2025-07-22 13:07:33 +05:30
Glauber Costa
3796f7d976 rename Limbo to Turso in the README and other files
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.
2025-06-27 15:44:40 -05:00
Pekka Enberg
45c1a72d0a cli: Rename CLI to Turso 2025-06-27 12:37:42 +03:00
Zaid Humayun
b56c5a91fa added more details to documentation 2025-05-16 13:48:43 +05:30
Zaid Humayun
cebc518147 added docs on building for Linux (Ubuntu 24.04.2 LTS) 2025-05-16 13:38:41 +05:30
Pekka Enberg
be4014a1df Initial pass on Antithesis testing
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.
2025-03-04 09:29:57 +02:00
Takayuki Maeda
291637cc71 use limbo_cli instead 2025-02-14 01:45:33 +09:00
Takayuki Maeda
e9b4d933b5 remove unnecessary option for running limbo cli 2025-02-13 05:00:43 +09:00
Gustavo Sverzut Barbieri
cd2d817c10 github.com/penberg/limbo was moved to github.com/tursodatabase/limbo
Adjust all the references since they were broken
2025-02-08 10:21:49 -03:00
sonhmai
d4e1aae368 doc: refine function contributing doc 2025-02-03 15:57:33 +07:00
Pekka Enberg
8c4ef098ef Update README.md 2025-02-01 09:42:13 +02:00
김선우
e687ae3bdf Update README.md 2025-01-14 19:51:50 +09:00
Pekka Enberg
481bd17219 Merge 'docs: add python bindings' from Jean Arhancet
Document Python binding setup with Maturin.

Closes #653
2025-01-13 19:06:39 +02:00
JeanArhancet
94ff7ac48c docs: add instructions for creating and using a Python virtual environment 2025-01-12 18:44:58 +01:00