diff --git a/.github/workflows/Component.BuildTest.yml b/.github/workflows/Component.BuildTest.yml index 3c9b79e23b0..4cffbbe989a 100644 --- a/.github/workflows/Component.BuildTest.yml +++ b/.github/workflows/Component.BuildTest.yml @@ -20,7 +20,7 @@ on: required: false type: string os-list: - default: '[ "windows-latest", "ubuntu-latest", "otel-linux-arm64" ]' + default: '[ "windows-latest", "ubuntu-22.04", "otel-linux-arm64" ]' required: false type: string tfm-list: @@ -37,7 +37,7 @@ jobs: os: ${{ fromJSON(inputs.os-list) }} version: ${{ fromJSON(inputs.tfm-list) }} exclude: - - os: ubuntu-latest + - os: ubuntu-22.04 version: net462 - os: otel-linux-arm64 version: net462 diff --git a/.github/workflows/add-labels.yml b/.github/workflows/add-labels.yml index cae26b876b4..48639374fb2 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 @@ -35,7 +35,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/automation.yml b/.github/workflows/automation.yml index 1385474892a..9ea74f72211 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.yml b/.github/workflows/ci.yml index 73ecbd165ea..3836b361957 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,7 +107,7 @@ jobs: || contains(needs.detect-changes.outputs.changes, 'otlp') || contains(needs.detect-changes.outputs.changes, 'build') || contains(needs.detect-changes.outputs.changes, 'shared') - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -125,7 +125,7 @@ jobs: || contains(needs.detect-changes.outputs.changes, 'instrumentation') || contains(needs.detect-changes.outputs.changes, 'build') || contains(needs.detect-changes.outputs.changes, 'shared') - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -187,7 +187,7 @@ jobs: concurrency-tests ] 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/concurrency-tests.yml b/.github/workflows/concurrency-tests.yml index 4ff616911ce..907d7260049 100644 --- a/.github/workflows/concurrency-tests.yml +++ b/.github/workflows/concurrency-tests.yml @@ -11,7 +11,7 @@ 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: [ net8.0 ] project: [ OpenTelemetry.Tests, OpenTelemetry.Api.Tests ] diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index d2bd52cd10b..5647e28255f 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -7,7 +7,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 249fd360da9..bb67ead1e47 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -22,7 +22,7 @@ jobs: secrets: inherit push-packages-and-publish-release: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: automation @@ -62,7 +62,7 @@ jobs: -pushToNuget '${{ secrets.NUGET_TOKEN != '' }}' post-release-published: - 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 a731bbd405c..671cdf9d66c 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -29,7 +29,7 @@ jobs: secrets: inherit prepare-release-pr: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: automation @@ -59,7 +59,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 @@ -91,7 +91,7 @@ jobs: -botUserName '${{ needs.automation.outputs.username }}' create-release-tag-pr-post-notice: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: automation @@ -130,7 +130,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 diff --git a/.github/workflows/publish-packages-1.0.yml b/.github/workflows/publish-packages-1.0.yml index df29e3af554..1d4d699381b 100644 --- a/.github/workflows/publish-packages-1.0.yml +++ b/.github/workflows/publish-packages-1.0.yml @@ -91,7 +91,7 @@ jobs: nuget push src/**/*.nupkg -Source https://www.myget.org/F/opentelemetry/api/v2/package 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 d98f3fea2c9..335d389a9c7 100644 --- a/.github/workflows/sanitycheck.yml +++ b/.github/workflows/sanitycheck.yml @@ -7,7 +7,7 @@ on: jobs: run-misspell: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: check out code @@ -22,7 +22,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 9be0713edb6..da30232dc9c 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 3bdc42e3e7f..b85eaf5ca2d 100644 --- a/.github/workflows/verifyaotcompat.yml +++ b/.github/workflows/verifyaotcompat.yml @@ -11,7 +11,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 }}