mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-27 20:04:23 +01:00
Enable CHECKPOINT_CACHE by default in CI and testing scripts
This commit is contained in:
@@ -11,7 +11,7 @@ EXPERIMENTAL_FLAGS="--experimental-views"
|
||||
|
||||
# if RUST_LOG is non-empty, enable tracing output
|
||||
if [ -n "$RUST_LOG" ]; then
|
||||
TESTING="true" "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS -t testing/test.log "$@"
|
||||
TURSO_ENABLE_CHECKPOINT_CACHE=1 TESTING="true" "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS -t testing/test.log "$@"
|
||||
else
|
||||
TESTING="true" "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS "$@"
|
||||
TURSO_ENABLE_CHECKPOINT_CACHE=1 TESTING="true" "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS "$@"
|
||||
fi
|
||||
|
||||
@@ -11,7 +11,7 @@ EXPERIMENTAL_FLAGS="--experimental-indexes"
|
||||
|
||||
# if RUST_LOG is non-empty, enable tracing output
|
||||
if [ -n "$RUST_LOG" ]; then
|
||||
"$TURSODB" -m list -q $EXPERIMENTAL_FLAGS -t testing/test.log "$@"
|
||||
TURSO_ENABLE_CHECKPOINT_CACHE=1 "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS -t testing/test.log "$@"
|
||||
else
|
||||
"$TURSODB" -m list -q $EXPERIMENTAL_FLAGS "$@"
|
||||
TURSO_ENABLE_CHECKPOINT_CACHE=1 "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS "$@"
|
||||
fi
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
set -e
|
||||
|
||||
if [[ -n "$@" ]]; then
|
||||
cargo run -p limbo_sim -- "$@"
|
||||
TURSO_ENABLE_CHECKPOINT_CACHE=1 cargo run -p limbo_sim -- "$@"
|
||||
else
|
||||
echo "Running limbo_sim in infinite loop..."
|
||||
while true; do
|
||||
cargo run -p limbo_sim
|
||||
TURSO_ENABLE_CHECKPOINT_CACHE=1 cargo run -p limbo_sim
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user