From cb401641e50c311570daa15b610c4e024a3b463a Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 10 Nov 2025 23:19:15 -0800 Subject: [PATCH 1/2] ci: faster git clone For some reason, some jobs in .github/workflows/validate.yml have "fetch-depth: 0" argument to actions/checkout, meaning "all history for all branches and tags". Obviously this is not needed here. Signed-off-by: Kir Kolyshkin (cherry picked from commit e0b00171eb0f338cf024760019abdd4e7dec690f) Signed-off-by: Kir Kolyshkin --- .github/workflows/validate.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 17ba7b131d2..416a6d9e6e6 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -188,8 +188,6 @@ jobs: steps: - name: checkout uses: actions/checkout@v5 - with: - fetch-depth: 0 - name: install deps run: | sudo apt -qq update @@ -206,8 +204,6 @@ jobs: steps: - name: checkout uses: actions/checkout@v5 - with: - fetch-depth: 0 - name: check CHANGELOG.md run: make verify-changelog @@ -236,8 +232,6 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 - with: - fetch-depth: 0 - name: install bashbrew env: BASEURL: https://github.com/docker-library/bashbrew/releases/download From 896c4beaec9570d36217a32f4705ff3619b27105 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 10 Nov 2025 23:45:49 -0800 Subject: [PATCH 2/2] ci: add checking Go version from Dockerfile This is to ensure that Go version in Dockerfile (which is used to build release binaries) is: - currently supported; - used in CI tests. Signed-off-by: Kir Kolyshkin (cherry picked from commit df4acc8867a08bd2df2dfec74a5f79fe018c2f4d) Signed-off-by: Kir Kolyshkin --- .github/workflows/validate.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 416a6d9e6e6..1a8a86ad1b3 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -197,6 +197,18 @@ jobs: make cfmt git diff --exit-code + check-go: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - name: check Go version + run: | + GO_VER=$(awk -F= '/^ARG\s+GO_VERSION=/ {print $2; quit}' Dockerfile) + echo "Go version used in Dockerfile: $GO_VER" + echo -n "Checking if Go $GO_VER is supported ... " + curl -fsSL https://go.dev/dl/?mode=json | jq -e 'any(.[]; .version | startswith("go'$GO_VER'"))' + echo -n "Checking if Go $GO_VER is tested against ... " + yq -e '.jobs.test.strategy.matrix.go-version | contains(["'$GO_VER'.x"])' .github/workflows/test.yml release: timeout-minutes: 30 @@ -253,6 +265,7 @@ jobs: all-done: needs: + - check-go - cfmt - codespell - commit