Merge 'ci: run TCL tests for MVCC under CI' from Pere Diaz Bou

## Description
Run TCL tests for MVCC in the CI. Right now almost everything is
commented out as we need to fix them.
## AI Disclosure
No
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds CI step to run MVCC TCL tests via a custom sqlite wrapper with
experimental flags, and narrows the MVCC test suite to known passing
tests.
>
> - **CI**:
>   - Add `Test mvcc` step in `test-limbo` job to run `make test-compat-
mvcc` in `.github/workflows/rust.yml`.
> - **Makefile**:
>   - Update `test-compat-mvcc` to use `SQLITE_EXEC=scripts/turso-mvcc-
sqlite3`.
> - **Test Runner Script** (`scripts/turso-mvcc-sqlite3`):
>   - Enable experimental flags: `--experimental-mvcc`, `--experimental-
views`, `--experimental-strict`.
> - **Tests**:
>   - Define `testing/all-mvcc.test` with a subset of passing test
files; comment out failing ones.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
ee48302e30. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #4178
This commit is contained in:
Jussi Saurio
2025-12-11 23:39:05 +02:00
4 changed files with 32 additions and 27 deletions

View File

@@ -109,6 +109,9 @@ jobs:
- name: Test
run: make test
timeout-minutes: 20
- name: Test mvcc
run: make test-compat-mvcc
timeout-minutes: 10
test-sqlite:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30

View File

@@ -70,7 +70,7 @@ test-compat: check-tcl-version
RUST_LOG=$(RUST_LOG) SQLITE_EXEC=$(SQLITE_EXEC) ./testing/all.test
test-compat-mvcc: check-tcl-version
RUST_LOG=$(RUST_LOG) SQLITE_EXEC=$(SQLITE_EXEC) ./testing/all-mvcc.test
RUST_LOG=$(RUST_LOG) SQLITE_EXEC=scripts/turso-mvcc-sqlite3 ./testing/all-mvcc.test
test-single: check-tcl-version
@if [ -z "$(TEST)" ]; then \
@@ -220,4 +220,3 @@ endif
sim-schema:
mkdir -p simulator/configs/custom
cargo run -p limbo_sim -- print-schema > simulator/configs/custom/profile-schema.json

View File

@@ -7,7 +7,7 @@ PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
TURSODB="$PROJECT_ROOT/target/debug/tursodb"
# Add experimental features for testing
EXPERIMENTAL_FLAGS="--experimental-mvcc"
EXPERIMENTAL_FLAGS="--experimental-mvcc --experimental-views --experimental-strict"
# if RUST_LOG is non-empty, enable tracing output
if [ -n "$RUST_LOG" ]; then

View File

@@ -2,50 +2,53 @@
set testdir [file dirname $argv0]
source $testdir/autoincr.test
# failing:
# source $testdir/autoincr.test
# source $testdir/join.test
# source $testdir/insert.test
# source $testdir/pragma.test
# source $testdir/select.test
# source $testdir/changes.test
# source $testdir/total-changes.test
# source $testdir/update.test
# source $testdir/create_table.test
# source $testdir/create_index.test
# source $testdir/drop_table.test
# source $testdir/drop_index.test
# source $testdir/views.test
# source $testdir/window.test
# source $testdir/partial_idx.test
# source $testdir/foreign_keys.test
# source $testdir/agg-functions.test
# source $testdir/like.test
# source $testdir/orderby.test
# source $testdir/groupby.test
# source $testdir/subquery.test
# source $testdir/where.test
# source $testdir/offset.test
# works
source $testdir/glob.test
source $testdir/cmdlineshell.test
source $testdir/alter_table.test
source $testdir/agg-functions.test
source $testdir/coalesce.test
source $testdir/delete.test
source $testdir/glob.test
source $testdir/join.test
source $testdir/insert.test
source $testdir/json.test
source $testdir/like.test
source $testdir/math.test
source $testdir/orderby.test
source $testdir/groupby.test
source $testdir/pragma.test
source $testdir/scalar-functions.test
source $testdir/scalar-functions-datetime.test
source $testdir/select.test
source $testdir/subquery.test
source $testdir/where.test
source $testdir/compare.test
source $testdir/changes.test
source $testdir/total-changes.test
source $testdir/offset.test
source $testdir/scalar-functions-printf.test
source $testdir/transactions.test
source $testdir/update.test
source $testdir/drop_table.test
source $testdir/drop_index.test
source $testdir/default_value.test
source $testdir/boolean.test
source $testdir/literal.test
source $testdir/null.test
source $testdir/create_table.test
source $testdir/create_index.test
source $testdir/collate.test
source $testdir/values.test
source $testdir/integrity_check.test
source $testdir/rollback.test
source $testdir/views.test
source $testdir/vtab.test
source $testdir/upsert.test
source $testdir/window.test
source $testdir/partial_idx.test
source $testdir/foreign_keys.test
source $testdir/returning.test