Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use ubuntu-22.04 runners #12270

Merged
merged 1 commit into from Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Expand Up @@ -11,15 +11,15 @@ permissions:

jobs:
actionlint:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: linkerd/dev/actions/setup-tools@v43
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- run: just-dev lint-actions

devcontainer-versions:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: linkerd/dev/actions/setup-tools@v43
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/choco.yml
Expand Up @@ -11,13 +11,13 @@ permissions:
jobs:
choco-psscript-lint:
timeout-minutes: 10
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: devblackops/github-action-psscriptanalyzer@854038567344559afaaa8ccb7a014452b99d86ee
env:
# https://github.com/devblackops/github-action-psscriptanalyzer/pull/3/files
INPUT_FAILONWARNING: 1
with:
rootPath: bin/win/tools
failOnInfos: true
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: devblackops/github-action-psscriptanalyzer@854038567344559afaaa8ccb7a014452b99d86ee
env:
# https://github.com/devblackops/github-action-psscriptanalyzer/pull/3/files
INPUT_FAILONWARNING: 1
with:
rootPath: bin/win/tools
failOnInfos: true
8 changes: 4 additions & 4 deletions .github/workflows/codecov.yml
Expand Up @@ -3,7 +3,7 @@ name: Coverage
# Run weekly on Sunday at midnight (UTC).
on:
schedule:
- cron: '0 0 * * 0'
- cron: "0 0 * * 0"

permissions:
contents: read
Expand All @@ -12,7 +12,7 @@ jobs:
go:
name: Go
timeout-minutes: 30
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: golang:1.22
steps:
Expand All @@ -27,7 +27,7 @@ jobs:
js:
name: JS
timeout-minutes: 30
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: node:20-stretch
steps:
Expand All @@ -48,7 +48,7 @@ jobs:

rust:
name: Rust
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 15
container:
image: docker://rust:1.76.0
Expand Down
50 changes: 25 additions & 25 deletions .github/workflows/codeql.yml
Expand Up @@ -4,25 +4,25 @@ name: CodeQL

on:
push:
branches: [ main, stable-* ]
branches: [main, stable-*]
paths:
- .github/workflows/codeql.yml
- '**/*.go'
- '**/*.js'
- '**/*.jsx'
- .github/workflows/codeql.yml
- "**/*.go"
- "**/*.js"
- "**/*.jsx"
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, stable-* ]
branches: [main, stable-*]
paths:
- .github/workflows/codeql.yml
- '**/*.go'
- '**/*.js'
- '**/*.jsx'
- .github/workflows/codeql.yml
- "**/*.go"
- "**/*.js"
- "**/*.jsx"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
Expand All @@ -32,21 +32,21 @@ jobs:
fail-fast: false
matrix:
language:
- go
- javascript
- go
- javascript

steps:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: '1.22'
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: "1.22"
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633

- name: Initialize
# Unpinned action version so that we automatically get analyzer updates.
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Initialize
# Unpinned action version so that we automatically get analyzer updates.
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Analyze
uses: github/codeql-action/analyze@v3
- name: Analyze
uses: github/codeql-action/analyze@v3
4 changes: 2 additions & 2 deletions .github/workflows/devcontainer.yml
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
rust-version:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
Expand All @@ -37,7 +37,7 @@ jobs:
fi

devcontainer-image:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: linkerd/dev/actions/setup-tools@v43
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/go.yml
Expand Up @@ -5,17 +5,17 @@ on:
paths:
- .github/workflows/go.yml
- go.sum
- '**/*.go'
- '**/*.golden'
- '**/charts/**'
- "**/*.go"
- "**/*.golden"
- "**/charts/**"

permissions:
contents: read

jobs:
go-lint:
timeout-minutes: 10
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container: ghcr.io/linkerd/dev:v43-go
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
Expand All @@ -24,7 +24,7 @@ jobs:

go-format:
timeout-minutes: 10
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container: ghcr.io/linkerd/dev:v43-go
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
Expand All @@ -33,11 +33,10 @@ jobs:

go-test:
timeout-minutes: 10
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container: ghcr.io/linkerd/dev:v43-go
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033
- run: just go-fetch
- run: just go-test

5 changes: 2 additions & 3 deletions .github/workflows/helm.yml
@@ -1,19 +1,18 @@

name: Helm

on:
pull_request:
paths:
- .github/workflows/helm.yml
- bin/helm*
- '**/charts/**'
- "**/charts/**"

permissions:
contents: read

jobs:
helm-docs-diff:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: linkerd/dev/actions/setup-tools@v43
Expand Down
43 changes: 21 additions & 22 deletions .github/workflows/integration.yml
Expand Up @@ -17,12 +17,12 @@ env:
LINKERD2_PROXY_REPO: ${{ vars.LINKERD2_PROXY_REPO }}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
meta:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: tag
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:

info:
needs: meta
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 2
steps:
- name: Info
Expand All @@ -113,7 +113,7 @@ jobs:
build-cli:
needs: meta
if: needs.meta.outputs.changed == 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
build-core:
needs: meta
if: needs.meta.outputs.changed == 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
component:
Expand Down Expand Up @@ -181,13 +181,13 @@ jobs:
test:
- cni-calico-deep
- deep
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: '1.22'
go-version: "1.22"
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
pattern: image-archives-*
Expand All @@ -207,7 +207,7 @@ jobs:
test-policy:
needs: [meta, build-cli, build-core]
if: needs.meta.outputs.changed-policy == 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 20
strategy:
matrix:
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
build-ext:
needs: meta
if: needs.meta.outputs.changed == 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
component:
Expand Down Expand Up @@ -304,13 +304,13 @@ jobs:
- uninstall
- upgrade-edge
- upgrade-stable
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: '1.22'
go-version: "1.22"
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
pattern: image-archives-*
Expand All @@ -329,13 +329,13 @@ jobs:
test-viz:
needs: [meta, build-cli, build-core, build-ext]
if: needs.meta.outputs.changed-viz == 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: '1.22'
go-version: "1.22"
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
pattern: image-archives-*
Expand All @@ -355,7 +355,7 @@ jobs:
test-multicluster:
needs: [meta, build-cli, build-core, build-ext]
if: needs.meta.outputs.changed-multicluster == 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 20
strategy:
matrix:
Expand All @@ -369,7 +369,7 @@ jobs:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: '1.22'
go-version: "1.22"
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
with:
pattern: image-archives-*
Expand Down Expand Up @@ -404,21 +404,21 @@ jobs:
integrations-retry:
needs: [test-core, test-policy, test-ext, test-viz, test-multicluster]
if: failure() && fromJSON(github.run_attempt) < 3
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
permissions:
actions: write
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
REF: ${{ github.head_ref }}
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
REF: ${{ github.head_ref }}
steps:
- run: gh workflow run rerun.yml -F 'run_id=${{ github.run_id }}' --ref "$REF"

integrations-ok:
needs: [test-core, test-policy, test-ext, test-viz, test-multicluster]
if: always()
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Results
run: |
Expand All @@ -432,4 +432,3 @@ jobs:
# All jobs must succeed or be skipped.
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1