[tools] gopls/internal/test/integration/completion: fix flaky TestUnimportedCompletion_VSCodeIssue3365

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Feb 24, 2026, 3:48:43 PM (12 hours ago) Feb 24
to Francisco Ferraz, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, David Chase, Go LUCI, Madeline Kalil, Alan Donovan, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
gopls/internal/test/integration/completion: fix flaky TestUnimportedCompletion_VSCodeIssue3365

The test used nested t.Run() subtests inside a runner.Run callback.
Env methods called e.TB.Fatal() on the parent subtest's t from within
a child subtest goroutine, causing "FailNow on a parent test" panics
and 20-minute timeouts.

Replace the inner t.Run() subtests with a plain loop.

Fixes golang/go#77756
Change-Id: I50cd5207dbe022a19fdd96e48d4a86e92710792c
Auto-Submit: Alan Donovan <adon...@google.com>
Reviewed-by: David Chase <drc...@google.com>
Reviewed-by: Alan Donovan <adon...@google.com>
Files:
  • M gopls/internal/test/integration/completion/completion_test.go
Change size: XS
Delta: 1 file changed, 1 insertion(+), 1 deletion(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by David Chase, +2 by Alan Donovan
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I50cd5207dbe022a19fdd96e48d4a86e92710792c
Gerrit-Change-Number: 747461
Gerrit-PatchSet: 4
Gerrit-Owner: Francisco Ferraz <francisc...@gmail.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-CC: Madeline Kalil <mka...@google.com>
open
diffy
satisfied_requirement

Alan Donovan (Gerrit)

unread,
Feb 24, 2026, 9:31:31 PM (6 hours ago) Feb 24
to Francisco Ferraz, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, Madeline Kalil, golang-co...@googlegroups.com

Alan Donovan submitted the change

Change information

Commit message:
gopls/internal/test/integration/completion: fix flaky TestUnimportedCompletion_VSCodeIssue3365

The test used nested t.Run() subtests inside a runner.Run callback.
Env methods called e.TB.Fatal() on the parent subtest's t from within
a child subtest goroutine, causing "FailNow on a parent test" panics
and 20-minute timeouts.

Replace the inner t.Run() subtests with a plain loop.

Fixes golang/go#77756
Change-Id: I37e1c77606981665bdb762316da3b02b5c6505fc
Reviewed-by: Alan Donovan <adon...@google.com>
Commit-Queue: Alan Donovan <adon...@google.com>
Auto-Submit: Alan Donovan <adon...@google.com>
Reviewed-by: Madeline Kalil <mka...@google.com>
Files:
  • M gopls/internal/test/integration/completion/completion_test.go
Change size: S
Delta: 1 file changed, 11 insertions(+), 14 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Madeline Kalil, +2 by Alan Donovan
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I37e1c77606981665bdb762316da3b02b5c6505fc
Gerrit-Change-Number: 748620
Gerrit-PatchSet: 3
Gerrit-Owner: Francisco Ferraz <francisc...@gmail.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Madeline Kalil <mka...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages