This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch v3-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-4-test by this push:
new cab43f686a6 [v3-4-test] Run Go SDK tests outside repo and on latest Go
(#77014) (#77155)
cab43f686a6 is described below
commit cab43f686a6dbebc623d715df5ea43f9cf97d4bb
Author: Tzu-ping Chung <[email protected]>
AuthorDate: Mon Nov 16 18:00:31 2026 +0800
[v3-4-test] Run Go SDK tests outside repo and on latest Go (#77014) (#77155)
(cherry picked from commit 79b500352e0f03554a2f296a87686c2da77357b5)
---
.github/workflows/ci-amd.yml | 23 +++++++++++++++++++++++
.github/workflows/ci-arm.yml | 23 +++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/.github/workflows/ci-amd.yml b/.github/workflows/ci-amd.yml
index 42f1a581049..f1f62db7504 100644
--- a/.github/workflows/ci-amd.yml
+++ b/.github/workflows/ci-amd.yml
@@ -1348,6 +1348,29 @@ jobs:
run: |
go install golang.org/x/vuln/cmd/[email protected]
govulncheck ./...
+ # The Go SDK source release ships go-sdk alone, and its tests must pass
there. Running them
+ # from a copy outside the repository fails on any test that reads a file
outside go-sdk.
+ - name: Run Go tests outside the Airflow repository
+ run: |
+ cp -a go-sdk "${RUNNER_TEMP}/go-sdk"
+ cd "${RUNNER_TEMP}/go-sdk"
+ gotestsum --format github-actions ./...
+ # The steps above use the pinned Go, but users build with newer ones. A
new Go can change
+ # standard library behaviour that a test depends on, such as the text of
an encoding/json
+ # error in Go 1.27. These steps come last because setup-go puts the new
Go first on PATH.
+ # They do not fail the job, so that a new Go release does not break CI
on its own.
+ - name: Setup the latest stable Go
+ uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e #
v7.0.0
+ with:
+ go-version: stable
+ # The pinned Go's setup already restores and saves the module cache.
+ cache: false
+ - name: Run Go tests on the latest stable Go
+ continue-on-error: true
+ working-directory: ./go-sdk
+ run: |
+ go version
+ gotestsum --format github-actions ./...
tests-ts-sdk:
name: "TypeScript SDK tests"
diff --git a/.github/workflows/ci-arm.yml b/.github/workflows/ci-arm.yml
index 8d02e795524..b9e50dbc3b2 100644
--- a/.github/workflows/ci-arm.yml
+++ b/.github/workflows/ci-arm.yml
@@ -1224,6 +1224,29 @@ jobs:
run: |
go install golang.org/x/vuln/cmd/[email protected]
govulncheck ./...
+ # The Go SDK source release ships go-sdk alone, and its tests must pass
there. Running them
+ # from a copy outside the repository fails on any test that reads a file
outside go-sdk.
+ - name: Run Go tests outside the Airflow repository
+ run: |
+ cp -a go-sdk "${RUNNER_TEMP}/go-sdk"
+ cd "${RUNNER_TEMP}/go-sdk"
+ gotestsum --format github-actions ./...
+ # The steps above use the pinned Go, but users build with newer ones. A
new Go can change
+ # standard library behaviour that a test depends on, such as the text of
an encoding/json
+ # error in Go 1.27. These steps come last because setup-go puts the new
Go first on PATH.
+ # They do not fail the job, so that a new Go release does not break CI
on its own.
+ - name: Setup the latest stable Go
+ uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e #
v7.0.0
+ with:
+ go-version: stable
+ # The pinned Go's setup already restores and saves the module cache.
+ cache: false
+ - name: Run Go tests on the latest stable Go
+ continue-on-error: true
+ working-directory: ./go-sdk
+ run: |
+ go version
+ gotestsum --format github-actions ./...
tests-ts-sdk:
name: "TypeScript SDK tests"