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/test/marker: test holds open temp files after it has finished (windows) #71544

Open
gopherbot opened this issue Feb 3, 2025 · 3 comments
Assignees
Labels
gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@gopherbot
Copy link
Contributor

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/test/marker" && test == "Test/references\\issue59851.txt"

Issue created automatically to collect these failures.

Example (log):

=== RUN   Test/references\issue59851.txt
=== PAUSE Test/references\issue59851.txt
=== CONT  Test/references\issue59851.txt
    testing.go:1232: TempDir RemoveAll cleanup: remove C:\b\s\w\ir\x\t\Testreferencesissue59851.txt4078840582\001\work: The process cannot access the file because it is being used by another process.
--- FAIL: Test/references\issue59851.txt (36.42s)

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Feb 3, 2025
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/test/marker" && test == "Test/references\\issue59851.txt"
2025-02-03 16:44 x_tools-go1.22-windows-amd64-longtest tools@269282df release-branch.go1.22@0cc45e7c x/tools/gopls/internal/test/marker.Test/references\issue59851.txt (log)
=== RUN   Test/references\issue59851.txt
=== PAUSE Test/references\issue59851.txt
=== CONT  Test/references\issue59851.txt
    testing.go:1232: TempDir RemoveAll cleanup: remove C:\b\s\w\ir\x\t\Testreferencesissue59851.txt4078840582\001\work: The process cannot access the file because it is being used by another process.
--- FAIL: Test/references\issue59851.txt (36.42s)

watchflakes

@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 Feb 3, 2025
@gopherbot gopherbot added this to the Unreleased milestone Feb 3, 2025
@adonovan adonovan changed the title x/tools/gopls/internal/test/marker: Test/references\issue59851.txt failures x/tools/gopls/internal/test/marker: test holds open temp files after it has finished (windows) Feb 4, 2025
@adonovan
Copy link
Member

adonovan commented Feb 4, 2025

Related:

These problems seem to predate x/telemetry, so I doubt the telemetry subprocess can be (solely) to blame.

@adonovan adonovan self-assigned this Feb 7, 2025
@gopherbot
Copy link
Contributor Author

Change https://go.dev/cl/647516 mentions this issue: go/packages: add test that go list closes file handles

@jba jba modified the milestones: Unreleased, gopls/v0.18.1 Feb 13, 2025
fredbi added a commit to fredbi/analysis that referenced this issue Mar 11, 2025
* addressed linting issues, especially those related to non-wrapping
  errors: refactored all calls to fmt.Errorf()
* fixes go-openapi#114: unfortunate copy paste typo in mixin.go

* test: worked around go issue on windows: golang/go#71544

Signed-off-by: Frederic BIDON <[email protected]>
fredbi added a commit to go-openapi/analysis that referenced this issue Mar 11, 2025
* addressed linting issues, especially those related to non-wrapping
  errors: refactored all calls to fmt.Errorf()
* fixes #114: unfortunate copy paste typo in mixin.go

* test: worked around go issue on windows: golang/go#71544

Signed-off-by: Frederic BIDON <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
Status: No status
Development

No branches or pull requests

4 participants