From ce1b5b7c56c927d417577750633d02e425909c94 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Tue, 6 Dec 2022 10:33:15 +0100 Subject: [PATCH] ci: Pin used ubuntu version for runners to `20.04` We got some test failures due to openssl stuff etc. due to ubuntu-latest being migrated to 22.04. --- .github/workflows/build.yml | 36 +++++++++---------- .github/workflows/canary.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .../workflows/enforce-license-compliance.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/stale.yml | 18 +++++----- packages/replay/workflows/build.yml | 2 +- packages/replay/workflows/release.yml | 2 +- packages/replay/workflows/size.yml | 5 ++- 9 files changed, 35 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5620ef9e52dd..eeabacddd726 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ env: jobs: job_get_metadata: name: Get Metadata - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 permissions: pull-requests: read steps: @@ -121,7 +121,7 @@ jobs: job_install_deps: name: Install Dependencies needs: job_get_metadata - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 15 steps: - name: 'Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})' @@ -150,7 +150,7 @@ jobs: job_build: name: Build needs: [job_get_metadata, job_install_deps] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 20 steps: - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }}) @@ -187,7 +187,7 @@ jobs: needs: [job_get_metadata, job_build] # only upload the zipped layer file if we're about to release if: startsWith(github.ref, 'refs/heads/release/') - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }}) uses: actions/checkout@v3 @@ -226,7 +226,7 @@ jobs: name: Size Check needs: [job_get_metadata, job_build] timeout-minutes: 15 - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 # Size Check will error out outside of the context of a PR if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master' steps: @@ -265,7 +265,7 @@ jobs: # inter-package dependencies resolve cleanly. needs: [job_get_metadata, job_build] timeout-minutes: 10 - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }}) uses: actions/checkout@v3 @@ -290,7 +290,7 @@ jobs: name: Circular Dependency Check needs: [job_get_metadata, job_build] timeout-minutes: 10 - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }}) uses: actions/checkout@v3 @@ -314,7 +314,7 @@ jobs: job_artifacts: name: Upload Artifacts needs: [job_get_metadata, job_build] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 # Build artifacts are only needed for releasing workflow. if: startsWith(github.ref, 'refs/heads/release/') steps: @@ -350,7 +350,7 @@ jobs: name: Test (Node ${{ matrix.node }}) needs: [job_get_metadata, job_build] timeout-minutes: 30 - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: @@ -388,7 +388,7 @@ jobs: needs: [job_get_metadata, job_build] if: needs.job_get_metadata.outputs.changed_nextjs == 'true' || github.event_name != 'pull_request' timeout-minutes: 30 - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: @@ -426,7 +426,7 @@ jobs: needs: [job_get_metadata, job_build] if: needs.job_get_metadata.outputs.changed_ember == 'true' || github.event_name != 'pull_request' timeout-minutes: 10 - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: @@ -467,7 +467,7 @@ jobs: name: Playwright - ${{ (matrix.tracing_only && 'Browser + Tracing') || 'Browser' }} (${{ matrix.bundle }}) needs: [job_get_metadata, job_build] if: needs.job_get_metadata.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: matrix: bundle: @@ -517,7 +517,7 @@ jobs: name: Old Browser Integration Tests (${{ matrix.browser }}) needs: [job_get_metadata, job_build] if: needs.job_get_metadata.outputs.changed_browser == 'true' || github.event_name != 'pull_request' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 10 strategy: fail-fast: false @@ -554,7 +554,7 @@ jobs: job_browser_build_tests: name: Browser Build Tests needs: [job_get_metadata, job_build] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 5 steps: - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }}) @@ -586,7 +586,7 @@ jobs: name: Node SDK Integration Tests (${{ matrix.node }}) needs: [job_get_metadata, job_build] if: needs.job_get_metadata.outputs.changed_node == 'true' || github.event_name != 'pull_request' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 10 strategy: fail-fast: false @@ -622,7 +622,7 @@ jobs: name: Remix SDK Integration Tests (${{ matrix.node }}) needs: [job_get_metadata, job_build] if: needs.job_get_metadata.outputs.changed_remix == 'true' || github.event_name != 'pull_request' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 10 strategy: fail-fast: false @@ -662,7 +662,7 @@ jobs: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]' needs: [job_get_metadata, job_build] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 10 steps: - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }}) @@ -710,7 +710,7 @@ jobs: ] # Always run this, even if a dependent job failed if: always() - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Check for failures if: contains(needs.*.result, 'failure') diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 9824b1060618..7ecbe2ce74a6 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -19,7 +19,7 @@ permissions: jobs: job_canary_test: name: Run Canary Tests - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 30 steps: - name: 'Check out current commit' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6abf632df82c..95cc9f96bb9c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -29,7 +29,7 @@ concurrency: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: fail-fast: false diff --git a/.github/workflows/enforce-license-compliance.yml b/.github/workflows/enforce-license-compliance.yml index b331974711f3..6fe5628f0d27 100644 --- a/.github/workflows/enforce-license-compliance.yml +++ b/.github/workflows/enforce-license-compliance.yml @@ -8,7 +8,7 @@ on: jobs: enforce-license-compliance: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: 'Enforce License Compliance' uses: getsentry/action-enforce-license-compliance@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92239b35aa43..c63255322933 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ on: required: false jobs: release: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 name: 'Release a new version' steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index bc092820a5ae..948c44674047 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -5,21 +5,21 @@ on: workflow_dispatch: jobs: stale: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/stale@87c2b794b9b47a9bec68ae03c01aeb572ffebdb1 with: repo-token: ${{ github.token }} days-before-stale: 21 days-before-close: 7 - only-labels: "" + only-labels: '' operations-per-run: 100 remove-stale-when-updated: true debug-only: false ascending: false - exempt-issue-labels: "Status: Backlog,Status: In Progress" - stale-issue-label: "Status: Stale" + exempt-issue-labels: 'Status: Backlog,Status: In Progress' + stale-issue-label: 'Status: Stale' stale-issue-message: |- This issue has gone three weeks without activity. In another week, I will close it. @@ -29,11 +29,11 @@ jobs: "A weed is but an unloved flower." ― _Ella Wheeler Wilcox_ 🥀 skip-stale-issue-message: false - close-issue-label: "" - close-issue-message: "" + close-issue-label: '' + close-issue-message: '' - exempt-pr-labels: "Status: Backlog,Status: In Progress" - stale-pr-label: "Status: Stale" + exempt-pr-labels: 'Status: Backlog,Status: In Progress' + stale-pr-label: 'Status: Stale' stale-pr-message: |- This pull request has gone three weeks without activity. In another week, I will close it. @@ -44,4 +44,4 @@ jobs: "A weed is but an unloved flower." ― _Ella Wheeler Wilcox_ 🥀 skip-stale-pr-message: false close-pr-label: - close-pr-message: "" + close-pr-message: '' diff --git a/packages/replay/workflows/build.yml b/packages/replay/workflows/build.yml index 4793b6d2959c..3048a58f6f26 100644 --- a/packages/replay/workflows/build.yml +++ b/packages/replay/workflows/build.yml @@ -9,7 +9,7 @@ on: jobs: build: name: build - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 diff --git a/packages/replay/workflows/release.yml b/packages/replay/workflows/release.yml index f706eb39c9c2..41109a42cbaf 100644 --- a/packages/replay/workflows/release.yml +++ b/packages/replay/workflows/release.yml @@ -12,7 +12,7 @@ on: jobs: release: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 name: 'Release a new version' steps: - uses: actions/checkout@v2 diff --git a/packages/replay/workflows/size.yml b/packages/replay/workflows/size.yml index 79679f7d7be4..cc63f7333be5 100644 --- a/packages/replay/workflows/size.yml +++ b/packages/replay/workflows/size.yml @@ -1,11 +1,11 @@ -name: "size" +name: 'size' on: pull_request: branches: - main jobs: size: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: CI_JOB_NUMBER: 1 steps: @@ -25,4 +25,3 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} build_script: build:prod -