test/goroot: cover loader frontend diagnostics#2102
Merged
Conversation
20 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
cpunion
force-pushed
the
codex/xfail-loader-diagnostics
branch
3 times, most recently
from
July 17, 2026 06:21
df93d1b to
08149e0
Compare
cpunion
force-pushed
the
codex/xfail-loader-diagnostics
branch
from
July 17, 2026 08:13
08149e0 to
e0baece
Compare
cpunion
force-pushed
the
codex/xfail-loader-diagnostics
branch
from
July 17, 2026 09:47
e0baece to
92ce205
Compare
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.
Summary
errorcheckcases and retire their xfailsgo/typesversuscmd/compile/types2wording aliases in the GOROOT test harness:no metadatadetailgo:embedvariables and pre-Go-1.16 language mode whengo listvalidates the trailing pattern firstThe loader no longer rewrites general go/types or driver diagnostics. Ordinary malformed imports, field diagnostics outside GOROOT errorcheck matching, and current-version embed pattern failures retain their native llgo/go/packages output.
Cases
fixedbugs/issue11362.go: GOROOT-only wording aliasfixedbugs/issue31053.dir/main.go: GOROOT-only wording aliasesimport6.go: loader absolute-import validationembedvers.go: loader/compiler diagnostic precedenceembedfunc.go: loader/compiler diagnostic precedenceValidation
mainatce7611414, including merged test/goroot: normalize go/types diagnostics #2104, test/goroot: match exact parser recovery diagnostics #2105, ci: pin Go 1.26 across CI and release pipelines #2108, [Based on #2108] ci: focus compatibility matrix on Go 1.24 and 1.26 #2110, and build: add initial -ldflags -s and -w support #2113; all adjacent xfail removals are retained.internal/packagestests passtest/gorootpackage tests passTestToolCompileFrontendDiagnosticNormalizationpasses with-vet=offinternal/packagespackage coverage is 72.6%.git diff --checkpasses.The default Go 1.26.5 vet invocation still panics in its vendored
x/tools/refactor/satisfyon unchangedmain; the affected integration tests therefore use-vet=off.