svn commit: r1922203 - in /subversion/trunk/.github/workflows: autoconf.yml cmake.yml
| Newsgroups | gmane.comp.version-control.subversion.svn |
|---|---|
| Message-ID | <[email protected]> |
Author: rinrab
Date: Thu Nov 28 22:25:01 2024
New Revision: 1922203
URL: http://svn.apache.org/viewvc?rev=1922203&view=rev
Log:
GitHub Actions: Run tests in parallel. Currently guessing the amount of jobs
to `16`. In my local environment this was the optimal amount.
Noticing the time the workflows to run for future comparison:
- It takes about 13m 55s to run the `autoconf.yml` [1].
- The `cmake.yml` is running in 25m 54s.
* .github/workflows/autoconf.yml
(make check): Run with PARALLEL=16.
* .github/workflows/cmake.yml
(Configure CMake): Configure the tests for parallel execution.
(Run all tests): Make it using 16 jobs. Passing `--jobs 16` argument
for this.
[1] https://github.com/apache/subversion/actions/runs/12075097863
[2] https://github.com/apache/subversion/actions/runs/12075097874
Modified:
subversion/trunk/.github/workflows/autoconf.yml
subversion/trunk/.github/workflows/cmake.yml
Modified: subversion/trunk/.github/workflows/autoconf.yml
URL: http://svn.apache.org/viewvc/subversion/trunk/.github/workflows/autoconf.yml?rev=1922203&r1=1922202&r2=1922203&view=diff
==============================================================================
--- subversion/trunk/.github/workflows/autoconf.yml (original)
+++ subversion/trunk/.github/workflows/autoconf.yml Thu Nov 28 22:25:01 2024
@@ -75,7 +75,7 @@ jobs:
run: make -j
- name: Run tests (make check)
- run: make check
+ run: make check PARALLEL=16
- name: Install (make install)
run: sudo make install
Modified: subversion/trunk/.github/workflows/cmake.yml
URL: http://svn.apache.org/viewvc/subversion/trunk/.github/workflows/cmake.yml?rev=1922203&r1=1922202&r2=1922203&view=diff
==============================================================================
--- subversion/trunk/.github/workflows/cmake.yml (original)
+++ subversion/trunk/.github/workflows/cmake.yml Thu Nov 28 22:25:01 2024
@@ -154,6 +154,7 @@ jobs:
-DSVN_ENABLE_RA_SERF=ON
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/installdir
-DVCPKG_TARGET_TRIPLET=${{ matrix.vcpkg_triplet }}
+ -SVN_TEST_CONFIGURE_FOR_PARALLEL=ON
${{ matrix.extra_config_opts }}
- name: Build CMake
@@ -166,7 +167,7 @@ jobs:
id: run_all_tests
if: matrix.run_tests
working-directory: out
- run: ctest --output-on-failure --verbose -C Release
+ run: ctest --output-on-failure --verbose -C Release --jobs 16
- name: Rerun failed tests
if: ${{ matrix.run_tests && failure() && steps.run_all_tests.conclusion == 'failure' }}