mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-29 09:33:48 +00:00
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.
37 lines
773 B
TOML
37 lines
773 B
TOML
[project]
|
|
dependencies = [
|
|
"rich>=15.0.0",
|
|
]
|
|
name = "limbo"
|
|
readme = "README.md"
|
|
requires-python = ">=3.13"
|
|
version = "0.1.0"
|
|
|
|
[tool.uv]
|
|
package = false
|
|
|
|
[dependency-groups]
|
|
# Runs the Antithesis test templates locally: uv run --group antithesis thesis run testing/antithesis/<template>
|
|
antithesis = ["antithesis>=0.1.17", "pyturso", "thesis"]
|
|
|
|
[tool.uv.sources]
|
|
limbo_test = { workspace = true }
|
|
pyturso = { workspace = true }
|
|
thesis = { workspace = true }
|
|
|
|
[tool.uv.workspace]
|
|
members = ["testing", "scripts", "bindings/python", "tools/thesis"]
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
|
|
[tool.ruff.lint]
|
|
extend-select = [
|
|
"E", # pycodestyle errors
|
|
"W", # pycodestyle warings
|
|
"F", # pyflakes
|
|
'Q', # flake8-quotes
|
|
'C90', # mccabe
|
|
'I', # isort
|
|
]
|