Skip to content

Commit d7fd5bc

Browse files
committed
.github: ensure regression tests do not run in parallel
At least the sysvpart.sh regression test cannot run in parallel yet with other tests (probably runparts.sh), so we must ensure the tests never run in parallel, in particular at release. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent 3f98220 commit d7fd5bc

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ jobs:
4040
wget https://github.com/troglobit/libite/releases/download/v2.6.2/libite-2.6.2.tar.gz
4141
tar xf libuev-2.4.1.tar.xz
4242
tar xf libite-2.6.2.tar.gz
43-
(cd libuev-2.4.1 && ./configure && make && sudo make install-strip)
44-
(cd libite-2.6.2 && ./configure && make && sudo make install-strip)
43+
(cd libuev-2.4.1 && ./configure && make -j9 && sudo make install-strip)
44+
(cd libite-2.6.2 && ./configure && make -j9 && sudo make install-strip)
4545
sudo ldconfig
4646
- uses: actions/checkout@v4
4747
- name: Static Finit
4848
run: |
4949
./autogen.sh
5050
./configure --prefix= --enable-static
51-
make -j3 V=1
51+
make -j9 V=1
5252
- name: Regular Finit
5353
run: |
5454
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var \
5555
--enable-x11-common-plugin --enable-testserv-plugin --with-watchdog \
5656
--with-keventd --with-libsystemd \
5757
CFLAGS="-fsanitize=address -ggdb"
58-
make -j3 clean
59-
make -j3 V=1
58+
make -j9 clean
59+
make -j9 V=1
6060
- name: Install to /tmp
6161
run: |
6262
DESTDIR=/tmp make install-strip
@@ -78,7 +78,7 @@ jobs:
7878
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
7979
- name: Run Unit Tests
8080
run: |
81-
make check || (cat test/test-suite.log; false)
81+
make -j1 check || (cat test/test-suite.log; false)
8282
- name: Upload Test Results
8383
if: always()
8484
uses: actions/upload-artifact@v4

.github/workflows/coverity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
wget https://github.com/troglobit/libite/releases/download/v2.6.2/libite-2.6.2.tar.gz
6161
tar xf libuev-2.4.1.tar.xz
6262
tar xf libite-2.6.2.tar.gz
63-
(cd libuev-2.4.1 && ./configure && make && sudo make install-strip)
64-
(cd libite-2.6.2 && ./configure && make && sudo make install-strip)
63+
(cd libuev-2.4.1 && ./configure && make -j9 && sudo make install-strip)
64+
(cd libite-2.6.2 && ./configure && make -j9 && sudo make install-strip)
6565
sudo ldconfig
6666
- name: Configure
6767
run: |

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
name: Build and upload release tarball
1414
if: startsWith(github.ref, 'refs/tags/')
1515
runs-on: ubuntu-latest
16-
env:
17-
MAKEFLAGS: -j3
1816
steps:
1917
- uses: actions/checkout@v4
2018
- name: Installing dependencies ...
@@ -25,8 +23,8 @@ jobs:
2523
wget https://github.com/troglobit/libite/releases/download/v2.6.2/libite-2.6.2.tar.gz
2624
tar xf libuev-2.4.1.tar.xz
2725
tar xf libite-2.6.2.tar.gz
28-
(cd libuev-2.4.1 && ./configure && make && sudo make install-strip)
29-
(cd libite-2.6.2 && ./configure && make && sudo make install-strip)
26+
(cd libuev-2.4.1 && ./configure && make -j9 && sudo make install-strip)
27+
(cd libite-2.6.2 && ./configure && make -j9 && sudo make install-strip)
3028
sudo ldconfig
3129
- name: Setting release variables ...
3230
id: build
@@ -60,7 +58,7 @@ jobs:
6058
ver=$(./configure --version | head -1 | awk '{print $NF}')
6159
dir=finit-$ver/_build/sub
6260
63-
make release || (cat $dir/test/test-suite.log; false)
61+
make -j1 release || (cat $dir/test/test-suite.log; false)
6462
ls -lF ../
6563
mkdir -p artifacts/
6664
mv ../*.tar.* artifacts/

.github/workflows/weekly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
wget https://github.com/troglobit/libite/releases/download/v2.6.2/libite-2.6.2.tar.gz
4040
tar xf libuev-2.4.1.tar.xz
4141
tar xf libite-2.6.2.tar.gz
42-
(cd libuev-2.4.1 && ./configure && make && sudo make install-strip)
43-
(cd libite-2.6.2 && ./configure && make && sudo make install-strip)
42+
(cd libuev-2.4.1 && ./configure && make -j9 && sudo make install-strip)
43+
(cd libite-2.6.2 && ./configure && make -j9 && sudo make install-strip)
4444
sudo ldconfig
4545
- uses: actions/checkout@v4
4646
- name: Base run

0 commit comments

Comments
 (0)