this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

internal/ci: test and release with Go 1.23.0

Now that the stable version is out.

Also drop the TODO mention of tool version tracking support in Go 1.22;
it hasn't even happened yet in master for 1.24.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Icb528e9996d48aa7d5524a0b8fa4468afc0a7be3
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199477
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>

+13 -13
+1 -1
.github/workflows/release.yml
··· 57 57 uses: actions/setup-go@v5 58 58 with: 59 59 cache: false 60 - go-version: 1.22.5 60 + go-version: 1.23.0 61 61 - name: Setup qemu 62 62 uses: docker/setup-qemu-action@v3 63 63 - name: Set up Docker Buildx
+9 -9
.github/workflows/trybot.yml
··· 18 18 matrix: 19 19 go-version: 20 20 - 1.22.x 21 - - 1.23.0-rc.2 21 + - 1.23.x 22 22 runner: 23 23 - ubuntu-22.04 24 24 - macos-14 ··· 101 101 github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, ' 102 102 Dispatch-Trailer: {"type":"')))) || github.ref == 'refs/heads/ci/test') 103 103 run: go clean -testcache 104 - - if: (matrix.go-version == '1.23.0-rc.2' && matrix.runner == 'ubuntu-22.04') 104 + - if: (matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-22.04') 105 105 name: Early git and code sanity checks 106 106 run: go run ./internal/ci/checks 107 - - if: (matrix.go-version == '1.23.0-rc.2' && matrix.runner == 'ubuntu-22.04') 107 + - if: (matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-22.04') 108 108 name: Generate 109 109 run: go generate ./... 110 110 - if: |- 111 111 ((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, ' 112 - Dispatch-Trailer: {"type":"')))) || !(matrix.go-version == '1.23.0-rc.2' && matrix.runner == 'ubuntu-22.04') 112 + Dispatch-Trailer: {"type":"')))) || !(matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-22.04') 113 113 name: Test 114 114 run: go test ./... 115 - - if: (matrix.go-version == '1.23.0-rc.2' && matrix.runner == 'ubuntu-22.04') 115 + - if: (matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-22.04') 116 116 name: Test with -race 117 117 run: go test -race ./... 118 118 env: ··· 123 123 id: auth 124 124 if: |- 125 125 github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, ' 126 - Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.23.0-rc.2' && matrix.runner == 'ubuntu-22.04') 126 + Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-22.04') 127 127 uses: google-github-actions/auth@v2 128 128 with: 129 129 credentials_json: ${{ secrets.E2E_GCLOUD_KEY }} 130 130 - if: |- 131 131 github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, ' 132 - Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.23.0-rc.2' && matrix.runner == 'ubuntu-22.04') 132 + Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-22.04') 133 133 name: gcloud setup for end-to-end tests 134 134 uses: google-github-actions/setup-gcloud@v2 135 135 - if: |- 136 136 github.repository == 'cue-lang/cue' && (((github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-branch.')) && (! (contains(github.event.head_commit.message, ' 137 - Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.23.0-rc.2' && matrix.runner == 'ubuntu-22.04') 137 + Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test')) && (matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-22.04') 138 138 name: End-to-end test 139 139 env: 140 140 CUE_TEST_LOGINS: ${{ secrets.E2E_CUE_LOGINS }} 141 141 run: |- 142 142 cd internal/_e2e 143 143 go test -race 144 - - if: (matrix.go-version == '1.23.0-rc.2' && matrix.runner == 'ubuntu-22.04') 144 + - if: (matrix.go-version == '1.23.x' && matrix.runner == 'ubuntu-22.04') 145 145 name: Check 146 146 run: |- 147 147 go vet ./...
+1 -1
internal/_e2e/script_test.go
··· 34 34 cachedGobin := os.Getenv("CUE_CACHED_GOBIN") 35 35 if cachedGobin == "" { 36 36 // Install the cmd/cue version into a cached GOBIN so we can reuse it. 37 - // TODO: use "go tool cue" once we can rely on Go 1.22's tool dependency tracking in go.mod. 37 + // TODO: use "go tool cue" once we can rely on Go's tool dependency tracking in go.mod. 38 38 // See: https://go.dev/issue/48429 39 39 cacheDir, err := os.UserCacheDir() 40 40 if err != nil {
+2 -2
internal/ci/repo/repo.cue
··· 31 31 // Use the latest Go version for extra checks, 32 32 // such as running tests with the data race detector. 33 33 // This may be a release candidate if we are late into a Go release cycle. 34 - latestGo: "1.23.0-rc.2" 34 + latestGo: "1.23.x" 35 35 36 36 // The list of all Go versions that we run our tests on. 37 37 // This typically goes back one major Go version, as we support two at a time. ··· 40 40 // Use a specific latest version for release builds. 41 41 // Note that we don't want ".x" for the sake of reproducibility, 42 42 // so we instead pin a specific Go release. 43 - pinnedReleaseGo: "1.22.5" 43 + pinnedReleaseGo: "1.23.0" 44 44 45 45 goreleaserVersion: "v2.0.1" 46 46