-
Notifications
You must be signed in to change notification settings - Fork 26
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
yath hangs at end of tests prior to summary. #253
Comments
Bisects to:
|
Reverting this on master is complicated. I'm trying to figure out what that would look like so I can test if this would fix the problem. |
I've tried to minimize the arguments that are causing this and it boils down to calling yath like this.
I have to call it with |
If I give both tests in question # HARNESS-NO-STREAM, the problem goes away. |
The part of the commit that seems to have caused the problem is diff --git a/lib/Test2/Harness/Collector.pm b/lib/Test2/Harness/Collector.pm
index eb411880..f7dec725 100644
--- a/lib/Test2/Harness/Collector.pm
+++ b/lib/Test2/Harness/Collector.pm
@@ -73,11 +73,7 @@ sub process {
$count += $e_count;
next if $e_count;
- my $done = $jdir->done;
- unless ($done) {
- $count++;
- next;
- }
+ my $done = $jdir->done or next;
delete $jobs->{$job_try};
unless ($self->settings->debug->keep_dirs) {
Without a deeper understanding, I'm not sure about reverting this on master |
Given collector seems to be the thing taking up CPU time, it this certainly seems to be the offender. However when reversing this patch on master, it does not fix the problem :\ |
Do you have a reproduction case that you can share? Or is it too complex? As for that line, my guess is your bisect found a different commit that leads to tests not completing. I know there have a been a few commits in history that break it. Your patch probably does not work for master because you found an already fixed case. |
As best we could tell, the issue in the offending tests is they were trying to open ports to find an open one. We stopped doing that. |
I just upgraded from 1.000038 to 1.000124 and now I'm seeing an issue where the 8 minute run will hang right at the end after it has run all tests. When you look for sub processes, you can see
yath-collector
's CPU time is going up if you monitor it.The text was updated successfully, but these errors were encountered: