Skip to content

Commit f8ec471

Browse files
committed
try in-memory db
1 parent 4aa5017 commit f8ec471

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,17 @@ jobs:
4040
fail-fast: false
4141
matrix:
4242
# https://www.cockroachlabs.com/docs/releases/release-support-policy
43-
crdb: [v23.2, v24.1, v24.3]
43+
crdb: [v24.3]
4444
ruby: ["3.4"]
45-
name: Test (crdb=${{ matrix.crdb }} ruby=${{ matrix.ruby }})
45+
conf:
46+
[
47+
"--max-sql-memory=25% --cache=25%",
48+
"--max-sql-memory=25% --cache=25% --store=type=mem,size=20%",
49+
"--max-sql-memory=50% --cache=50% --store=type=mem,size=50%",
50+
"--max-sql-memory=90% --cache=90% --store=type=mem,size=90%",
51+
"--max-sql-memory=25% --cache=25% --store=type=mem,size=70%",
52+
]
53+
name: "{{ matrix.conf }}"
4654
steps:
4755
- name: Set Up Actions
4856
uses: actions/checkout@v4
@@ -75,9 +83,8 @@ jobs:
7583
7684
# Start a CockroachDB server and wait for it to become ready.
7785
rm -f "$urlfile"
78-
rm -rf cockroach-data
7986
# Start CockroachDB.
80-
cockroach start-single-node --max-sql-memory=25% --cache=25% --insecure --host=localhost --spatial-libs=./cockroach-$full_version.linux-amd64/lib --listening-url-file="$urlfile" >/dev/null 2>&1 &
87+
cockroach start-single-node --insecure ${{ matrix.conf }} --host=localhost --spatial-libs=./cockroach-$full_version.linux-amd64/lib --listening-url-file="$urlfile" >/dev/null 2>&1 &
8188
# Ensure CockroachDB is stopped on script exit.
8289
# Wait until CockroachDB has started.
8390
for i in {0..3}; do

0 commit comments

Comments
 (0)