Commit Graph

30 Commits

Author SHA1 Message Date
Pekka Enberg
4805c6b06b antithesis-tests: Don't fail tests on ProgrammingError
The ProgrammingError exception is thrown when tables, indexes, or
columns are dropped in parallel. Let's not fail the Antithesis test
drivers when that happens.
2025-10-21 20:08:11 +03:00
Jussi Saurio
d187be74a5 antithesis-tests: don't create CHECK constraints
we don't support them, and we just started returning parse errors for
trying to do so -> failures in antithesis runs
2025-10-17 09:25:06 +03:00
Pekka Enberg
7f7ad90244 antithesis-tests: Rename "utils.py" to "helper_utils.py"
Antithesis is now supposed to detect that this is not a runnable driver
and not complain about it.
2025-09-24 14:28:35 +03:00
Pekka Enberg
3341f4657e antithesis: Drop experimental_indexes parameter from commect()
The `experimental_indexes` parameter got dropped from Python bindings so
stop using it to make Antithesis stress-composer drivers to run.
2025-09-05 13:17:39 +03:00
Pekka Enberg
632e1a2952 antithesis: Improve index creation to sometimes use DESC too 2025-07-21 14:17:24 +03:00
Pekka Enberg
cd494a6ccd antithesis: Add ALTER TABLE parallel driver 2025-07-21 14:17:24 +03:00
Pekka Enberg
08e1f4a971 antithesis: Add DROP TABLE parallel driver 2025-07-21 13:40:28 +03:00
Pekka Enberg
bd30cb313c antithesis: Add CREATE TABLE parallel driver 2025-07-21 13:40:28 +03:00
Pekka Enberg
9788a8739c antithesis: Add DROP INDEX parallel driver 2025-07-21 13:40:28 +03:00
Pekka Enberg
02ccdd7194 antithesis: Add CREATE INDEX parallel driver 2025-07-21 13:40:28 +03:00
Pekka Enberg
ade013ae88 antithesis: Add shuffle-run.sh helper script 2025-07-21 12:56:20 +03:00
Pekka Enberg
29e7b41ca5 antithesis: Create indexes in first_setup.py 2025-07-21 12:55:37 +03:00
Pekka Enberg
0ebe6bb933 antithesis-tests: Enable indexes in Antithesis parallel drivers 2025-07-21 12:49:38 +03:00
Pekka Enberg
e90ff42484 antithesis: Fix first_setup.py to commit both transactions 2025-07-11 13:12:26 +03:00
Pekka Enberg
bada750135 antithesis: Fix transaction management
Commit 5216e67d ("bindings/python: Start transaction implicitly in
execute()") fixed transaction management in Python bindings, which means
we now need to execute explicit commit().
2025-07-10 10:16:33 +03:00
Jussi Saurio
f312227825 uv run ruff format && uv run ruff check --fix 2025-07-09 10:06:29 +03:00
Pekka Enberg
b895381ae6 Revert "Merge 'Reachable assertions in Antithesis Python Test for better logging' from Pedro Muniz"
This reverts commit dbbc3f5190, reversing
changes made to 1cd5a49705. We're missing
some mandatory parameters, causing these to fail under Antithesis.
2025-07-08 17:51:12 +03:00
pedrocarlo
e9361c0eba add more logging to antithesis tests
format python tests
2025-07-07 19:11:55 -03:00
Pekka Enberg
82a727bcf2 antithesis: Fix Python linter complaints in parallel_driver_schema_rollback.py 2025-07-03 19:34:23 +03:00
Pekka Enberg
6a3042b5d4 antithesis: Add schema rollback parallel driver 2025-07-03 16:50:50 +03:00
Pekka Enberg
a5b539f1bf bindings/python: Rename package to pyturso 2025-06-27 11:27:08 +03:00
Pekka Enberg
a45f07a6ad antithesis: Add rollback parallel test driver 2025-06-25 20:02:09 +03:00
Pekka Enberg
28c2d24931 antithesis: Relax connect failure check
We also want to just ignore this under Antithesis:

``´
limbo.DatabaseError: Failed to open database: LockingError("Failed locking file. File is locked by another process")
```
2025-06-24 15:47:21 +03:00
pedrocarlo
80ccca8827 ruff lint fix 2025-06-20 15:59:03 -03:00
Pekka Enberg
74fc789719 antithesis: Add integritycheck parallel driver 2025-06-19 14:40:38 +03:00
Pekka Enberg
68d4389ee9 antithesis: Remove PRIMARY KEY and UNIQUE constraints
...we don't have indexing enabled by default so drop them.
2025-06-19 13:48:12 +03:00
Pekka Enberg
419ddf0cfa antithesis-tests: Make test drivers robust when database is locked
If multiple processes access the same database file concurrently, Limbo fails with:

```
LockingError("Failed locking file. File is locked by another process
```

Make test driver robust against that.
2025-06-19 10:14:18 +03:00
Pekka Enberg
1962990506 antithesis-tests: Don't fail tests on unique constraint violation
Unique constraint violation is not an error.
2025-05-29 16:10:14 +03:00
Pekka Enberg
e8bc3086f2 antithesis-tests: Fix generate_random_value() on older Python versions 2025-04-26 10:53:31 +03:00
eric-dinh-antithesis
f993a22023 antithesis-tests: add all tests 2025-04-24 12:20:41 -04:00