Repository navigation
chore: bump golang.org/x/tools to v0.50.0 - #5
Merged
Merged
Conversation
x/tools v0.36.0 cannot load packages built with Go 1.27, so
paralleltestctx fails on Go 1.27 modules with errors like:
internal error: package "cmp" without types was imported from ...
Bump x/tools to v0.50.0, which needs go 1.26.0, and run CI on
Go 1.26.8. The repo's pinned golangci-lint v2.4.0 cannot read Go 1.27
export data, so CI stays on Go 1.26.
ethanndickson
approved these changes
Oct 20, 2026
ethanndickson
added a commit
to coder/coder
that referenced
this pull request
Oct 20, 2026
…ures (#31039) #31011 fixed a flake where a closure in `TestProjectSkillQueries` used the parent test's `testutil.Context` from parallel subtests. Once that deadline passed, the closure's `require.NoError` called `FailNow` on the parent `t`, which panics and takes down the whole `coderd/database` package. `paralleltestctx` only checked direct references to the context, so it missed this. coder/paralleltestctx#6 now follows calls to local closures too. This pins `paralleltestctx` to the current `main` commit, as there's no tag yet. That commit also brings in the outer variable reassignment check from coder/paralleltestctx#4 and the `x/tools` bump from coder/paralleltestctx#5. The closure check flagged the `loadPrompt` helper in `TestMediaToolResultRoundTrip`, so it now makes its own context from the subtest's `t`. The `TestGraph` and `TestRuntimeAudit` fixes for the outer variable check are the same as in #30288, so that PR only needs to repin.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
paralleltestctxv0.0.2 depends ongolang.org/x/toolsv0.36.0, which cannot load packages built with Go 1.27:This bumps x/tools to v0.50.0 (the version coder/coder uses), which raises the
godirective to 1.26.0, and moves CI to Go 1.26.8. CI stays on Go 1.26 because the pinned golangci-lint v2.4.0 cannot read Go 1.27 export data.Needed by coder/coder's Go 1.27 upgrade, which will pin the next tag once this merges.
Testing:
go test ./...andgo vet ./...pass with Go 1.26.5 and 1.27.1, andmake lintandmake fmtare clean with Go 1.26.5. Built with this commit,paralleltestctxloads the coder/coder tree on Go 1.27.1. v0.0.2 fails there with the error above.