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/internal/imports: TestConcurrentProcess failures #67343

Open
gopherbot opened this issue May 13, 2024 · 2 comments
Open

x/tools/internal/imports: TestConcurrentProcess failures #67343

gopherbot opened this issue May 13, 2024 · 2 comments
Labels
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

#!watchflakes
default <- pkg == "golang.org/x/tools/internal/imports" && test == "TestConcurrentProcess"

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestConcurrentProcess (0.08s)
    --- FAIL: TestConcurrentProcess/Modules (0.04s)
        fix_test.go:2918: /tmp/workdir/tmp/TestConcurrentProcess_Modules607375849/foo.com/p/first.go:1:1: illegal character NUL (and 2 more errors)

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 May 13, 2024
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/internal/imports" && test == "TestConcurrentProcess"
2024-05-10 18:25 freebsd-386-12_3 tools@487737a1 go@0eaf8d97 x/tools/internal/imports.TestConcurrentProcess (log)
--- FAIL: TestConcurrentProcess (0.08s)
    --- FAIL: TestConcurrentProcess/Modules (0.04s)
        fix_test.go:2918: /tmp/workdir/tmp/TestConcurrentProcess_Modules607375849/foo.com/p/first.go:1:1: illegal character NUL (and 2 more errors)

watchflakes

@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label May 13, 2024
@gopherbot gopherbot added this to the Unreleased milestone May 13, 2024
@adonovan
Copy link
Member

This error indicates that the parser saw a NUL byte. Given that the test provides content=nil, that means the parser input was read using os.ReadFile from the file written by packagestest.Export (called from testConfig.test). I can't see how this file could have started with a NUL byte; there doesn't seem to be any opportunity for a race on the file. I wonder whether there's a problem with the builder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

2 participants