diff --git a/.evergreen/config.yml b/.evergreen/config.yml index eacfd9e7d9..8c4bc4887e 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -1764,7 +1764,7 @@ axes: - windows-vsCurrent-small variables: GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin" - GO_DIST: "C:\\golang\\go1.23" + GO_DIST: "C:\\golang\\go1.25" VENV_BIN_DIR: "Scripts" DEFAULT_TASK: evg-test # CSOT tests are unreliable on our slow Windows hosts. @@ -1773,14 +1773,14 @@ axes: display_name: "RHEL 8.7" run_on: rhel8.7-large variables: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" DEFAULT_TASK: evg-test - id: "macos" display_name: "MacOS 14.0" run_on: macos-14 batchtime: 1440 # Run at most once per 24 hours. variables: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" DEFAULT_TASK: evg-test-load-balancers # CSOT tests are unreliable on our slow macOS hosts. SKIP_CSOT_TESTS: true @@ -1795,7 +1795,7 @@ axes: - windows-vsCurrent-small variables: GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin" - GO_DIST: "C:\\golang\\go1.23" + GO_DIST: "C:\\golang\\go1.25" VENV_BIN_DIR: "Scripts" DEFAULT_TASK: evg-test # CSOT tests are unreliable on our slow Windows hosts. @@ -1804,14 +1804,14 @@ axes: display_name: "RHEL 8.7" run_on: rhel8.7-large variables: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" DEFAULT_TASK: evg-test - id: "macos" display_name: "MacOS 14.0" run_on: macos-14 batchtime: 1440 # Run at most once per 24 hours. variables: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" DEFAULT_TASK: evg-test-load-balancers # CSOT tests are unreliable on our slow macOS hosts. SKIP_CSOT_TESTS: true @@ -1823,7 +1823,7 @@ axes: display_name: "RHEL 8.7" run_on: rhel8.7-large variables: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" DEFAULT_TASK: evg-test - id: os-aws-auth @@ -1835,7 +1835,7 @@ axes: - windows-vsCurrent-small variables: GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin" - GO_DIST: "C:\\golang\\go1.23" + GO_DIST: "C:\\golang\\go1.25" SKIP_ECS_AUTH_TEST: true DEFAULT_TASK: evg-test # CSOT tests are unreliable on our slow Windows hosts. @@ -1844,14 +1844,14 @@ axes: display_name: "Ubuntu 20.04" run_on: ubuntu2004-test variables: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" DEFAULT_TASK: evg-test - id: "macos" display_name: "MacOS 14.0" run_on: macos-14 batchtime: 1440 # Run at most once per 24 hours. variables: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" SKIP_ECS_AUTH_TEST: true SKIP_EC2_AUTH_TEST: true SKIP_WEB_IDENTITY_AUTH_TEST: true @@ -1866,7 +1866,7 @@ axes: display_name: "RHEL 8.7" run_on: rhel8.7-large variables: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" task_groups: - name: testgcpkms_task_group @@ -2098,7 +2098,7 @@ buildvariants: - rhel8.7-small expansions: # Keep this in sync with go version used in etc/golangci-lint.sh - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: ".static-analysis" @@ -2108,7 +2108,7 @@ buildvariants: run_on: - rhel8.7-small expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: "pull-request-helpers" @@ -2117,7 +2117,7 @@ buildvariants: display_name: "Performance" run_on: rhel90-dbx-perf-large expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: ".performance" @@ -2127,7 +2127,7 @@ buildvariants: run_on: - ubuntu2204-small expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: ".compile-check" @@ -2136,7 +2136,7 @@ buildvariants: run_on: - rhel8.7-small expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: "backport-pr" @@ -2146,7 +2146,7 @@ buildvariants: run_on: - rhel8.7-large expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: "atlas-test" @@ -2156,7 +2156,7 @@ buildvariants: run_on: - ubuntu2204-large expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: "test-docker-runner" @@ -2166,7 +2166,7 @@ buildvariants: run_on: - ubuntu2204-large expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: ".goleak" @@ -2313,7 +2313,7 @@ buildvariants: run_on: - rhel8.7-small expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: testgcpkms_task_group batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README @@ -2324,7 +2324,7 @@ buildvariants: run_on: - rhel8.7-small expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - testawskms-task - testawskms-fail-task @@ -2334,7 +2334,7 @@ buildvariants: run_on: - rhel8.7-small expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: testazurekms_task_group batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README @@ -2345,7 +2345,7 @@ buildvariants: run_on: - ubuntu2204-small expansions: - GO_DIST: "/opt/golang/go1.23" + GO_DIST: "/opt/golang/go1.25" tasks: - name: testoidc_task_group - name: testazureoidc_task_group diff --git a/go.work b/go.work index 23ad2ff8a7..cb9dc7f398 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.23 +go 1.23.0 use ( . @@ -8,5 +8,6 @@ use ( ./internal/cmd/benchmark ./internal/cmd/compilecheck ./internal/cmd/faas/awslambda/mongodb + ./internal/test/compilecheck ./internal/test/goleak ) diff --git a/internal/cmd/compilecheck/go.work b/internal/cmd/compilecheck/go.work new file mode 100644 index 0000000000..6da44691e9 --- /dev/null +++ b/internal/cmd/compilecheck/go.work @@ -0,0 +1,5 @@ +go 1.19 + +use ( + . +) diff --git a/internal/test/compilecheck/compile_check_test.go b/internal/test/compilecheck/compile_check_test.go index 3ba2e989f7..2eef836190 100644 --- a/internal/test/compilecheck/compile_check_test.go +++ b/internal/test/compilecheck/compile_check_test.go @@ -19,12 +19,6 @@ import ( "github.com/testcontainers/testcontainers-go" ) -// TODO(GODRIVER-3515): This module cannot be included in the workspace since it -// requires a version of klauspost/compress that is not compatible with the Go -// Driver. Must use GOWORK=off to run this test. - -// TODO(GODRIVER-3592): Add "1.25" to the list when Go 1.25 is released. -// Estimated release date is August 2025. var versions = []string{ "1.19", "1.20", @@ -32,6 +26,7 @@ var versions = []string{ "1.22", "1.23", "1.24", + "1.25", } func TestCompileCheck(t *testing.T) {