[Rt-commit] rtir branch 5.0/docker-testing-buster2 updated. 5.0.3-8-g6c5b74ce
BPS Git Server
git at git.bestpractical.com
Mon Jan 30 19:05:00 UTC 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtir".
The branch, 5.0/docker-testing-buster2 has been updated
via 6c5b74ce487e811dcd4ba5fd34658428c55682e0 (commit)
from fb3f8665c7ec84b686e92fc5bc1a5f27ed6172a5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6c5b74ce487e811dcd4ba5fd34658428c55682e0
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon Jan 30 14:03:12 2023 -0500
Run with 5 parallel processes like the core RT tests
Also provide a cache directory so when running in parallel,
prove can store run state as set in the Makefile
test-parallel command.
diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index d4e9fa84..bac7ab7b 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -28,13 +28,19 @@ jobs:
docker network create rt
- name: Check out RTIR
uses: actions/checkout at v2
+ - name: Cache .prove state
+ id: cache-prove-state
+ uses: actions/cache at v3
+ with:
+ path: .prove
+ key: ${{ runner.os }}-sqlite
- name: Build test environment
run: |
docker build --build-arg RT_DB_TYPE=SQLite --tag rtir .
docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make'
- name: Run RTIR tests
run: |
- docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && make test-parallel'
+ docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && RT_TEST_PARALLEL_NUM=5 make test-parallel'
- name: Get run time
if: always()
run: |
@@ -70,6 +76,12 @@ jobs:
docker network create rt
- name: Check out RTIR
uses: actions/checkout at v2
+ - name: Cache .prove state
+ id: cache-prove-state
+ uses: actions/cache at v3
+ with:
+ path: .prove
+ key: ${{ runner.os }}-mariadb
- name: Build test environment
run: |
docker run --detach --name rtdb --network rt --env MYSQL_ROOT_PASSWORD=password mariadb:10.6
@@ -77,7 +89,7 @@ jobs:
docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make'
- name: Run RTIR tests
run: |
- docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && make test-parallel'
+ docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && RT_TEST_PARALLEL_NUM=5 make test-parallel'
- name: Get run time
if: always()
run: |
@@ -113,6 +125,12 @@ jobs:
docker network create rt
- name: Check out RTIR
uses: actions/checkout at v2
+ - name: Cache .prove state
+ id: cache-prove-state
+ uses: actions/cache at v3
+ with:
+ path: .prove
+ key: ${{ runner.os }}-pg
- name: Build test environment
run: |
docker run --detach --name rtdb --network rt --mount type=tmpfs,destination=/var/lib/postgresql/data --env POSTGRES_PASSWORD=password postgres:12.8
@@ -120,7 +138,7 @@ jobs:
docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make'
- name: Run RTIR tests
run: |
- docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && make test-parallel'
+ docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && RT_TEST_PARALLEL_NUM=5 make test-parallel'
- name: Get run time
if: always()
run: |
-----------------------------------------------------------------------
Summary of changes:
.github/workflows/github-action.yml | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
hooks/post-receive
--
rtir
More information about the rt-commit
mailing list