Skip to content

Commit ac8ccb7

Browse files
committed
Switching to Ubuntu 24.04 LTS for builders and testers.
1 parent 59c4cde commit ac8ccb7

File tree

4 files changed

+32
-34
lines changed

4 files changed

+32
-34
lines changed

.github/workflows/build-docker.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build Docker
22
on:
33
push:
4-
branches: [ 'trunk' ]
4+
branches: ['trunk']
55
paths:
66
- 'tools/docker/Dockerfile'
77
- 'tools/docker/bin/run.sh'
@@ -22,11 +22,11 @@ concurrency:
2222
jobs:
2323
build:
2424
name: Build and publish Jetpack Dev Environment
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-24.04
2626
permissions:
2727
packages: write
2828
contents: read
29-
timeout-minutes: 60 # 2021-10-26: Build for arm64 is S-L-O-W. Sigh.
29+
timeout-minutes: 60 # 2021-10-26: Build for arm64 is S-L-O-W. Sigh.
3030

3131
steps:
3232
- uses: actions/checkout@v4

.github/workflows/build.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
env:
16-
COMPOSER_ROOT_VERSION: "dev-trunk"
16+
COMPOSER_ROOT_VERSION: 'dev-trunk'
1717

1818
jobs:
1919
build:
2020
name: Build all projects
21-
runs-on: ubuntu-latest
22-
timeout-minutes: 30 # 2023-05-25: Build times have crept up to ~15–25+ minutes as we've added more projects, bump to 30.
21+
runs-on: ubuntu-24.04
22+
timeout-minutes: 30 # 2023-05-25: Build times have crept up to ~15–25+ minutes as we've added more projects, bump to 30.
2323
env:
2424
# Hard-code a specific directory to avoid paths in vendor/composer/installed.json changing every build.
2525
BUILD_BASE: /tmp/jetpack-build
2626
# This string is used as a unique identifier of test reminder comments on PRs.
27-
TEST_COMMENT_INDICATOR: "<!-- wpcom-reminder-comment -->"
27+
TEST_COMMENT_INDICATOR: '<!-- wpcom-reminder-comment -->'
2828
outputs:
2929
any_plugins: ${{ steps.plugins.outputs.any }}
3030
changed_projects: ${{ steps.changed.outputs.projects }}
@@ -199,7 +199,7 @@ jobs:
199199
runs-on: ubuntu-latest
200200
needs: build
201201
if: needs.build.outputs.any_plugins == 'true'
202-
timeout-minutes: 10 # 2021-06-24: Successful runs should take just a few seconds now. But sometimes the upload is slow.
202+
timeout-minutes: 10 # 2021-06-24: Successful runs should take just a few seconds now. But sometimes the upload is slow.
203203
steps:
204204
- uses: actions/checkout@v4
205205
with:
@@ -294,16 +294,16 @@ jobs:
294294
- uses: actions/checkout@v4
295295
with:
296296
path: monorepo
297-
timeout-minutes: 1 # 2021-01-18: Successful runs seem to take a few seconds
297+
timeout-minutes: 1 # 2021-01-18: Successful runs seem to take a few seconds
298298

299299
- name: Download build artifact
300300
uses: actions/download-artifact@v4
301301
with:
302302
name: jetpack-build
303-
timeout-minutes: 2 # 2022-03-15: Successful runs normally take a few seconds, but on occasion they've been taking 60+ recently.
303+
timeout-minutes: 2 # 2022-03-15: Successful runs normally take a few seconds, but on occasion they've been taking 60+ recently.
304304
- name: Extract build archive
305305
run: tar --xz -xvvf build.tar.xz build
306-
timeout-minutes: 1 # 2021-01-18: Successful runs seem to take a few seconds
306+
timeout-minutes: 1 # 2021-01-18: Successful runs seem to take a few seconds
307307

308308
- name: Wait for prior instances of the workflow to finish
309309
uses: ./monorepo/.github/actions/turnstile
@@ -316,4 +316,4 @@ jobs:
316316
upstream-ref-since: '2024-04-10' # No point in checking 12 years of earlier commits from before we started adding "Upstream-Ref".
317317
username: matticbot
318318
working-directory: ${{ github.workspace }}/build
319-
timeout-minutes: 10 # 2024-04-11: Successful runs seem to take about a minute.
319+
timeout-minutes: 10 # 2024-04-11: Successful runs seem to take about a minute.

.github/workflows/e2e-tests.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ on:
55
paths-ignore:
66
- '**.md'
77
repository_dispatch:
8-
types: [ 'e2e tests**' ]
8+
types: ['e2e tests**']
99

1010
concurrency:
1111
group: e2e-tests-${{ github.event_name }}-${{ github.ref }}-${{ github.event.action }}
1212
cancel-in-progress: true
1313

1414
jobs:
1515
create-test-matrix:
16-
name: "Determine tests matrix"
17-
runs-on: ubuntu-latest
18-
timeout-minutes: 5 # 2023-09-15: The pnpm install may take a few minutes on cache miss.
16+
name: 'Determine tests matrix'
17+
runs-on: ubuntu-24.04
18+
timeout-minutes: 5 # 2023-09-15: The pnpm install may take a few minutes on cache miss.
1919
# Only run tests in the main repository
2020
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
2121
outputs:
@@ -62,7 +62,7 @@ jobs:
6262
echo "build-matrix=$BUILD_MATRIX" >> "$GITHUB_OUTPUT"
6363
6464
build-projects:
65-
name: "E2E: Build ${{ matrix.buildGroup }}"
65+
name: 'E2E: Build ${{ matrix.buildGroup }}'
6666
runs-on: ubuntu-latest
6767
needs: create-test-matrix
6868
timeout-minutes: 30
@@ -98,7 +98,7 @@ jobs:
9898
id: build-step
9999
if: steps.jetpack-build-cache.outputs.cache-hit != 'true'
100100
env:
101-
COMPOSER_ROOT_VERSION: "dev-trunk"
101+
COMPOSER_ROOT_VERSION: 'dev-trunk'
102102
BUILD_DIR: ./build-output
103103
PROJECT_PATH: ${{ matrix.path }}
104104
run: |
@@ -133,9 +133,9 @@ jobs:
133133
key: ${{ steps.jetpack-build-cache.outputs.cache-primary-key }}
134134

135135
e2e-tests:
136-
name: "${{ matrix.project }} e2e tests"
136+
name: '${{ matrix.project }} e2e tests'
137137
runs-on: ubuntu-latest
138-
needs: [ create-test-matrix, build-projects ]
138+
needs: [create-test-matrix, build-projects]
139139
# The "always() && ! cancelled() && ! failure()" bit is needed to still run if the build was skipped.
140140
if: >
141141
always() && ! cancelled() && ! failure() &&
@@ -185,7 +185,7 @@ jobs:
185185

186186
- name: Prepare build
187187
env:
188-
COMPOSER_ROOT_VERSION: "dev-trunk"
188+
COMPOSER_ROOT_VERSION: 'dev-trunk'
189189
BUILD_DIR: ./build-output
190190
PROJECT_PATH: ${{ matrix.path }}
191191
SUITE: ${{ matrix.suite }}
@@ -303,7 +303,7 @@ jobs:
303303
include-hidden-files: true
304304

305305
test-report:
306-
name: "Test report"
306+
name: 'Test report'
307307
runs-on: ubuntu-latest
308308
if: ${{ success() || failure() }}
309309
needs: [e2e-tests]
@@ -340,7 +340,7 @@ jobs:
340340
client-payload: ${{ steps.report-context.outputs.client_payload }}
341341

342342
slack-notification:
343-
name: "Slack notification"
343+
name: 'Slack notification'
344344
runs-on: ubuntu-latest
345345
if: ${{ success() || failure() }}
346346
needs: [e2e-tests]
@@ -376,16 +376,14 @@ jobs:
376376
VERSION: ${{ github.event.client_payload.ref_name }}
377377
run: echo "NOTIFICATION_SUITE=rc-${VERSION}" >> $GITHUB_ENV
378378

379-
- name: "Send notification"
379+
- name: 'Send notification'
380380
uses: ./projects/github-actions/test-results-to-slack
381381
with:
382382
github_token: ${{ secrets.GITHUB_TOKEN }}
383383
slack_token: ${{ secrets.SLACK_TOKEN }}
384384
slack_channel: ${{ secrets.SLACK_E2E_CHANNEL }}
385-
slack_icon_emoji: ":jetpack:"
385+
slack_icon_emoji: ':jetpack:'
386386
suite_name: ${{ env.NOTIFICATION_SUITE }}
387387
playwright_report_path: test-output/**/summary.json
388388
playwright_output_dir: test-output/**/results
389389
rules_configuration_path: .github/files/e2e-tests/notification-rules.json
390-
391-

.github/workflows/tests.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ name: Tests
33
on:
44
pull_request:
55
push:
6-
branches: [ 'trunk', '*/branch-*' ]
6+
branches: ['trunk', '*/branch-*']
77
concurrency:
88
group: tests-${{ github.event_name }}-${{ github.ref }}
99
cancel-in-progress: true
1010

1111
env:
12-
COMPOSER_ROOT_VERSION: "dev-trunk"
12+
COMPOSER_ROOT_VERSION: 'dev-trunk'
1313

1414
jobs:
1515
create-matrix:
16-
name: "Determine tests matrix"
17-
runs-on: ubuntu-latest
18-
timeout-minutes: 1 # 2021-02-03: Should only take a second.
16+
name: 'Determine tests matrix'
17+
runs-on: ubuntu-24.04
18+
timeout-minutes: 1 # 2021-02-03: Should only take a second.
1919
outputs:
2020
matrix: ${{ steps.create-matrix.outputs.matrix }}
2121
steps:
@@ -330,7 +330,7 @@ jobs:
330330
plugin-deps:
331331
name: Check plugin monorepo dep versions
332332
runs-on: ubuntu-latest
333-
timeout-minutes: 2 # 2022-09-08: Should only take a few seconds.
333+
timeout-minutes: 2 # 2022-09-08: Should only take a few seconds.
334334
steps:
335335
- uses: actions/checkout@v4
336336
- name: Setup tools
@@ -369,7 +369,7 @@ jobs:
369369
phan:
370370
name: Static analysis
371371
runs-on: ubuntu-latest
372-
timeout-minutes: 20 # 2024-05-02: Up to about 8 minutes now that we're running against the old WP stubs too.
372+
timeout-minutes: 20 # 2024-05-02: Up to about 8 minutes now that we're running against the old WP stubs too.
373373
steps:
374374
- uses: actions/checkout@v4
375375
- name: Setup tools

0 commit comments

Comments
 (0)