Skip to content

Commit 1521b92

Browse files
committed
CI: Use eatmydata to speed up test runs.
We don't care about data persistence, and this suppresses all sync calls (speeding sqlite3 specifically). Signed-off-by: Rusty Russell <[email protected]>
1 parent b472bae commit 1521b92

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
- name: Check
210210
run: |
211211
tar -xaf cln-${{ matrix.CFG }}.tar.bz2
212-
make -j $(nproc) check-units installcheck VALGRIND=${{ matrix.VALGRIND }}
212+
eatmydata make -j $(nproc) check-units installcheck VALGRIND=${{ matrix.VALGRIND }}
213213
214214
check-fuzz:
215215
name: Run fuzz regression tests
@@ -343,7 +343,7 @@ jobs:
343343
run: |
344344
env
345345
cat config.vars
346-
VALGRIND=0 poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
346+
VALGRIND=0 poetry run eatmydata pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
347347
348348
integration-valgrind:
349349
name: Valgrind Test CLN ${{ matrix.name }}
@@ -411,7 +411,7 @@ jobs:
411411
SLOW_MACHINE: 1
412412
TEST_DEBUG: 1
413413
run: |
414-
VALGRIND=1 poetry run pytest tests/ -vvv -n 3 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
414+
VALGRIND=1 poetry run eatmydata pytest tests/ -vvv -n 3 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
415415
416416
integration-sanitizers:
417417
name: Sanitizers Test CLN
@@ -477,7 +477,7 @@ jobs:
477477

478478
- name: Test
479479
run: |
480-
poetry run pytest tests/ -vvv -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
480+
poetry run eatmydata pytest tests/ -vvv -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
481481
482482
update-docs-examples:
483483
name: Update examples in doc schemas (disabled temporarily!)
@@ -520,7 +520,7 @@ jobs:
520520
tar -xaf cln-compile-gcc.tar.bz2
521521
- name: Test
522522
run: |
523-
make -j $(nproc) check-doc-examples
523+
eatmydata make -j $(nproc) check-doc-examples
524524
525525
min-btc-support:
526526
name: Test minimum supported BTC v${{ matrix.MIN_BTC_VERSION }} with ${{ matrix.NAME }}
@@ -592,7 +592,7 @@ jobs:
592592
run: |
593593
env
594594
cat config.vars
595-
VALGRIND=0 poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
595+
VALGRIND=0 poetry run eatmydata pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
596596
597597
check-flake:
598598
name: Check Nix Flake

0 commit comments

Comments
 (0)