Skip to content

Commit

Permalink
Prevent tests from blocking for too long
Browse files Browse the repository at this point in the history
Bahamut frequently gets stuck, and waiting 6h is a waste of time.
  • Loading branch information
progval committed Jun 11, 2022
1 parent 058fab8 commit 5371077
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test-devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
bahamut
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -483,6 +484,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
bahamut-anope
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -515,6 +517,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
bahamut-atheme
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -554,6 +557,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/go/sbin:~/go/bin:$PATH
make ergo
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -592,6 +596,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
hybrid
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -624,6 +629,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/inspircd/sbin:~/.local/inspircd/bin:$PATH
make inspircd
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -662,6 +668,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/inspircd/sbin:~/.local/inspircd/bin:$PATH make
inspircd-anope
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -700,6 +707,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
ircu2
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -727,6 +735,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
limnoria
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -764,6 +773,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
nefarious
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -796,6 +806,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local//sbin:~/.local//bin:$PATH
make ngircd
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -834,6 +845,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local//sbin:~/.local//bin:$PATH make
ngircd-anope
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -866,6 +878,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local//sbin:~/.local//bin:$PATH
make ngircd-atheme
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -904,6 +917,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
plexus4
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -936,6 +950,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
solanum
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand All @@ -962,6 +977,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
sopel
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -994,6 +1010,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/unrealircd/sbin:~/.local/unrealircd/bin:$PATH
make unrealircd
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1026,6 +1043,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/unrealircd/sbin:~/.local/unrealircd/bin:$PATH
make unrealircd-5
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1064,6 +1082,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/unrealircd/sbin:~/.local/unrealircd/bin:$PATH make
unrealircd-anope
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1096,6 +1115,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/unrealircd/sbin:~/.local/unrealircd/bin:$PATH
make unrealircd-atheme
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-devel_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/inspircd/sbin:~/.local/inspircd/bin:$PATH
make inspircd
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -164,6 +165,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/inspircd/sbin:~/.local/inspircd/bin:$PATH make
inspircd-anope
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -196,6 +198,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/inspircd/sbin:~/.local/inspircd/bin:$PATH
make inspircd-atheme
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/test-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
bahamut
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -526,6 +527,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
bahamut-anope
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -558,6 +560,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
bahamut-atheme
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -590,6 +593,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
charybdis
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -629,6 +633,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/go/sbin:~/go/bin:$PATH
make ergo
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -667,6 +672,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
hybrid
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -699,6 +705,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/inspircd/sbin:~/.local/inspircd/bin:$PATH
make inspircd
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -737,6 +744,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/inspircd/sbin:~/.local/inspircd/bin:$PATH make
inspircd-anope
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -769,6 +777,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/inspircd/sbin:~/.local/inspircd/bin:$PATH
make inspircd-atheme
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -818,6 +827,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
irc2
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -856,6 +866,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
ircu2
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand All @@ -882,6 +893,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
limnoria
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -919,6 +931,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
nefarious
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -951,6 +964,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local//sbin:~/.local//bin:$PATH
make ngircd
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -989,6 +1003,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local//sbin:~/.local//bin:$PATH make
ngircd-anope
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1021,6 +1036,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local//sbin:~/.local//bin:$PATH
make ngircd-atheme
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1059,6 +1075,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
plexus4
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1091,6 +1108,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
solanum
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand All @@ -1117,6 +1135,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH make
sopel
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1149,6 +1168,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/unrealircd/sbin:~/.local/unrealircd/bin:$PATH
make unrealircd
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1181,6 +1201,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/unrealircd/sbin:~/.local/unrealircd/bin:$PATH
make unrealircd-5
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1219,6 +1240,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/unrealircd/sbin:~/.local/unrealircd/bin:$PATH make
unrealircd-anope
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -1251,6 +1273,7 @@ jobs:
- name: Test with pytest
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=$HOME/.local/bin:$PATH PATH=~/.local/unrealircd/sbin:~/.local/unrealircd/bin:$PATH
make unrealircd-atheme
timeout-minutes: 30
- if: always()
name: Publish results
uses: actions/upload-artifact@v2
Expand Down
1 change: 1 addition & 0 deletions make_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def get_test_job(*, config, test_config, test_id, version_flavor, jobs):
},
{
"name": "Test with pytest",
"timeout-minutes": 30,
"run": (
f"PYTEST_ARGS='--junit-xml pytest.xml' "
f"PATH=$HOME/.local/bin:$PATH "
Expand Down

0 comments on commit 5371077

Please sign in to comment.