From e130bf417fdce5f6df59e3125e126e9254ab63d1 Mon Sep 17 00:00:00 2001 From: sh4shv4t Date: Thu, 15 Jan 2026 00:09:12 +0530 Subject: [PATCH 1/4] Build: Enable unit tests on arm64 architecture Signed-off-by: sh4shv4t --- .github/workflows/test-build-deploy.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build-deploy.yml b/.github/workflows/test-build-deploy.yml index 6784ed4c089..6f3101d653f 100644 --- a/.github/workflows/test-build-deploy.yml +++ b/.github/workflows/test-build-deploy.yml @@ -46,12 +46,21 @@ jobs: run: make BUILD_IN_CONTAINER=false check-modernize test: - runs-on: ubuntu-24.04 + strategy: + fail-fast: false + matrix: + include: + - name: amd64 + runner: ubuntu-24.04 + - name: arm64 + runner: ubuntu-24.04-arm + name: test (${{ matrix.name }}) + runs-on: ${{ matrix.runner }} container: image: quay.io/cortexproject/build-image:master-8b48921f71 steps: - name: Checkout Repo - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Setup Git safe.directory run: | echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively." @@ -63,6 +72,7 @@ jobs: ln -s $GITHUB_WORKSPACE/* /go/src/github.com/cortexproject/cortex - name: Run Tests run: make BUILD_IN_CONTAINER=false test + test-no-race: runs-on: ubuntu-24.04 container: From 25be0d278e98182584a438c8d4de78f43f3a74f4 Mon Sep 17 00:00:00 2001 From: sh4shv4t Date: Thu, 15 Jan 2026 15:26:07 +0530 Subject: [PATCH 2/4] Build: Enable unit tests (no-race) on arm64 Signed-off-by: sh4shv4t --- .github/workflows/test-build-deploy.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build-deploy.yml b/.github/workflows/test-build-deploy.yml index 6f3101d653f..6f1b22ac5b4 100644 --- a/.github/workflows/test-build-deploy.yml +++ b/.github/workflows/test-build-deploy.yml @@ -74,12 +74,21 @@ jobs: run: make BUILD_IN_CONTAINER=false test test-no-race: - runs-on: ubuntu-24.04 + strategy: + fail-fast: false + matrix: + include: + - name: amd64 + runner: ubuntu-24.04 + - name: arm64 + runner: ubuntu-24.04-arm + name: test-no-race (${{ matrix.name }}) + runs-on: ${{ matrix.runner }} container: image: quay.io/cortexproject/build-image:master-8b48921f71 steps: - name: Checkout Repo - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup Git safe.directory run: | echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively." From 277df0a20b3a581c560b95fdf163016b51db1623 Mon Sep 17 00:00:00 2001 From: Shashvat Singh <145356337+sh4shv4t@users.noreply.github.com> Date: Thu, 15 Jan 2026 23:06:57 +0530 Subject: [PATCH 3/4] Update .github/workflows/test-build-deploy.yml Co-authored-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com> Signed-off-by: Shashvat Singh <145356337+sh4shv4t@users.noreply.github.com> --- .github/workflows/test-build-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-build-deploy.yml b/.github/workflows/test-build-deploy.yml index 6f1b22ac5b4..e17dd4840e7 100644 --- a/.github/workflows/test-build-deploy.yml +++ b/.github/workflows/test-build-deploy.yml @@ -60,7 +60,7 @@ jobs: image: quay.io/cortexproject/build-image:master-8b48921f71 steps: - name: Checkout Repo - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Git safe.directory run: | echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively." From 762c85c496233d496464298de27c81e553eb68ce Mon Sep 17 00:00:00 2001 From: Shashvat Singh <145356337+sh4shv4t@users.noreply.github.com> Date: Thu, 15 Jan 2026 23:07:11 +0530 Subject: [PATCH 4/4] Update .github/workflows/test-build-deploy.yml Co-authored-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com> Signed-off-by: Shashvat Singh <145356337+sh4shv4t@users.noreply.github.com> --- .github/workflows/test-build-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-build-deploy.yml b/.github/workflows/test-build-deploy.yml index e17dd4840e7..c6c7894ca2c 100644 --- a/.github/workflows/test-build-deploy.yml +++ b/.github/workflows/test-build-deploy.yml @@ -88,7 +88,7 @@ jobs: image: quay.io/cortexproject/build-image:master-8b48921f71 steps: - name: Checkout Repo - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Setup Git safe.directory run: | echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively."