From 825e4beeadf83b28dfdd70cf44880c2e05afa6a5 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Thu, 12 Oct 2023 18:08:05 +0800 Subject: [PATCH] build(ci): pin linux runner to ubuntu-20.04 (#2586) Signed-off-by: Ruihang Xia --- .github/workflows/apidoc.yml | 2 +- .github/workflows/dev-build.yml | 22 +++++++++---------- .github/workflows/develop.yml | 14 ++++++------ .github/workflows/doc-issue.yml | 4 ++-- .github/workflows/docs.yml | 12 +++++----- .github/workflows/license.yaml | 2 +- .github/workflows/nightly-build.yml | 22 +++++++++---------- .github/workflows/pr-title-checker.yml | 4 ++-- .../workflows/release-dev-builder-images.yaml | 4 ++-- .github/workflows/release.yml | 20 ++++++++--------- 10 files changed, 53 insertions(+), 53 deletions(-) diff --git a/.github/workflows/apidoc.yml b/.github/workflows/apidoc.yml index 05653d9911..55d0031e37 100644 --- a/.github/workflows/apidoc.yml +++ b/.github/workflows/apidoc.yml @@ -17,7 +17,7 @@ env: jobs: apidoc: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - uses: arduino/setup-protoc@v1 diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 35e9bec323..2c8a759a8b 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -16,11 +16,11 @@ on: description: The runner uses to build linux-amd64 artifacts default: ec2-c6i.4xlarge-amd64 options: - - ubuntu-latest - - ubuntu-latest-8-cores - - ubuntu-latest-16-cores - - ubuntu-latest-32-cores - - ubuntu-latest-64-cores + - ubuntu-20.04 + - ubuntu-20.04-8-cores + - ubuntu-20.04-16-cores + - ubuntu-20.04-32-cores + - ubuntu-20.04-64-cores - ec2-c6i.xlarge-amd64 # 4C8G - ec2-c6i.2xlarge-amd64 # 8C16G - ec2-c6i.4xlarge-amd64 # 16C32G @@ -78,7 +78,7 @@ jobs: allocate-runners: name: Allocate runners if: ${{ github.repository == 'GreptimeTeam/greptimedb' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: linux-amd64-runner: ${{ steps.start-linux-amd64-runner.outputs.label }} linux-arm64-runner: ${{ steps.start-linux-arm64-runner.outputs.label }} @@ -209,7 +209,7 @@ jobs: build-linux-amd64-artifacts, build-linux-arm64-artifacts, ] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: build-result: ${{ steps.set-build-result.outputs.build-result }} steps: @@ -241,7 +241,7 @@ jobs: allocate-runners, release-images-to-dockerhub, ] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 continue-on-error: true steps: - uses: actions/checkout@v3 @@ -268,7 +268,7 @@ jobs: name: Stop linux-amd64 runner # Only run this job when the runner is allocated. if: ${{ always() }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [ allocate-runners, build-linux-amd64-artifacts, @@ -293,7 +293,7 @@ jobs: name: Stop linux-arm64 runner # Only run this job when the runner is allocated. if: ${{ always() }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [ allocate-runners, build-linux-arm64-artifacts, @@ -320,7 +320,7 @@ jobs: needs: [ release-images-to-dockerhub ] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DEVELOP_CHANNEL }} steps: diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index f2d9b27bcb..7644505de9 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -34,7 +34,7 @@ env: jobs: typos: name: Spell Check with Typos - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - uses: crate-ci/typos@v1.13.10 @@ -42,7 +42,7 @@ jobs: check: name: Check if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 60 steps: - uses: actions/checkout@v3 @@ -60,7 +60,7 @@ jobs: toml: name: Toml Check if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 60 steps: - uses: actions/checkout@v3 @@ -80,7 +80,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-latest-8-cores ] + os: [ ubuntu-20.04-8-cores ] timeout-minutes: 60 steps: - uses: actions/checkout@v3 @@ -105,7 +105,7 @@ jobs: fmt: name: Rustfmt if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 60 steps: - uses: actions/checkout@v3 @@ -124,7 +124,7 @@ jobs: clippy: name: Clippy if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 60 steps: - uses: actions/checkout@v3 @@ -142,7 +142,7 @@ jobs: coverage: if: github.event.pull_request.draft == false - runs-on: ubuntu-latest-8-cores + runs-on: ubuntu-20.04-8-cores timeout-minutes: 60 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/doc-issue.yml b/.github/workflows/doc-issue.yml index 67a654d147..da8fc8a40c 100644 --- a/.github/workflows/doc-issue.yml +++ b/.github/workflows/doc-issue.yml @@ -11,7 +11,7 @@ on: jobs: doc_issue: if: github.event.label.name == 'doc update required' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: create an issue in doc repo uses: dacbd/create-issue-action@main @@ -25,7 +25,7 @@ jobs: ${{ github.event.issue.html_url || github.event.pull_request.html_url }} cloud_issue: if: github.event.label.name == 'cloud followup required' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: create an issue in cloud repo uses: dacbd/create-issue-action@main diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 24df04f26b..5cd39adbe6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -30,7 +30,7 @@ name: CI jobs: typos: name: Spell Check with Typos - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - uses: crate-ci/typos@v1.13.10 @@ -38,33 +38,33 @@ jobs: check: name: Check if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - run: 'echo "No action required"' fmt: name: Rustfmt if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - run: 'echo "No action required"' clippy: name: Clippy if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - run: 'echo "No action required"' coverage: if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - run: 'echo "No action required"' sqlness: name: Sqlness Test if: github.event.pull_request.draft == false - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - run: 'echo "No action required"' diff --git a/.github/workflows/license.yaml b/.github/workflows/license.yaml index a336476644..00264c1101 100644 --- a/.github/workflows/license.yaml +++ b/.github/workflows/license.yaml @@ -8,7 +8,7 @@ on: types: [opened, synchronize, reopened, ready_for_review] jobs: license-header-check: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 name: license-header-check steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 9a436e1966..6e0fc8ef57 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -14,11 +14,11 @@ on: description: The runner uses to build linux-amd64 artifacts default: ec2-c6i.2xlarge-amd64 options: - - ubuntu-latest - - ubuntu-latest-8-cores - - ubuntu-latest-16-cores - - ubuntu-latest-32-cores - - ubuntu-latest-64-cores + - ubuntu-20.04 + - ubuntu-20.04-8-cores + - ubuntu-20.04-16-cores + - ubuntu-20.04-32-cores + - ubuntu-20.04-64-cores - ec2-c6i.xlarge-amd64 # 4C8G - ec2-c6i.2xlarge-amd64 # 8C16G - ec2-c6i.4xlarge-amd64 # 16C32G @@ -70,7 +70,7 @@ jobs: allocate-runners: name: Allocate runners if: ${{ github.repository == 'GreptimeTeam/greptimedb' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: linux-amd64-runner: ${{ steps.start-linux-amd64-runner.outputs.label }} linux-arm64-runner: ${{ steps.start-linux-arm64-runner.outputs.label }} @@ -175,7 +175,7 @@ jobs: build-linux-amd64-artifacts, build-linux-arm64-artifacts, ] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: nightly-build-result: ${{ steps.set-nightly-build-result.outputs.nightly-build-result }} steps: @@ -205,7 +205,7 @@ jobs: allocate-runners, release-images-to-dockerhub, ] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 # When we push to ACR, it's easy to fail due to some unknown network issues. # However, we don't want to fail the whole workflow because of this. # The ACR have daily sync with DockerHub, so don't worry about the image not being updated. @@ -234,7 +234,7 @@ jobs: name: Stop linux-amd64 runner # Only run this job when the runner is allocated. if: ${{ always() }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [ allocate-runners, build-linux-amd64-artifacts, @@ -259,7 +259,7 @@ jobs: name: Stop linux-arm64 runner # Only run this job when the runner is allocated. if: ${{ always() }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [ allocate-runners, build-linux-arm64-artifacts, @@ -286,7 +286,7 @@ jobs: needs: [ release-images-to-dockerhub ] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DEVELOP_CHANNEL }} steps: diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml index 9279a83ad1..36506c91e9 100644 --- a/.github/workflows/pr-title-checker.yml +++ b/.github/workflows/pr-title-checker.yml @@ -10,7 +10,7 @@ on: jobs: check: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 10 steps: - uses: thehanimo/pr-title-checker@v1.3.4 @@ -19,7 +19,7 @@ jobs: pass_on_octokit_error: false configuration_path: ".github/pr-title-checker-config.json" breaking: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 10 steps: - uses: thehanimo/pr-title-checker@v1.3.4 diff --git a/.github/workflows/release-dev-builder-images.yaml b/.github/workflows/release-dev-builder-images.yaml index 39eaec216c..b44b60dae1 100644 --- a/.github/workflows/release-dev-builder-images.yaml +++ b/.github/workflows/release-dev-builder-images.yaml @@ -27,7 +27,7 @@ jobs: release-dev-builder-images: name: Release dev builder images if: ${{ inputs.release_dev_builder_ubuntu_image || inputs.release_dev_builder_centos_image || inputs.release_dev_builder_android_image }} # Only manually trigger this job. - runs-on: ubuntu-latest-16-cores + runs-on: ubuntu-20.04-16-cores steps: - name: Checkout uses: actions/checkout@v3 @@ -46,7 +46,7 @@ jobs: release-dev-builder-images-cn: # Note: Be careful issue: https://github.com/containers/skopeo/issues/1874 and we decide to use the latest stable skopeo container. name: Release dev builder images to CN region - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [ release-dev-builder-images ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d55346209..7d6522f188 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,11 +18,11 @@ on: description: The runner uses to build linux-amd64 artifacts default: ec2-c6i.4xlarge-amd64 options: - - ubuntu-latest - - ubuntu-latest-8-cores - - ubuntu-latest-16-cores - - ubuntu-latest-32-cores - - ubuntu-latest-64-cores + - ubuntu-20.04 + - ubuntu-20.04-8-cores + - ubuntu-20.04-16-cores + - ubuntu-20.04-32-cores + - ubuntu-20.04-64-cores - ec2-c6i.xlarge-amd64 # 4C8G - ec2-c6i.2xlarge-amd64 # 8C16G - ec2-c6i.4xlarge-amd64 # 16C32G @@ -97,7 +97,7 @@ jobs: allocate-runners: name: Allocate runners if: ${{ github.repository == 'GreptimeTeam/greptimedb' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: linux-amd64-runner: ${{ steps.start-linux-amd64-runner.outputs.label }} linux-arm64-runner: ${{ steps.start-linux-arm64-runner.outputs.label }} @@ -306,7 +306,7 @@ jobs: allocate-runners, release-images-to-dockerhub, ] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 # When we push to ACR, it's easy to fail due to some unknown network issues. # However, we don't want to fail the whole workflow because of this. # The ACR have daily sync with DockerHub, so don't worry about the image not being updated. @@ -339,7 +339,7 @@ jobs: build-macos-artifacts, release-images-to-dockerhub, ] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 with: @@ -357,7 +357,7 @@ jobs: name: Stop linux-amd64 runner # Only run this job when the runner is allocated. if: ${{ always() }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [ allocate-runners, build-linux-amd64-artifacts, @@ -382,7 +382,7 @@ jobs: name: Stop linux-arm64 runner # Only run this job when the runner is allocated. if: ${{ always() }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [ allocate-runners, build-linux-arm64-artifacts,