Skip to content

Commit 6c22d20

Browse files
[MNT] Trying to diagnose ubuntu workflow failures (#2413)
* fix main workflow conditions * try downgrade ubuntu * latest image * swap space * linux only * periodic and release also
1 parent 225c2b6 commit 6c22d20

17 files changed

+51
-33
lines changed

.github/workflows/fast_release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build-project:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010

1111
steps:
1212
- uses: actions/checkout@v4
@@ -28,7 +28,7 @@ jobs:
2828
retention-days: 5
2929

3030
upload-wheels:
31-
runs-on: ubuntu-22.04
31+
runs-on: ubuntu-24.04
3232

3333
steps:
3434
- uses: actions/download-artifact@v4

.github/workflows/issue_assigned.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010

1111
jobs:
1212
remove-good-first-issue:
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414

1515
steps:
1616
- name: Create app token

.github/workflows/issue_comment_edited.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
jobs:
1212
pr-welcome-edited:
1313
if: ${{ github.event.issue.pull_request }}
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515

1616
steps:
1717
- name: Create app token

.github/workflows/issue_comment_posted.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
self-assign:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010

1111
steps:
1212
- name: Checkout

.github/workflows/periodic_github_maintenace.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
jobs:
1414
stale_branches:
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616

1717
steps:
1818
- name: Create app token

.github/workflows/periodic_tests.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212

1313
jobs:
1414
check-manifest:
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616

1717
steps:
1818
- name: Checkout
@@ -29,7 +29,7 @@ jobs:
2929
extra_args: check-manifest --hook-stage manual
3030

3131
pre-commit:
32-
runs-on: ubuntu-22.04
32+
runs-on: ubuntu-24.04
3333

3434
steps:
3535
- name: Checkout
@@ -46,7 +46,7 @@ jobs:
4646
extra_args: --all-files
4747

4848
run-notebook-examples:
49-
runs-on: ubuntu-22.04
49+
runs-on: ubuntu-24.04
5050

5151
steps:
5252
- name: Checkout
@@ -84,7 +84,7 @@ jobs:
8484
key: numba-run-notebook-examples-${{ runner.os }}-3.10-${{ env.CURRENT_DATE }}
8585

8686
test-core-imports:
87-
runs-on: ubuntu-22.04
87+
runs-on: ubuntu-24.04
8888

8989
steps:
9090
- name: Checkout
@@ -109,7 +109,7 @@ jobs:
109109
run: python aeon/testing/tests/test_core_imports.py
110110

111111
test-no-soft-deps:
112-
runs-on: ubuntu-22.04
112+
runs-on: ubuntu-24.04
113113

114114
steps:
115115
- name: Checkout
@@ -154,7 +154,7 @@ jobs:
154154
strategy:
155155
fail-fast: false
156156
matrix:
157-
os: [ ubuntu-22.04, macOS-14, windows-2022 ]
157+
os: [ ubuntu-24.04, macOS-14, windows-2022 ]
158158
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
159159

160160
steps:
@@ -166,6 +166,12 @@ jobs:
166166
with:
167167
python-version: ${{ matrix.python-version }}
168168

169+
- name: Set swap space
170+
if: runner.os == 'Linux'
171+
uses: pierotofy/[email protected]
172+
with:
173+
swap-size-gb: 10
174+
169175
- name: Use numba cache to set env variables but not restore cache
170176
uses: ./.github/actions/numba_cache
171177
with:
@@ -195,7 +201,7 @@ jobs:
195201
key: numba-pytest-${{ runner.os }}-${{ matrix.python-version}}-${{ env.CURRENT_DATE }}
196202

197203
codecov:
198-
runs-on: ubuntu-22.04
204+
runs-on: ubuntu-24.04
199205

200206
steps:
201207
- name: Checkout

.github/workflows/pr_core_dep_import.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818

1919
jobs:
2020
test-core-imports:
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-24.04
2222

2323
steps:
2424
- name: Checkout

.github/workflows/pr_examples.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
run-notebook-examples:
22-
runs-on: ubuntu-22.04
22+
runs-on: ubuntu-24.04
2323

2424
steps:
2525
- name: Checkout
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
python-version: "3.10"
3232

33-
- if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'no numba cache') }}
33+
- if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'no numba cache') }}
3434
name: Restore numba cache
3535
uses: ./.github/actions/numba_cache
3636
with:
@@ -46,5 +46,5 @@ jobs:
4646
command: python -m pip install .[all_extras,binder,dev]
4747

4848
- name: Run example notebooks
49-
run: .github/utilities/run_examples.sh ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'full examples run') }}
49+
run: .github/utilities/run_examples.sh ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'full examples run') }}
5050
shell: bash

.github/workflows/pr_opened.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
# based on the scikit-learn 1.3.1 PR labelers
1414
labeler:
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616

1717
steps:
1818
- name: Checkout

.github/workflows/pr_precommit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
pre-commit:
17-
runs-on: ubuntu-22.04
17+
runs-on: ubuntu-24.04
1818

1919
steps:
2020
- name: Create app token

.github/workflows/pr_pytest.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818

1919
jobs:
2020
test-no-soft-deps:
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-24.04
2222

2323
steps:
2424
- name: Checkout
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
python-version: "3.10"
3131

32-
- if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'no numba cache') }}
32+
- if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'no numba cache') }}
3333
name: Restore numba cache
3434
uses: ./.github/actions/numba_cache
3535
with:
@@ -56,7 +56,7 @@ jobs:
5656
strategy:
5757
fail-fast: false
5858
matrix:
59-
os: [ ubuntu-22.04, macOS-14, windows-2022 ]
59+
os: [ ubuntu-24.04, macOS-14, windows-2022 ]
6060
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
6161
# skip python versions unless the PR has the 'full pytest actions' label
6262
pr-testing:
@@ -74,7 +74,13 @@ jobs:
7474
with:
7575
python-version: ${{ matrix.python-version }}
7676

77-
- if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'no numba cache') }}
77+
- name: Set swap space
78+
if: runner.os == 'Linux'
79+
uses: pierotofy/[email protected]
80+
with:
81+
swap-size-gb: 10
82+
83+
- if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'no numba cache') }}
7884
name: Restore numba cache
7985
uses: ./.github/actions/numba_cache
8086
with:
@@ -100,7 +106,7 @@ jobs:
100106
# run the code coverage job if a PR has the 'codecov actions' label
101107
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'codecov actions') }}
102108

103-
runs-on: ubuntu-22.04
109+
runs-on: ubuntu-24.04
104110

105111
steps:
106112
- name: Checkout

.github/workflows/pr_typecheck.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
typecheck:
1919
# run the code coverage job if a PR has the '' label
2020
if: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run typecheck test') }}
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-24.04
2222

2323
steps:
2424
- name: Checkout

.github/workflows/precommit_autoupdate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
pre-commit-auto-update:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212

1313
steps:
1414
- uses: actions/checkout@v4

.github/workflows/release.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
check-manifest:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212

1313
steps:
1414
- uses: actions/checkout@v4
@@ -23,7 +23,7 @@ jobs:
2323

2424
build-project:
2525
needs: check-manifest
26-
runs-on: ubuntu-22.04
26+
runs-on: ubuntu-24.04
2727

2828
steps:
2929
- uses: actions/checkout@v4
@@ -51,7 +51,7 @@ jobs:
5151
strategy:
5252
fail-fast: false
5353
matrix:
54-
os: [ ubuntu-22.04, macOS-14, windows-2022 ]
54+
os: [ ubuntu-24.04, macOS-14, windows-2022 ]
5555
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
5656

5757
steps:
@@ -61,6 +61,12 @@ jobs:
6161
with:
6262
python-version: ${{ matrix.python-version }}
6363

64+
- name: Set swap space
65+
if: runner.os == 'Linux'
66+
uses: pierotofy/[email protected]
67+
with:
68+
swap-size-gb: 10
69+
6470
- uses: actions/download-artifact@v4
6571
with:
6672
name: dist
@@ -93,7 +99,7 @@ jobs:
9399

94100
upload-wheels:
95101
needs: test-wheels
96-
runs-on: ubuntu-22.04
102+
runs-on: ubuntu-24.04
97103

98104
steps:
99105
- uses: actions/download-artifact@v4

.github/workflows/scorecard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions: read-all
1313
jobs:
1414
analysis:
1515
name: Scorecard analysis
16-
runs-on: ubuntu-22.04
16+
runs-on: ubuntu-24.04
1717
permissions:
1818
# Needed to upload the results to code-scanning dashboard.
1919
security-events: write

.github/workflows/update_contributors.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
generate-markdown-and-commit:
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313

1414
steps:
1515
- uses: actions/checkout@v4

.readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ python:
1111
- docs
1212

1313
build:
14-
os: ubuntu-22.04
14+
os: ubuntu-24.04
1515
tools:
1616
python: "3.10"
1717

0 commit comments

Comments
 (0)