-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Flaky TestForDeps/loop-matrix test #1819
Comments
Strange, the test uses a Do you know if this can happen in versions prior to 3.39.1 or was it introduced in that version? |
On 3.38.0, running test with -count 100:
On 3.37.0 additionally:
Different subtests, but similar issues. So not introduced in 3.39 |
Thanks for checking. I will investigate |
Just leaving this as a note to myself. This just happened in our CI https://github.com/go-task/task/actions/runs/10962583048/job/30444328303 |
I have a clue as to why this might be happening. I added the following line inside fmt.Fprintln(os.Stderr, "len:", len(p)) When I run the tests, I get this output:
This implies that each call to |
The executor output for parallel task (and dep) execution can come out one character at a time, so even though the tests use `SyncWriter, the writer's lock doesn't prevent interleaving. Using `group` output forces the task output to be buffered and kept together before being printed. Fixes go-task#1819.
The executor output for parallel task (and dep) execution can come out one character at a time, so even though the tests use `SyncWriter, the writer's lock doesn't prevent interleaving. Using `group` output forces the task output to be buffered and kept together before being printed. Fixes go-task#1819.
The executor output for parallel task (and dep) execution can come out one character at a time, so even though the tests use `SyncWriter`, the writer's lock doesn't prevent interleaving. Using `group` output forces the task output to be buffered and kept together before being printed. Fixes go-task#1819.
I'm maintaining the Alpine Linux package for task. While upgrading to 3.39.1 and 3.39.2, the TestForDeps/loop-matrix failed occasionally with:
Retrying the build fixes it. This may indicate some kind of race condition. The failure did happen on somewhat slower arches (armv7, riscv64).
The text was updated successfully, but these errors were encountered: