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

os: TestPipeEOF failures with "timed out waiting for read" #36107

Closed
bcmills opened this issue Dec 12, 2019 · 7 comments
Closed

os: TestPipeEOF failures with "timed out waiting for read" #36107

bcmills opened this issue Dec 12, 2019 · 7 comments
Assignees
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Testing An issue that has been verified to require only test changes, not just a test failure.
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Dec 12, 2019

#!watchflakes
post <- pkg == "os" && test == "TestPipeEOF" && `timed out waiting for read`

2019-12-12T13:32:03-c39cd41/darwin-amd64-10_14:

--- FAIL: TestPipeEOF (1.08s)
    pipe_test.go:378: line 0
    pipe_test.go:378: line 1
    pipe_test.go:378: line 2
    pipe_test.go:386: timed out waiting for read
FAIL
FAIL	os	2.452s

See previously #35275, which had a very similar failure mode but with an additional file already closed message at the end.

This is the only failure I could find after CL 204800.

CC @ianlancetaylor

@bcmills bcmills added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 12, 2019
@bcmills bcmills added this to the Backlog milestone Dec 12, 2019
@bcmills

This comment has been minimized.

@bcmills bcmills changed the title os: TestPipeEOF failure on darwin-amd64-10_14 builder os: TestPipeEOF failures with "timed out waiting for read" Feb 19, 2021
@bcmills
Copy link
Contributor Author

bcmills commented Dec 13, 2022

@bcmills bcmills added Testing An issue that has been verified to require only test changes, not just a test failure. NeedsFix The path to resolution is known, but the work has not been done. labels Dec 13, 2022
@gopherbot gopherbot removed the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 13, 2022
@ianlancetaylor
Copy link
Contributor

The sleeps come straight from the test case in #24164. I expect it could be written better.

@gopherbot
Copy link

Change https://go.dev/cl/457336 mentions this issue: os: deflake TestPipeEOF

@gopherbot
Copy link

Change https://go.dev/cl/458015 mentions this issue: os: clean up tests

gopherbot pushed a commit that referenced this issue Jan 19, 2023
- Use testenv.Command instead of exec.Command to try to get more
  useful timeout behavior.

- Parallelize tests that appear not to require global state.
  (And add explanatory comments for a few that are not
  parallelizable for subtle reasons.)

- Consolidate some “Helper” tests with their parent tests.

- Use t.TempDir instead of os.MkdirTemp when appropriate.

- Factor out subtests for repeated test helpers.

For #36107.
Updates #22315.

Change-Id: Ic24b6957094dcd40908a59f48e44c8993729222b
Reviewed-on: https://go-review.googlesource.com/c/go/+/458015
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
@golang golang locked and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Testing An issue that has been verified to require only test changes, not just a test failure.
Projects
Status: Done
Development

No branches or pull requests

3 participants