For the ruptures python package, we are using Github Actions to run our tests on each PR that should be merged on master. It worked beautifully up until now. But since few days, this Gh Actions just stays stuck and finally fails on a timeout (360 minutes).
Please, find here an example of the symptoms on a particular run.
Please, find here the Gh Actions code that performs the tests. It has a strategy matrix on several python versions and os.
name: Run tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- os: windows-latest
python-version: 3.9
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install ruptures
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
- name: Test with pytest
run: |
python -m pytest
From what I can see, there is no error except just it stays stuck. From what I noticed, it stays stuck always on the first elements of the strategy matrix combination, i.e. for us it is python v3.6 (which is the lowest in the matrix possibilities). But again, not sure it is linked to that since no error, just a timeout with no specific message about something going wrong (unless I did not looked to the right place).
Since I thought it might be linked to Gh getting lost with too many combination jobs on the matrix, I tried specifying max-parallel: 2 in the strategy. But it did not solved anything.
For the same reason, I tried removing from the strategy matrix the python v3.6 in order to see if the python v3.6 was the particular issue. But it does not solve anything and the Gh Actions just stays stuck on the Python v3.7 instead of v3.6. See here to see the run.
Tests run smoothly locally.
I don't get what cause this behaviour, even more since this Gh Actions used to run without any problem for several months.