From c11c4f3ea2c031199436dcafc522c5e622de205c Mon Sep 17 00:00:00 2001 From: Chao Chen Date: Mon, 19 Dec 2022 21:40:10 -0800 Subject: [PATCH] remove all workflows expect linearizability.yml Signed-off-by: Chao Chen --- .github/workflows/build.yaml | 62 ---------------- .github/workflows/codeql-analysis.yml | 73 ------------------- .github/workflows/contrib.yaml | 12 --- .github/workflows/coverage.yaml | 29 -------- .github/workflows/e2e.yaml | 36 --------- .github/workflows/functional.yaml | 30 -------- .github/workflows/fuzzing.yaml | 20 ----- .github/workflows/govuln.yaml | 13 ---- .github/workflows/grpcproxy.yaml | 36 --------- .../workflows/linearizability-nightly.yaml | 25 ------- .github/workflows/linearizability.yaml | 2 +- .github/workflows/measure-test-flakiness.yaml | 17 ----- .github/workflows/release.yaml | 25 ------- .github/workflows/scorecards.yml | 54 -------------- .github/workflows/static-analysis.yaml | 22 ------ .github/workflows/tests.yaml | 51 ------------- 16 files changed, 1 insertion(+), 506 deletions(-) delete mode 100644 .github/workflows/build.yaml delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/contrib.yaml delete mode 100644 .github/workflows/coverage.yaml delete mode 100644 .github/workflows/e2e.yaml delete mode 100644 .github/workflows/functional.yaml delete mode 100644 .github/workflows/fuzzing.yaml delete mode 100644 .github/workflows/govuln.yaml delete mode 100644 .github/workflows/grpcproxy.yaml delete mode 100644 .github/workflows/linearizability-nightly.yaml delete mode 100644 .github/workflows/measure-test-flakiness.yaml delete mode 100644 .github/workflows/release.yaml delete mode 100644 .github/workflows/scorecards.yml delete mode 100644 .github/workflows/static-analysis.yaml delete mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 464f202627ec..000000000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,62 +0,0 @@ -name: Build -on: [push, pull_request] -permissions: read-all - -jobs: - build: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - target: - - linux-amd64 - - linux-386 - - darwin-amd64 - - darwin-arm64 - - windows-amd64 - - linux-arm - - linux-arm64 - - linux-ppc64le - - linux-s390x - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - env: - TARGET: ${{ matrix.target }} - run: | - echo "${TARGET}" - case "${TARGET}" in - linux-amd64) - GOARCH=amd64 PASSES='build' ./scripts/test.sh - ;; - linux-386) - GOARCH=386 PASSES='build' ./scripts/test.sh - ;; - darwin-amd64) - GOARCH=amd64 GOOS=darwin GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh - ;; - darwin-arm64) - GOARCH=arm64 GOOS=darwin GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh - ;; - windows-amd64) - GOARCH=amd64 GOOS=windows GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh - ;; - linux-arm) - GOARCH=arm GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh - ;; - linux-arm64) - GOARCH=arm64 GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh - ;; - linux-ppc64le) - GOARCH=ppc64le GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh - ;; - linux-s390x) - GOARCH=s390x GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh - ;; - *) - echo "Failed to find target" - exit 1 - ;; - esac diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 0cdbaf97ac38..000000000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,73 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ main, release-3.4, release-3.5, release-3.6 ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ main ] - schedule: - - cron: '20 14 * * 5' - -permissions: read-all - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'go' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed - - steps: - - name: Checkout repository - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@959cbb7472c4d4ad70cdfe6f4976053fe48ab394 # v2.1.37 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@959cbb7472c4d4ad70cdfe6f4976053fe48ab394 # v2.1.37 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@959cbb7472c4d4ad70cdfe6f4976053fe48ab394 # v2.1.37 diff --git a/.github/workflows/contrib.yaml b/.github/workflows/contrib.yaml deleted file mode 100644 index 59a56c5d9db9..000000000000 --- a/.github/workflows/contrib.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: Test contrib/mixin -on: [push, pull_request] -permissions: read-all -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - run: make -C contrib/mixin tools test diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml deleted file mode 100644 index 73d6f1c9b9f7..000000000000 --- a/.github/workflows/coverage.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: Coverage -on: [push] -permissions: read-all -jobs: - coverage: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - target: - - linux-amd64-coverage - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - env: - TARGET: ${{ matrix.target }} - run: | - mkdir "${TARGET}" - case "${TARGET}" in - linux-amd64-coverage) - GOARCH=amd64 ./scripts/codecov_upload.sh - ;; - *) - echo "Failed to find target" - exit 1 - ;; - esac diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml deleted file mode 100644 index fa6812bf27e9..000000000000 --- a/.github/workflows/e2e.yaml +++ /dev/null @@ -1,36 +0,0 @@ -name: E2E -on: [push, pull_request] -permissions: read-all -jobs: - test: - runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - target: - - linux-amd64-e2e - - linux-386-e2e - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - run: date - - env: - TARGET: ${{ matrix.target }} - run: | - echo "${TARGET}" - case "${TARGET}" in - linux-amd64-e2e) - PASSES='build release e2e' CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' ./scripts/test.sh 2>&1 | tee test.log - ! grep -E "(--- FAIL:|FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log - ;; - linux-386-e2e) - GOARCH=386 PASSES='build e2e' CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' ./scripts/test.sh 2>&1 | tee test.log - ! grep -E "(--- FAIL:|FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log - ;; - *) - echo "Failed to find target" - exit 1 - ;; - esac diff --git a/.github/workflows/functional.yaml b/.github/workflows/functional.yaml deleted file mode 100644 index f161a50cfb06..000000000000 --- a/.github/workflows/functional.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: functional-tests -on: [push, pull_request] -permissions: read-all -jobs: - test: - runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - target: - - linux-amd64-functional - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - run: date - - env: - TARGET: ${{ matrix.target }} - run: | - echo "${TARGET}" - case "${TARGET}" in - linux-amd64-functional) - GO_BUILD_FLAGS='-v -mod=readonly' ./scripts/build.sh && GOARCH=amd64 PASSES='functional' ./scripts/test.sh - ;; - *) - echo "Failed to find target" - exit 1 - ;; - esac diff --git a/.github/workflows/fuzzing.yaml b/.github/workflows/fuzzing.yaml deleted file mode 100644 index 333695d4980d..000000000000 --- a/.github/workflows/fuzzing.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Fuzzing v3rpc -on: [push, pull_request] -permissions: read-all -jobs: - fuzzing: - runs-on: ubuntu-latest - strategy: - fail-fast: false - env: - TARGET_PATH: ./server/etcdserver/api/v3rpc - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - run: GOARCH=amd64 CPU=4 make fuzz - - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 - if: failure() - with: - path: "${{env.TARGET_PATH}}/testdata/fuzz/**/*" diff --git a/.github/workflows/govuln.yaml b/.github/workflows/govuln.yaml deleted file mode 100644 index 21a4b542e495..000000000000 --- a/.github/workflows/govuln.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: Go Vulnerability Checker -on: [push, pull_request] -permissions: read-all -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - run: date - - run: go install golang.org/x/vuln/cmd/govulncheck@v0.0.0-20221208180742-f2dca5ff4cc3 && govulncheck ./... diff --git a/.github/workflows/grpcproxy.yaml b/.github/workflows/grpcproxy.yaml deleted file mode 100644 index a324a52b8f85..000000000000 --- a/.github/workflows/grpcproxy.yaml +++ /dev/null @@ -1,36 +0,0 @@ -name: grpcProxy-tests -on: [push, pull_request] -permissions: read-all -jobs: - test: - runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - target: - - linux-amd64-grpcproxy-integration - - linux-amd64-grpcproxy-e2e - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - run: date - - env: - TARGET: ${{ matrix.target }} - run: | - echo "${TARGET}" - case "${TARGET}" in - linux-amd64-grpcproxy-integration) - PASSES='build grpcproxy_integration' CPU='4' COVER='false' RACE='true' ./scripts/test.sh 2>&1 | tee test.log - ! grep -E "(--- FAIL:|FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log - ;; - linux-amd64-grpcproxy-e2e) - PASSES='build grpcproxy_e2e' CPU='4' COVER='false' RACE='true' ./scripts/test.sh 2>&1 | tee test.log - ! grep -E "(--- FAIL:|FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log - ;; - *) - echo "Failed to find target" - exit 1 - ;; - esac diff --git a/.github/workflows/linearizability-nightly.yaml b/.github/workflows/linearizability-nightly.yaml deleted file mode 100644 index 08a0a93882cb..000000000000 --- a/.github/workflows/linearizability-nightly.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Linearizability Nightly -on: - # schedules always run against the main branch - schedule: - - cron: '25 9 * * *' -jobs: - test: - runs-on: ubuntu-latest - # GHA has a maximum amount of 6h execution time, we try to get done within 3h - timeout-minutes: 180 - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - run: | - make gofail-enable - make build - mkdir -p /tmp/linearizability - cat server/etcdserver/raft.fail.go - EXPECT_DEBUG=true GO_TEST_FLAGS='-v --count 500 --failfast --run TestLinearizability --timeout=170m' RESULTS_DIR=/tmp/linearizability make test-linearizability - - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 - if: always() - with: - path: /tmp/linearizability/* diff --git a/.github/workflows/linearizability.yaml b/.github/workflows/linearizability.yaml index 89bf14ac275b..ac71bfeaf1a0 100644 --- a/.github/workflows/linearizability.yaml +++ b/.github/workflows/linearizability.yaml @@ -1,5 +1,5 @@ name: Linearizability -on: [push, pull_request] +on: [pull_request] permissions: read-all jobs: test: diff --git a/.github/workflows/measure-test-flakiness.yaml b/.github/workflows/measure-test-flakiness.yaml deleted file mode 100644 index 9fbb8993b706..000000000000 --- a/.github/workflows/measure-test-flakiness.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Measure Test Flakiness - -on: - schedule: - - cron: "0 0 * * 0" - -permissions: read-all - -jobs: - measure-test-flakiness: - name: Measure Test Flakiness - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - run: "./scripts/measure-test-flakiness.sh" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 382e27c4946d..000000000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Release -on: [push, pull_request] -permissions: read-all -jobs: - main: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 - with: - go-version: "1.19.5" - - run: | - git config --global user.email "github-action@etcd.io" - git config --global user.name "Github Action" - gpg --batch --gen-key <