From 9919f2a7e5b5ad54b1db9ddf157cae55b06e84a4 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Wed, 5 Mar 2025 23:29:18 -0800 Subject: [PATCH 1/2] github/workflows: use ARM64 runners for robustness tests Signed-off-by: Ivan Valdes --- .github/workflows/robustness_test.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/robustness_test.yaml b/.github/workflows/robustness_test.yaml index 03392859d..635d4e825 100644 --- a/.github/workflows/robustness_test.yaml +++ b/.github/workflows/robustness_test.yaml @@ -8,3 +8,9 @@ jobs: count: 10 testTimeout: 30m runs-on: "['ubuntu-latest']" + arm64: + uses: ./.github/workflows/robustness_template.yaml + with: + count: 10 + testTimeout: 30m + runs-on: "['ubuntu-24.04-arm']" From e40f7833dee9ebb82bc5519b474637e52b02485f Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Thu, 6 Mar 2025 22:01:14 -0800 Subject: [PATCH 2/2] github/workflows: add ARM64 tests Restore ARM64 test workflows. Remove the conditional to run only ARM tests in the upstream repository, as GitHub ARM runners are now publicly available. Signed-off-by: Ivan Valdes --- .github/workflows/tests-template.yml | 2 -- .github/workflows/tests_arm64.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/tests_arm64.yaml diff --git a/.github/workflows/tests-template.yml b/.github/workflows/tests-template.yml index 191b4fbf6..c0b031120 100644 --- a/.github/workflows/tests-template.yml +++ b/.github/workflows/tests-template.yml @@ -15,8 +15,6 @@ permissions: read-all jobs: test-linux: - # this is to prevent arm64 jobs from running at forked projects - if: ${{ github.repository == 'etcd-io/bbolt' || inputs.runs-on == 'ubuntu-latest' }} strategy: fail-fast: false matrix: diff --git a/.github/workflows/tests_arm64.yaml b/.github/workflows/tests_arm64.yaml new file mode 100644 index 000000000..aa6adc5bc --- /dev/null +++ b/.github/workflows/tests_arm64.yaml @@ -0,0 +1,26 @@ +--- +name: Tests ARM64 +permissions: read-all +on: [push, pull_request] +jobs: + test-linux-arm64: + uses: ./.github/workflows/tests-template.yml + test-linux-arm64-race: + uses: ./.github/workflows/tests-template.yml + with: + runs-on: ubuntu-24.04-arm + targets: "['linux-unit-test-4-cpu-race']" + + coverage: + needs: + - test-linux-arm64 + - test-linux-arm64-race + runs-on: ubuntu-24.04-arm + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - id: goversion + run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT" + - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 + with: + go-version: ${{ steps.goversion.outputs.goversion }} + - run: make coverage