Skip to content

Commit b301e5d

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 495f58a commit b301e5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yaml

+6-6
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
@@ -519,7 +519,7 @@ jobs:
519519
tar -xaf cln-compile-gcc.tar.bz2
520520
- name: Test
521521
run: |
522-
make -j $(nproc) check-doc-examples
522+
eatmydata make -j $(nproc) check-doc-examples
523523
524524
min-btc-support:
525525
name: Test minimum supported BTC v${{ matrix.MIN_BTC_VERSION }} with ${{ matrix.NAME }}
@@ -591,7 +591,7 @@ jobs:
591591
run: |
592592
env
593593
cat config.vars
594-
VALGRIND=0 poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
594+
VALGRIND=0 poetry run eatmydata pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
595595
596596
check-flake:
597597
name: Check Nix Flake

0 commit comments

Comments
 (0)