Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/gopls/internal/regtest/codelens: TestGCDetails timeouts with non-empty outstanding work #49902

Closed
bcmills opened this issue Dec 1, 2021 · 2 comments
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Dec 1, 2021

(This log is from the first ppc-aix failure, to avoid conflating other current sources of flakiness.)

--- FAIL: TestGCDetails (77.63s)
    --- FAIL: TestGCDetails/experimental (65.00s)
        codelens_test.go:343: waiting on:
            	Unmet: empty diagnostics for "main.go"
            
            err:context deadline exceeded
            
            state:
            #### log messages (see RPC logs for full text):
            	Info: "2021/11/30 15:27:36 go env for /ramdisk8GB/workdir...
            	Info: "2021/11/30 15:27:37 go/packages.Load\n\tsnapshot=0...
            	Info: "2021/11/30 15:27:37 discovered missing identifiers...
            
            #### diagnostics:
            	main.go (version 1):
            		(4, 5): canInlineFunction(cost: 76)
            		(5, 13): escape()
            		(5, 13): escape(42 escapes to heap)
            
            #### outstanding work:
            	diagnosing changed files: 0.00
            #### completed work:
            	Load: 1
            	Setting up workspace: 1
            	diagnosing initial workspace load: 1
            	Toggling GC Details: 1
            	diagnosing opened files: 1
        runner.go:312: closing editor: Shutdown: context deadline exceeded
FAIL
FAIL	golang.org/x/tools/gopls/internal/regtest/codelens	105.946s

greplogs --dashboard -md -l -e 'FAIL: TestGCDetails .*\n(?:(?:\s+.*)?\n)*\s+#### outstanding work:\n\s+[^# ]' --since=2021-04-27

2021-11-30T22:42:17-1fd30d2-b7651e5/openbsd-386-70-n2d
2021-11-30T22:42:17-1fd30d2-7ccbcc9/openbsd-386-70-n2d
2021-11-30T20:04:58-2c9b078-7ccbcc9/aix-ppc64
2021-11-30T16:43:31-2c9b078-682435d/openbsd-386-70-n2d
2021-11-29T20:12:13-6e52f51-b7651e5/openbsd-386-70-n2d
2021-11-27T01:14:21-cb80a01-fad67f8/plan9-amd64-0intro
2021-11-25T00:07:28-cb80a01-f7e34e7/openbsd-386-70
2021-08-09T17:59:45-4869184-acbe242/dragonfly-amd64
2021-08-06T19:38:52-d529aec-fa6aa87/dragonfly-amd64
2021-08-04T21:03:22-f367f01-acbe242/dragonfly-amd64
2021-08-04T21:03:22-f367f01-6e73886/dragonfly-amd64
2021-08-04T15:26:45-309db04-6e73886/dragonfly-amd64
2021-08-04T13:50:16-309db04-7921829/dragonfly-amd64
2021-08-04T13:50:16-309db04-16ab7e4/dragonfly-amd64
2021-08-03T20:45:05-2f64839-8a7ee4c/dragonfly-amd64
2021-08-03T19:59:22-32c652e-7921829/dragonfly-amd64
2021-08-03T19:59:22-32c652e-16ab7e4/dragonfly-amd64
2021-08-03T17:18:10-7a2ec09-7921829/dragonfly-amd64
2021-08-03T16:06:16-594b3a2-8a7ee4c/dragonfly-amd64
2021-08-03T16:06:16-594b3a2-7921829/dragonfly-amd64
2021-08-02T22:28:48-3395cb0-818c5f6/dragonfly-amd64
2021-08-02T22:26:52-3395cb0-3d5afa9/dragonfly-amd64
2021-08-02T19:06:04-a668498-8a7ee4c/dragonfly-amd64
2021-07-29T13:34:27-ab1fe72-ed8cbbc/dragonfly-amd64
2021-07-27T22:01:54-07bc1bf-7cd10c1/dragonfly-amd64
2021-07-26T23:46:13-07bc1bf-840e583/dragonfly-amd64
2021-07-26T20:36:31-07bc1bf-ed8cbbc/dragonfly-amd64
2021-07-26T20:36:31-07bc1bf-ecaa681/dragonfly-amd64
2021-07-23T18:10:55-46d1522-0914646/dragonfly-amd64
2021-07-22T17:23:26-c740bfd-c6d89db/dragonfly-amd64
2021-07-22T17:23:26-c740bfd-bc51e93/dragonfly-amd64
2021-07-22T17:13:07-251092d-c6d89db/dragonfly-amd64
2021-07-22T17:01:15-412ee17-fdb45ac/dragonfly-amd64
2021-07-21T23:55:41-412ee17-3e48c03/dragonfly-amd64
2021-07-21T20:52:30-7f68387-3e48c03/dragonfly-amd64
2021-07-21T16:31:48-7aa8294-bc51e93/dragonfly-amd64
2021-07-19T17:27:58-6e9046b-6298cfe/dragonfly-amd64
2021-07-18T21:03:43-6e9046b-a66190e/dragonfly-amd64
2021-07-18T21:00:03-6e9046b-650fc21/dragonfly-amd64
2021-07-15T17:35:20-6e9046b-c1cc9f9/dragonfly-amd64
2021-07-15T13:35:41-6e9046b-21a04e3/dragonfly-amd64
2021-07-13T20:49:08-5061c41-c6d89db/dragonfly-amd64
2021-07-13T20:15:39-ef97713-bc51e93/dragonfly-amd64
2021-07-13T16:40:23-8e85a28-bc51e93/dragonfly-amd64
2021-07-13T13:36:40-d36a54b-c6d89db/dragonfly-amd64
2021-07-13T12:52:46-3844600-a985897/dragonfly-amd64
2021-07-12T21:21:15-ccff732-c6d89db/dragonfly-amd64
2021-07-12T17:19:11-a7dfe3d-c77980b/dragonfly-amd64
2021-07-12T16:18:15-a7dfe3d-3d1d066/dragonfly-amd64
2021-07-12T16:16:36-980829d-ab4085c/dragonfly-amd64
2021-07-12T16:16:36-980829d-3d1d066/dragonfly-amd64
2021-07-10T00:41:40-cb1acef-3d1d066/dragonfly-amd64
2021-07-10T00:32:22-5b540d3-ab4085c/dragonfly-amd64
2021-07-09T17:21:04-8e32e9f-fb052db/dragonfly-amd64
2021-07-09T17:21:04-8e32e9f-3d1d066/dragonfly-amd64
2021-07-08T23:16:08-6994825-3d1d066/dragonfly-amd64
2021-07-08T21:00:45-cae92d5-fb052db/dragonfly-amd64
2021-07-08T21:00:45-cae92d5-296ddf2/dragonfly-amd64
2021-07-08T19:58:23-41a65bd-fb052db/dragonfly-amd64
2021-07-08T19:58:23-41a65bd-3d1d066/dragonfly-amd64
2021-07-08T19:56:07-71eae3a-3d1d066/dragonfly-amd64
2021-07-08T19:56:07-71eae3a-296ddf2/dragonfly-amd64
2021-07-08T19:53:41-c979f92-3d1d066/dragonfly-amd64
2021-07-08T16:45:40-55cd480-0579cf1/dragonfly-amd64
2021-07-08T16:04:41-77c1b7a-cb4cd9e/dragonfly-amd64
2021-07-08T02:47:23-640c1de-b51bf4f/dragonfly-amd64
2021-07-07T22:29:01-fd00574-5c59e11/dragonfly-amd64
2021-07-07T22:27:48-fd00574-11f5df2/dragonfly-amd64
2021-07-07T20:33:11-fd00574-186a3bb/dragonfly-amd64
2021-07-07T20:25:29-fd00574-f264879/dragonfly-amd64
2021-07-07T20:06:16-fd00574-c96833e/dragonfly-amd64
2021-07-02T16:25:10-7edcfe5-6125d0c/dragonfly-amd64
2021-07-02T16:14:50-7edcfe5-b51bf4f/dragonfly-amd64
2021-07-01T19:09:57-20dafe5-03761ed/dragonfly-amd64
2021-07-01T08:39:23-20dafe5-cb4cd9e/dragonfly-amd64
2021-07-01T01:38:42-f0847e0-9d65578/dragonfly-amd64
2021-06-30T22:02:09-f0847e0-4711bf3/dragonfly-amd64
2021-06-28T21:17:28-12f8456-5385e23/dragonfly-amd64
2021-06-24T18:58:27-da404b5-cce6214/dragonfly-amd64
2021-06-24T04:20:31-da404b5-a9bb382/dragonfly-amd64
2021-06-24T04:20:08-4833ac5-0e7012e/dragonfly-amd64
2021-06-22T19:12:15-6d3e439-0e7012e/dragonfly-amd64
2021-06-22T16:07:17-4c651fc-0e7012e/dragonfly-amd64
2021-06-22T11:31:57-d25f906-63daa77/dragonfly-amd64
2021-06-21T17:37:39-d25f906-20bdfba/dragonfly-amd64
2021-06-16T01:01:29-116feae-b4a2af2/dragonfly-amd64
2021-06-10T20:01:45-9aa007e-b4a2af2/dragonfly-amd64
2021-06-09T21:40:20-13cf844-ab7f829/dragonfly-amd64
2021-06-07T15:22:48-126df1d-ab7f829/dragonfly-amd64
2021-06-04T17:45:44-7295a4e-ab7f829/dragonfly-amd64
2021-06-03T18:03:08-8f2cf6c-ab7f829/dragonfly-amd64
2021-06-03T16:41:39-4abb1e2-6b411e9/dragonfly-amd64
2021-06-02T23:08:29-384c392-6b411e9/dragonfly-amd64
2021-05-20T15:46:45-3063790-9636878/linux-arm-scaleway
2021-05-14T16:06:57-09ab05b-44a6805/linux-arm-scaleway
2021-05-11T14:29:16-9cddb0e-07d8cba/linux-arm-scaleway
2021-05-11T14:29:16-9cddb0e-04cd717/linux-arm-scaleway
2021-05-10T23:21:19-fa05545-07d8cba/linux-arm-scaleway
2021-05-10T21:57:30-5a66778-07d8cba/linux-arm-scaleway
2021-05-10T21:56:33-0185c7e-07d8cba/linux-arm-scaleway
2021-05-07T20:56:39-f05e912-07d8cba/linux-arm-scaleway
2021-05-06T14:59:58-d1ea2c7-07d8cba/linux-arm-scaleway
2021-05-05T22:35:07-dd255f2-ba7cac4/linux-arm-scaleway
2021-05-05T21:11:25-68c6cab-ba7cac4/linux-arm-scaleway
2021-05-05T20:44:55-68c6cab-c0a7ecf/linux-arm-scaleway
2021-05-03T18:12:08-a1fbb68-72ccabc/linux-arm-scaleway
2021-05-03T16:38:18-062bf4e-72ccabc/linux-arm-scaleway
2021-04-29T18:45:57-28c1392-72ccabc/linux-arm-scaleway
2021-04-28T19:52:31-16b25d2-5aed4ce/linux-arm-scaleway
2021-04-28T01:46:37-16b25d2-06c9756/linux-arm-scaleway
2021-04-27T19:53:45-d0768c9-06c9756/linux-arm-scaleway
2021-04-27T13:49:53-7b9993c-06c9756/linux-arm-scaleway

CC @findleyr

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Dec 1, 2021
@gopherbot gopherbot added this to the Unreleased milestone Dec 1, 2021
@suzmue suzmue modified the milestones: Unreleased, gopls/unplanned Dec 2, 2021
@bcmills bcmills changed the title x/tools/gopls/internal/regtest/workspace: TestGCDetails timeouts with non-empty outstanding work x/tools/gopls/internal/regtest/codelens: TestGCDetails timeouts with non-empty outstanding work Jan 24, 2022
@gopherbot
Copy link

Change https://golang.org/cl/380496 mentions this issue: gopls/internal/regtest/codelens: use the test's deadline instead of a hard-coded timeout

@bcmills bcmills reopened this Jan 26, 2022
@bcmills bcmills closed this as completed Jan 26, 2022
rinchsan pushed a commit to rinchsan/gosimports that referenced this issue Aug 14, 2022
… hard-coded timeout

We may want to generalize this to have regtest.Run always derive the
default timeout from the test's deadline. In the meantime, this is a
more targeted fix for the specific timeout in TestGCDetails.

Fixes golang/go#49902
(Maybe.)

Change-Id: Ie15735dc7b0d462ec047d3f3d8a2eceeb4411fa0
Reviewed-on: https://go-review.googlesource.com/c/tools/+/380496
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
@golang golang locked and limited conversation to collaborators Aug 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants