From 6bd743e7e34e364c73c4e6bd5099246f7ac08365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Tue, 17 Dec 2024 19:41:12 +0100 Subject: [PATCH] [repo] Pin Ubuntu to 22.04 (#2425) --- .github/workflows/Component.BuildTest.yml | 4 ++-- .github/workflows/add-labels.yml | 4 ++-- .github/workflows/assign-reviewers.yml | 2 +- .github/workflows/automation.yml | 2 +- .../workflows/ci-Exporter.OneCollector-Integration.yml | 6 +++--- .github/workflows/ci.yml | 6 +++--- .github/workflows/core-version-update.yml | 2 +- .github/workflows/integration.yml | 4 ++-- .github/workflows/markdownlint.yml | 2 +- .github/workflows/post-release.yml | 2 +- .github/workflows/prepare-release.yml | 10 +++++----- .github/workflows/publish-packages.yml | 2 +- .github/workflows/sanitycheck.yml | 4 ++-- .github/workflows/stale.yml | 2 +- .github/workflows/verifyaotcompat.yml | 2 +- .github/workflows/yamllint.yml | 2 +- 16 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/Component.BuildTest.yml b/.github/workflows/Component.BuildTest.yml index ee5132682a..54dc22f530 100644 --- a/.github/workflows/Component.BuildTest.yml +++ b/.github/workflows/Component.BuildTest.yml @@ -18,7 +18,7 @@ on: required: false type: string os-list: - default: '[ "windows-latest", "ubuntu-latest" ]' + default: '[ "windows-latest", "ubuntu-22.04" ]' required: false type: string tfm-list: @@ -46,7 +46,7 @@ jobs: os: ${{ fromJSON(inputs.os-list) }} version: ${{ fromJSON(inputs.tfm-list) }} exclude: - - os: ubuntu-latest + - os: ubuntu-22.04 version: net462 - os: macos-latest version: net462 diff --git a/.github/workflows/add-labels.yml b/.github/workflows/add-labels.yml index 3ba9ad161c..03af20e08f 100644 --- a/.github/workflows/add-labels.yml +++ b/.github/workflows/add-labels.yml @@ -14,7 +14,7 @@ jobs: add-labels-on-issues: if: github.event_name == 'issues' && !github.event.issue.pull_request - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: check out code @@ -36,7 +36,7 @@ jobs: add-labels-on-pull-requests: if: github.event_name == 'pull_request_target' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: check out code diff --git a/.github/workflows/assign-reviewers.yml b/.github/workflows/assign-reviewers.yml index 1cf146e060..7a0768d4bd 100644 --- a/.github/workflows/assign-reviewers.yml +++ b/.github/workflows/assign-reviewers.yml @@ -7,7 +7,7 @@ on: jobs: assign: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 name: Assign Reviewers steps: - uses: dyladan/component-owners@main diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml index 1385474892..9ea74f7221 100644 --- a/.github/workflows/automation.yml +++ b/.github/workflows/automation.yml @@ -18,7 +18,7 @@ on: jobs: resolve-automation: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 outputs: enabled: ${{ steps.evaluate.outputs.enabled }} diff --git a/.github/workflows/ci-Exporter.OneCollector-Integration.yml b/.github/workflows/ci-Exporter.OneCollector-Integration.yml index bac716d202..c9f7f5c667 100644 --- a/.github/workflows/ci-Exporter.OneCollector-Integration.yml +++ b/.github/workflows/ci-Exporter.OneCollector-Integration.yml @@ -18,7 +18,7 @@ jobs: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - run: echo ✓ @@ -28,10 +28,10 @@ jobs: strategy: fail-fast: false # ensures the entire test matrix is run, even if one permutation fails matrix: - os: [ windows-latest, ubuntu-latest ] + os: [ windows-latest, ubuntu-22.04 ] version: [ net462, net8.0 ] exclude: - - os: ubuntu-latest + - os: ubuntu-22.04 version: net462 runs-on: ${{ matrix.os }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1557da70f4..a0cb55915b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -479,7 +479,7 @@ jobs: with: project-name: Component[OpenTelemetry.Resources.Host] code-cov-name: Resources.Host - os-list: '[ "windows-latest", "ubuntu-latest", "macos-latest" ]' + os-list: '[ "windows-latest", "ubuntu-22.04", "macos-latest" ]' build-test-resources-operatingsystem: needs: detect-changes @@ -491,7 +491,7 @@ jobs: with: project-name: Component[OpenTelemetry.Resources.OperatingSystem] code-cov-name: Resources.OperatingSystem - os-list: '[ "windows-latest", "ubuntu-latest", "macos-latest" ]' + os-list: '[ "windows-latest", "ubuntu-22.04", "macos-latest" ]' build-test-resources-process: needs: detect-changes @@ -628,7 +628,7 @@ jobs: verify-aot-compat ] if: always() && !cancelled() - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - run: | if ( ${{ contains(needs.*.result, 'failure') }} == true ); then echo 'build failed ✗'; exit 1; else echo 'build complete ✓'; fi diff --git a/.github/workflows/core-version-update.yml b/.github/workflows/core-version-update.yml index cf3d1019f3..38a74d5390 100644 --- a/.github/workflows/core-version-update.yml +++ b/.github/workflows/core-version-update.yml @@ -14,7 +14,7 @@ jobs: secrets: inherit core-version-update: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: automation diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 8acaf0ee2d..8b18a11193 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -10,7 +10,7 @@ on: jobs: redis-integration-test: if: inputs.job == 'all' || inputs.job == 'redis-integration-test' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -23,7 +23,7 @@ jobs: kafka-integration-test: if: inputs.job == 'all' || inputs.job == 'kafka-integration-test' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index 0f42b9c805..1843be2346 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -5,7 +5,7 @@ on: jobs: run-markdownlint: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: check out code diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index a16d0e0b0a..f36228b5bb 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -16,7 +16,7 @@ jobs: secrets: inherit post-release: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - automation diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 224c04ce69..bda2707485 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -79,7 +79,7 @@ jobs: secrets: inherit prepare-release-pr: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: automation @@ -110,7 +110,7 @@ jobs: -gitUserEmail '${{ needs.automation.outputs.email }}' lock-pr-and-post-notice-to-create-release-tag: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: automation @@ -142,7 +142,7 @@ jobs: -botUserName '${{ needs.automation.outputs.username }}' create-release-tag-unlock-pr-post-notice: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: automation @@ -181,7 +181,7 @@ jobs: -gitUserEmail '${{ needs.automation.outputs.email }}' update-changelog-release-dates-on-prepare-pr-post-notice: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: automation @@ -221,7 +221,7 @@ jobs: -gitUserEmail '${{ needs.automation.outputs.email }}' process-release-request-issue: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: automation diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 6d13c4686a..3a43202540 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -104,7 +104,7 @@ jobs: nuget push src\**\*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_TOKEN }} -SymbolApiKey ${{ secrets.NUGET_TOKEN }} post-build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - automation diff --git a/.github/workflows/sanitycheck.yml b/.github/workflows/sanitycheck.yml index 8563d4b1cb..ee413dc1cd 100644 --- a/.github/workflows/sanitycheck.yml +++ b/.github/workflows/sanitycheck.yml @@ -5,7 +5,7 @@ on: jobs: run-misspell: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: check out code @@ -20,7 +20,7 @@ jobs: run: ./bin/misspell -error . run-sanitycheck: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: check out code diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 9111144a58..506faba0ad 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,7 +8,7 @@ on: jobs: stale: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/stale@v9 with: diff --git a/.github/workflows/verifyaotcompat.yml b/.github/workflows/verifyaotcompat.yml index 1aff3cac2a..961d070a7c 100644 --- a/.github/workflows/verifyaotcompat.yml +++ b/.github/workflows/verifyaotcompat.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false # ensures the entire test matrix is run, even if one permutation fails matrix: - os: [ ubuntu-latest, windows-latest ] + os: [ ubuntu-22.04, windows-latest ] version: [ net8.0, net9.0 ] runs-on: ${{ matrix.os }} diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index d802191d66..c0312f672d 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -5,7 +5,7 @@ on: jobs: run-yamllint: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: check out code