From b0b922cd71cc1437a003e524fdbe965445c4e0c6 Mon Sep 17 00:00:00 2001 From: Jintao Zhang Date: Fri, 26 May 2023 16:34:23 +0800 Subject: [PATCH] ci: Introduce yamllint for actions workflow files Signed-off-by: Jintao Zhang --- .github/ISSUE_TEMPLATE/bug-report.yml | 145 ++++++------ .github/ISSUE_TEMPLATE/config.yml | 7 +- .github/ISSUE_TEMPLATE/feature-request.yml | 27 +-- .github/ISSUE_TEMPLATE/membership-request.yml | 49 ++-- .github/ISSUE_TEMPLATE/test-flake.yml | 51 ++-- .github/dependabot.yml | 5 +- .github/stale.yml | 1 + .github/workflows/build.yaml | 1 + .github/workflows/codeql-analysis.yml | 57 ++--- .github/workflows/contrib.yaml | 15 +- .github/workflows/coverage.yaml | 37 +-- .github/workflows/e2e-arm64.yaml | 45 ++-- .github/workflows/e2e.yaml | 49 ++-- .github/workflows/fuzzing.yaml | 23 +- .github/workflows/go-version.yaml | 1 + .github/workflows/govuln.yaml | 1 + .github/workflows/grpcproxy.yaml | 49 ++-- .github/workflows/measure-test-flakiness.yaml | 17 +- .github/workflows/release.yaml | 47 ++-- .github/workflows/robustness-nightly.yaml | 1 + .../workflows/robustness-template-arm64.yaml | 4 +- .github/workflows/robustness-template.yaml | 67 +++--- .github/workflows/robustness.yaml | 1 + .github/workflows/scorecards.yml | 5 +- .github/workflows/static-analysis.yaml | 1 + .github/workflows/tests-arm64.yaml | 79 +++---- .github/workflows/tests.yaml | 83 +++---- .golangci.yaml | 36 ++- .yamllint | 7 + Makefile | 6 +- codecov.yml | 25 +- contrib/mixin/test.yaml | 138 +++++------ hack/kubernetes-deploy/etcd.yml | 219 +++++++++--------- hack/kubernetes-deploy/vulcand.yml | 27 +-- 34 files changed, 675 insertions(+), 651 deletions(-) create mode 100644 .yamllint diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 4a822b16b..53e4e88ea 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -1,92 +1,93 @@ +--- name: Bug Report description: Report a bug encountered while operating Etcd labels: -- type/bug + - type/bug body: -- type: markdown - attributes: - value: | - Please read https://github.com/etcd-io/etcd/blob/main/Documentation/contributor-guide/reporting_bugs.md - If this matter is security related, please disclose it privately via security@etcd.io. - Please fill the form below and provide as much information as possible. - Not doing so may result in your bug not being addressed in a timely manner. + - type: markdown + attributes: + value: | + Please read https://github.com/etcd-io/etcd/blob/main/Documentation/contributor-guide/reporting_bugs.md + If this matter is security related, please disclose it privately via security@etcd.io. + Please fill the form below and provide as much information as possible. + Not doing so may result in your bug not being addressed in a timely manner. -- type: textarea - id: problem - attributes: - label: What happened? - validations: - required: true + - type: textarea + id: problem + attributes: + label: What happened? + validations: + required: true -- type: textarea - id: expected - attributes: - label: What did you expect to happen? - validations: - required: true + - type: textarea + id: expected + attributes: + label: What did you expect to happen? + validations: + required: true -- type: textarea - id: repro - attributes: - label: How can we reproduce it (as minimally and precisely as possible)? - validations: - required: true + - type: textarea + id: repro + attributes: + label: How can we reproduce it (as minimally and precisely as possible)? + validations: + required: true -- type: textarea - id: additional - attributes: - label: Anything else we need to know? + - type: textarea + id: additional + attributes: + label: Anything else we need to know? -- type: textarea - id: etcdVersion - attributes: - label: Etcd version (please run commands below) - value: | -
+ - type: textarea + id: etcdVersion + attributes: + label: Etcd version (please run commands below) + value: | +
- ```console - $ etcd --version - # paste output here + ```console + $ etcd --version + # paste output here - $ etcdctl version - # paste output here - ``` + $ etcdctl version + # paste output here + ``` -
- validations: - required: true +
+ validations: + required: true -- type: textarea - id: config - attributes: - label: Etcd configuration (command line flags or environment variables) - value: | -
+ - type: textarea + id: config + attributes: + label: Etcd configuration (command line flags or environment variables) + value: | +
- # paste your configuration here + # paste your configuration here -
+
-- type: textarea - id: etcdDebugInformation - attributes: - label: Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output) - value: | -
+ - type: textarea + id: etcdDebugInformation + attributes: + label: Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output) + value: | +
- ```console - $ etcdctl member list -w table - # paste output here + ```console + $ etcdctl member list -w table + # paste output here - $ etcdctl --endpoints= endpoint status -w table - # paste output here - ``` + $ etcdctl --endpoints= endpoint status -w table + # paste output here + ``` -
+
-- type: textarea - id: logs - attributes: - label: Relevant log output - description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. - render: shell + - type: textarea + id: logs + attributes: + label: Relevant log output + description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. + render: shell diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 232cdb8e8..b48f29b90 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,6 @@ +--- blank_issues_enabled: false contact_links: -- name: Question - url: https://github.com/etcd-io/etcd/discussions - about: Question relating to Etcd + - name: Question + url: https://github.com/etcd-io/etcd/discussions + about: Question relating to Etcd diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml index 6adfe60c7..d18dec245 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -1,18 +1,19 @@ +--- name: Feature request description: Provide idea for a new feature labels: -- type/feature + - type/feature body: -- type: textarea - id: feature - attributes: - label: What would you like to be added? - validations: - required: true + - type: textarea + id: feature + attributes: + label: What would you like to be added? + validations: + required: true -- type: textarea - id: rationale - attributes: - label: Why is this needed? - validations: - required: true + - type: textarea + id: rationale + attributes: + label: Why is this needed? + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/membership-request.yml b/.github/ISSUE_TEMPLATE/membership-request.yml index 4112ac61d..8dd9fdd69 100644 --- a/.github/ISSUE_TEMPLATE/membership-request.yml +++ b/.github/ISSUE_TEMPLATE/membership-request.yml @@ -1,30 +1,31 @@ +--- name: Membership nomination description: Nominate new etcd members labels: -- area/community + - area/community body: -- type: textarea - id: feature - attributes: - label: Who would you like to nominate? - validations: - required: true - -- id: requirements - type: checkboxes - attributes: - label: Requirements - options: - - label: I have reviewed the [community membership guidelines](https://github.com/etcd-io/etcd/blob/main/Documentation/contributor-guide/community-membership.md) - required: true - - label: The members are actively contributing to 1 or more etcd subprojects - required: true - - label: The members are being sponsored by two current reviewers or a current maintainer. + - type: textarea + id: feature + attributes: + label: Who would you like to nominate? + validations: required: true -- type: textarea - id: rationale - attributes: - label: How do the new members meet the regular active contribution requirements? - validations: - required: true + - id: requirements + type: checkboxes + attributes: + label: Requirements + options: + - label: I have reviewed the [community membership guidelines](https://github.com/etcd-io/etcd/blob/main/Documentation/contributor-guide/community-membership.md) + required: true + - label: The members are actively contributing to 1 or more etcd subprojects + required: true + - label: The members are being sponsored by two current reviewers or a current maintainer. + required: true + + - type: textarea + id: rationale + attributes: + label: How do the new members meet the regular active contribution requirements? + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/test-flake.yml b/.github/ISSUE_TEMPLATE/test-flake.yml index 2e12b2177..ec077e1b4 100644 --- a/.github/ISSUE_TEMPLATE/test-flake.yml +++ b/.github/ISSUE_TEMPLATE/test-flake.yml @@ -1,33 +1,34 @@ +--- name: Flaking Test description: Report flaky tests labels: -- type/flake + - type/flake body: -- type: textarea - id: workflows - attributes: - label: Which github workflows are flaking? - validations: - required: true + - type: textarea + id: workflows + attributes: + label: Which github workflows are flaking? + validations: + required: true -- type: textarea - id: tests - attributes: - label: Which tests are flaking? - validations: - required: true + - type: textarea + id: tests + attributes: + label: Which tests are flaking? + validations: + required: true -- type: input - id: link - attributes: - label: Github Action link + - type: input + id: link + attributes: + label: Github Action link -- type: textarea - id: reason - attributes: - label: Reason for failure (if possible) + - type: textarea + id: reason + attributes: + label: Reason for failure (if possible) -- type: textarea - id: additional - attributes: - label: Anything else we need to know? + - type: textarea + id: additional + attributes: + label: Anything else we need to know? diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7772e56df..8b546e870 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,4 @@ +--- version: 2 updates: - package-ecosystem: github-actions @@ -10,11 +11,11 @@ updates: schedule: interval: weekly allow: - - dependency-type: all + - dependency-type: all - package-ecosystem: gomod directory: /tools/mod # Not linked from /go.mod schedule: interval: weekly allow: - - dependency-type: all + - dependency-type: all diff --git a/.github/stale.yml b/.github/stale.yml index 57e41709b..a3ac09ee0 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -1,3 +1,4 @@ +--- # Configuration for probot-stale - https://github.com/probot/stale # Number of days of inactivity before an Issue or Pull Request becomes stale diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a2b1ea5bf..de637a2e9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,3 +1,4 @@ +--- name: Build on: [push, pull_request] permissions: read-all diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b70baa803..ff45696c9 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,3 +1,4 @@ +--- # For most projects, this workflow file will not need changing; you simply need # to commit it to your repository. # @@ -13,10 +14,10 @@ name: "CodeQL" on: push: - branches: [ main, release-3.4, release-3.5, release-3.6 ] + 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 ] + branches: [main] schedule: - cron: '20 14 * * 5' @@ -34,40 +35,40 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'go' ] + 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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + - name: Checkout repository + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3 - 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 + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3 + 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@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3 + # 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@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3 - # ℹ️ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl + # ℹ️ 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 + # ✏️ 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 + #- run: | + # make bootstrap + # make release - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@29b1f65c5e92e24fe6b6647da1eaabe529cec70f # v2.3.3 diff --git a/.github/workflows/contrib.yaml b/.github/workflows/contrib.yaml index e5fa298bf..24df887ea 100644 --- a/.github/workflows/contrib.yaml +++ b/.github/workflows/contrib.yaml @@ -1,3 +1,4 @@ +--- name: Test contrib/mixin on: [push, pull_request] permissions: read-all @@ -8,11 +9,11 @@ jobs: runs-on: ubuntu-latest needs: goversion steps: - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 - with: - go-version: ${{ needs.goversion.outputs.goversion }} - - run: | - set -euo pipefail + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 + with: + go-version: ${{ needs.goversion.outputs.goversion }} + - run: | + set -euo pipefail - make -C contrib/mixin tools test + make -C contrib/mixin tools test diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 970269b7d..298668e72 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -1,3 +1,4 @@ +--- name: Coverage on: [push] permissions: read-all @@ -11,22 +12,22 @@ jobs: fail-fast: false matrix: target: - - linux-amd64-coverage + - linux-amd64-coverage steps: - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 - with: - go-version: ${{ needs.goversion.outputs.goversion }} - - 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 + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 + with: + go-version: ${{ needs.goversion.outputs.goversion }} + - 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-arm64.yaml b/.github/workflows/e2e-arm64.yaml index 1c16c229b..9328ca502 100644 --- a/.github/workflows/e2e-arm64.yaml +++ b/.github/workflows/e2e-arm64.yaml @@ -1,3 +1,4 @@ +--- name: E2E-arm64 on: schedule: @@ -19,27 +20,27 @@ jobs: fail-fast: true matrix: target: - - linux-arm64-e2e + - linux-arm64-e2e steps: - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - # https://github.com/actions/checkout/issues/1169 - - run: git config --system --add safe.directory '*' - - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 - with: - go-version: ${{ needs.goversion.outputs.goversion }} - - run: date - - env: - TARGET: ${{ matrix.target }} - run: | - set -euo pipefail + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + # https://github.com/actions/checkout/issues/1169 + - run: git config --system --add safe.directory '*' + - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 + with: + go-version: ${{ needs.goversion.outputs.goversion }} + - run: date + - env: + TARGET: ${{ matrix.target }} + run: | + set -euo pipefail - echo "${TARGET}" - case "${TARGET}" in - linux-arm64-e2e) - GOOS=linux GOARCH=arm64 CPU=4 EXPECT_DEBUG=true RACE=true make test-e2e-release - ;; - *) - echo "Failed to find target" - exit 1 - ;; - esac + echo "${TARGET}" + case "${TARGET}" in + linux-arm64-e2e) + GOOS=linux GOARCH=arm64 CPU=4 EXPECT_DEBUG=true RACE=true make test-e2e-release + ;; + *) + echo "Failed to find target" + exit 1 + ;; + esac diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 33cbbcf73..9ad7f451b 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -1,3 +1,4 @@ +--- name: E2E on: [push, pull_request] permissions: read-all @@ -11,29 +12,29 @@ jobs: fail-fast: true matrix: target: - - linux-amd64-e2e - - linux-386-e2e + - linux-amd64-e2e + - linux-386-e2e steps: - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 - with: - go-version: ${{ needs.goversion.outputs.goversion }} - - run: date - - env: - TARGET: ${{ matrix.target }} - run: | - set -euo pipefail + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 + with: + go-version: ${{ needs.goversion.outputs.goversion }} + - run: date + - env: + TARGET: ${{ matrix.target }} + run: | + set -euo pipefail - echo "${TARGET}" - case "${TARGET}" in - linux-amd64-e2e) - VERBOSE=1 GOOS=linux GOARCH=amd64 CPU=4 EXPECT_DEBUG=true RACE=true make test-e2e-release - ;; - linux-386-e2e) - VERBOSE=1 GOOS=linux GOARCH=386 CPU=4 EXPECT_DEBUG=true RACE=true make test-e2e - ;; - *) - echo "Failed to find target" - exit 1 - ;; - esac + echo "${TARGET}" + case "${TARGET}" in + linux-amd64-e2e) + VERBOSE=1 GOOS=linux GOARCH=amd64 CPU=4 EXPECT_DEBUG=true RACE=true make test-e2e-release + ;; + linux-386-e2e) + VERBOSE=1 GOOS=linux GOARCH=386 CPU=4 EXPECT_DEBUG=true RACE=true make test-e2e + ;; + *) + echo "Failed to find target" + exit 1 + ;; + esac diff --git a/.github/workflows/fuzzing.yaml b/.github/workflows/fuzzing.yaml index 9c8a4427c..7fa3d8a15 100644 --- a/.github/workflows/fuzzing.yaml +++ b/.github/workflows/fuzzing.yaml @@ -1,3 +1,4 @@ +--- name: Fuzzing v3rpc on: [push, pull_request] permissions: read-all @@ -12,15 +13,15 @@ jobs: env: TARGET_PATH: ./server/etcdserver/api/v3rpc steps: - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 - with: - go-version: ${{ needs.goversion.outputs.goversion }} - - run: | - set -euo pipefail + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 + with: + go-version: ${{ needs.goversion.outputs.goversion }} + - run: | + set -euo pipefail - GOARCH=amd64 CPU=4 make fuzz - - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 - if: failure() - with: - path: "${{env.TARGET_PATH}}/testdata/fuzz/**/*" + 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/go-version.yaml b/.github/workflows/go-version.yaml index 46107f4b5..ff4d3ba8a 100644 --- a/.github/workflows/go-version.yaml +++ b/.github/workflows/go-version.yaml @@ -1,3 +1,4 @@ +--- name: Go version setup permissions: read-all diff --git a/.github/workflows/govuln.yaml b/.github/workflows/govuln.yaml index 89995cd70..8ce995e41 100644 --- a/.github/workflows/govuln.yaml +++ b/.github/workflows/govuln.yaml @@ -1,3 +1,4 @@ +--- name: Go Vulnerability Checker on: [push, pull_request] permissions: read-all diff --git a/.github/workflows/grpcproxy.yaml b/.github/workflows/grpcproxy.yaml index d485b1f82..6c7cdced3 100644 --- a/.github/workflows/grpcproxy.yaml +++ b/.github/workflows/grpcproxy.yaml @@ -1,3 +1,4 @@ +--- name: grpcProxy-tests on: [push, pull_request] permissions: read-all @@ -11,29 +12,29 @@ jobs: fail-fast: true matrix: target: - - linux-amd64-grpcproxy-integration - - linux-amd64-grpcproxy-e2e + - linux-amd64-grpcproxy-integration + - linux-amd64-grpcproxy-e2e steps: - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 - with: - go-version: ${{ needs.goversion.outputs.goversion }} - - run: date - - env: - TARGET: ${{ matrix.target }} - run: | - set -euo pipefail + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 + with: + go-version: ${{ needs.goversion.outputs.goversion }} + - run: date + - env: + TARGET: ${{ matrix.target }} + run: | + set -euo pipefail - echo "${TARGET}" - case "${TARGET}" in - linux-amd64-grpcproxy-integration) - GOOS=linux GOARCH=amd64 CPU=4 RACE=true make test-grpcproxy-integration - ;; - linux-amd64-grpcproxy-e2e) - GOOS=linux GOARCH=amd64 CPU=4 RACE=true make test-grpcproxy-e2e - ;; - *) - echo "Failed to find target" - exit 1 - ;; - esac + echo "${TARGET}" + case "${TARGET}" in + linux-amd64-grpcproxy-integration) + GOOS=linux GOARCH=amd64 CPU=4 RACE=true make test-grpcproxy-integration + ;; + linux-amd64-grpcproxy-e2e) + GOOS=linux GOARCH=amd64 CPU=4 RACE=true make test-grpcproxy-e2e + ;; + *) + echo "Failed to find target" + exit 1 + ;; + esac diff --git a/.github/workflows/measure-test-flakiness.yaml b/.github/workflows/measure-test-flakiness.yaml index 55afb7737..3177b845c 100644 --- a/.github/workflows/measure-test-flakiness.yaml +++ b/.github/workflows/measure-test-flakiness.yaml @@ -1,3 +1,4 @@ +--- name: Measure Test Flakiness on: @@ -11,12 +12,12 @@ jobs: name: Measure Test Flakiness runs-on: ubuntu-latest steps: - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - set -euo pipefail + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + - env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + set -euo pipefail - ./scripts/measure-test-flakiness.sh - make bin/etcd-test-analyzer - bin/etcd-test-analyzer run -token $GITHUB_TOKEN -max-age=168h -workflow Tests -branch main + ./scripts/measure-test-flakiness.sh + make bin/etcd-test-analyzer + bin/etcd-test-analyzer run -token $GITHUB_TOKEN -max-age=168h -workflow Tests -branch main diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f06858e99..1d2e3f380 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,3 +1,4 @@ +--- name: Release on: [push, pull_request] permissions: read-all @@ -8,27 +9,27 @@ jobs: runs-on: ubuntu-latest needs: goversion steps: - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 - with: - go-version: ${{ needs.goversion.outputs.goversion }} - - name: release - run: | - set -euo pipefail + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 + with: + go-version: ${{ needs.goversion.outputs.goversion }} + - name: release + run: | + set -euo pipefail - git config --global user.email "github-action@etcd.io" - git config --global user.name "Github Action" - gpg --batch --gen-key <