Commit Graph

67 Commits

Author SHA1 Message Date
Avinash Sajjanshetty
5256f29a9c Add checksums behind a feature flag 2025-09-13 11:00:39 +05:30
pedrocarlo
2cc0bb12d7 add Simulator profiles to CI 2025-08-30 13:09:27 -03:00
Avinash Sajjanshetty
77a4e96022 run encryption tests in CI 2025-08-24 16:15:13 +05:30
Avinash Sajjanshetty
eb45a156fc Add a simple test for encryption 2025-08-20 11:47:25 +05:30
Piotr Rzysko
20ea079679 Add framework for testing extensions in TCL
There is a distinction between tests that verify extension-specific
behavior and tests that verify interactions between the database engine
and extensions. Previously, both types of tests were kept in extensions.py.
With this new framework, we can extract the latter type of tests from
extensions.py into TCL. This cleans up extensions.py and provides
compatibility testing with SQLite at no extra cost.

To demonstrate the framework’s usage, tests verifying the handling of
virtual tables were extracted to TCL.

In the future, we may consider moving extension-specific tests to TCL as
well, especially those that have counterparts in SQLite or sqlean.
2025-08-15 21:06:27 +02:00
pedrocarlo
eeaa3c788a disable unused variables in cargo clippy 2025-08-13 12:00:57 -03:00
Jussi Saurio
86b1232268 chore: enable indexes by default 2025-08-01 15:44:56 +03:00
Diego Reis
e1c799dee4 Bury limbo-wasm
Probably an unseen mistake from some rebase
2025-07-31 11:04:44 -03:00
Pekka Enberg
8adc807cd7 Merge 'Change function signatures to return IO Completions' from Pedro Muniz
Changes a couple of function signatures to return `Completion`. Also, I
changed `Completion` to be internally `Arc` to abstract the `Arc`
implementation detail, and to be able to attach a `#[must_use]` to the
`Completion` struct, so that cargo check can show us where we are not
tracking completions in the code. I also attached a `#[must_use]` to
`IOResult` so that we can see the places that we are not propagating or
waiting for I/O, demonstrating locations where functions should be
reentrant and are not.
Also, while we are with this refactor in progress I want to relax the
Clippy CI lint on unused_variables.

Closes #2309
2025-07-29 12:41:14 +03:00
pedrocarlo
3aba5821fc change clippy in CI to allow unused variables 2025-07-28 15:56:37 -03:00
Diego Reis
98bec9868b Remove wasm binding
With napi v3 we can compile our javascript binding to wasm, which can
reduce a lot of maintenance overhead and complexity
2025-07-28 14:48:51 -03:00
pedrocarlo
0ab2f2b951 cli options for max and min tick + adjust github action to run with faster clock so no timeouts happen 2025-07-17 12:25:31 -03:00
Pekka Enberg
cae1c289b2 github: Reduce simulator iterations
...hopefully fixes simulator runs timing out problem.
2025-07-17 08:52:06 +03:00
Pekka Enberg
1a8bade9d5 Merge 'Updates to the simulator' from Alperen Keleş
- Add generation for UNION/JOIN
- Rearchitect the oracle calling conventions to simplify the code paths
- Add brute force shrinking option by @echoumcp1

Closes #2049
2025-07-16 11:03:41 +03:00
alpaylan
a23441f656 reduce the number of interactions in the simulator runs in the CI 2025-07-13 11:36:05 -04:00
alpaylan
a073078e19 reduce the number of simulator runs in the CI 2025-07-13 11:04:17 -04:00
Levy A.
4eea4a71d7 fix: add fuzz to CI checks 2025-07-08 13:41:05 -03:00
pedrocarlo
90878e12b1 remove cargo-c from CI + let makefile decide what is needed to uv sync for testing 2025-07-07 15:34:29 -03:00
pedrocarlo
79660f268f rust pass arguments to run-sim 2025-07-07 12:23:00 -03:00
Pekka Enberg
53ba3ff926 Rename limbo_core crate to turso_core 2025-06-29 09:59:17 +03:00
Pekka Enberg
67809233d4 github: Run simulator on pull requests 2025-06-29 09:26:14 +03:00
Pekka Enberg
2fc5c0ce5c Switch to runtime flag for enabling indexes
Makes it easier to test the feature:

```
$ cargo run --  --experimental-indexes
Limbo v0.0.22
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database
limbo> CREATE TABLE t(x);
limbo> CREATE INDEX t_idx ON t(x);
limbo> DROP INDEX t_idx;
```
2025-06-26 10:07:28 +03:00
Nils Koch
4c7fcafe77 ci: fail on all clippy warnings 2025-06-23 19:52:13 +01:00
Pekka Enberg
a108f146dd github: Disable compat tests with indexes on
...failing currently.
2025-06-18 13:52:14 +03:00
Pere Diaz Bou
34592b172c run index tests with flags instead of ignore 2025-06-17 19:33:23 +02:00
Pere Diaz Bou
de1f29dadf core_tester index fuzz tests with flag 2025-06-17 19:33:23 +02:00
Pere Diaz Bou
9ae4563bcd index_experimental flag to enable index usages
Currently indexes are the bulk of the problem with `UPDATE` and
`DELETE`, while we work on fixing those it makes sense to disable
indexing since they are not stable. We want to try to make everything
else stable before we continue with indexing.
2025-06-17 19:33:23 +02:00
Jussi Saurio
3265e0a789 adjust timeouts in ci 2025-06-10 14:16:26 +03:00
Jussi Saurio
844461d20b update and delete fixes 2025-06-10 14:16:26 +03:00
blacksmith-sh[bot]
c08b6a8957 Migrate workflows to Blacksmith 2025-05-26 16:28:46 +00:00
meteorgan
3bf0ce7fb3 Add some comments for values statement 2025-05-23 22:11:34 +08:00
Pekka Enberg
da3815e1cb github: Ensure rustmft is installed 2025-05-14 09:12:35 +03:00
pedrocarlo
dd5310a85e adjust workflow to install uv 2025-04-15 12:45:46 -03:00
Henrik Ingo
24839e6f01 Add Nyrkiö to the new clickbench task 2025-02-18 02:36:39 +02:00
Henrik Ingo
3ab99760d2 Enable Nyrkiö also for PR 2025-02-18 02:10:40 +02:00
Jussi Saurio
01f51a4c20 Merge 'Fix math binary' from Nikita Sivukhin
Fix codegen for binary functions and add fuzz test for math functions
(we need to compile `rusqlite` with `-DSQLITE_ENABLE_MATH_FUNCTIONS` in
order to bundle sqlite with math functions compiled)

Reviewed-by: Jussi Saurio (@jussisaurio)

Closes #1015
2025-02-15 18:17:08 +02:00
Nikita Sivukhin
7fa6ff9bb3 reset rust caches in the CI 2025-02-15 14:57:59 +04:00
Nikita Sivukhin
32ec8f64d5 move .config to the top level in order to have rusqlite dep built identically across multiple projects 2025-02-15 14:54:19 +04:00
Nikita Sivukhin
ac263fa5a8 reset rust caches in the CI 2025-02-15 14:42:03 +04:00
Jussi Saurio
e8c0717f5b Add modified clickbench script to repo + CI 2025-02-15 11:48:06 +02:00
Pekka Enberg
a8a22e412c github: Add timeout to compatibility tests
...one job was running non-stop for an hour, which is clearly not right.
2025-02-12 09:56:39 +02:00
Jorge Hermo
fe30a7b505 chore: include limbo-wasm in clippy checks 2025-01-15 23:39:45 +01:00
Jorge Hermo
c6b9b0c9a1 chore: update clippy ci command 2025-01-15 23:25:04 +01:00
Jorge Hermo
15f7928551 chore: enable all features in clippy ci and fix more clippy lints 2025-01-15 23:23:12 +01:00
Pekka Enberg
2186af6c89 Bump "build-native" timeout to 10 minutes 2025-01-14 10:07:00 +02:00
Kacper Madej
a2e1ef2439 Use newest SQLite on Github Actions 2025-01-10 13:31:38 +07:00
PThorpe92
361e55f858 Fix checkout action for clippy ci 2024-12-29 10:25:49 -05:00
PThorpe92
f6cd707544 Add clippy CI, fix or ignore warnings where appropriate 2024-12-29 10:25:41 -05:00
Kacper Madej
89f5167315 Fix CI build 2024-12-18 16:43:35 +01:00
Luca Barbato
eacbba2c07 Minimal cargo-c support 2024-12-14 15:19:50 +01:00