-
Notifications
You must be signed in to change notification settings - Fork 22
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
Tests have started to fail with recent versions of Test2-Suite #67
Comments
Hmm, going to need more info on how to reproduce the failure. I just installed the latest Test2::Suite, then Net::Google::Drive::Simple and it installed fine.
The version you mention as the cause added 2 new modules and a couple of exports in Test2::V0. That does not mean it is impossible that it caused the problem, but it does seem unlikely as these tests do not appear to have any conflicts with the new exports (refcount*), and they do use the completely new modules. Nothing else significant changed. I am available and happy to help track this down, specially if it does turn out to be a Test2::Suite problem, but at the moment I cannot reproduce the issue and need more/reliable reproduction steps. |
Thanks, @exodist, for the quick reply; meanwhile I have produced first passes with Test2-Suite-0.000148; the statistics now have no indication anymore what might be to blame; sorry for the noise, we will have to dig deeper. |
@exodist: can you answer the question what needs to be done to have the following line appear in the tests:
? If you can, you may have the answer how to reproduce the fail. My smokers have meanwhile produced 52 fail reports that you should soon all find via the matrix.cpantesters.org. All of the 52 fail reports produced two such "Seeded..." lines. None of the pass reports has such a line. Maybe this is a key to understanding the problem at hand. |
@exodist: I just discovered that all the perls that generated a fail had Devel::MAT::Dumper installed. |
@exodist: between the following two reports I installed Devel::MAT::Dumper; first is a pass, second is a fail: |
ok, the problem seems ot be that if that module is installed and we load it, it produces warnings:
|
This is something that has to be fixed in Devel::MAT::Dumper. As far as I can tell there is no way to hide or suppress these warnings from inside Test2::Suite. I tried this: 29 use constant HAVE_DEVEL_MAT_DUMPER => defined eval {
30 local $SIG{__WARN__} = sub {
31 return if $_[0] =~ m/Devel::MAT::Dumper::HELPER_PER_(MAGIC|PACKAGE) used only once/;
32 warn @_;
33 };
34 require Devel::MAT::Dumper;
35 }; But I still get the warnings. The only way to "fix" this in Test2::Suite would be to remove the feature, but it is already depended on. |
@exodist: thanks for getting back to this. I've forwarded this to the issue tracker of Devel::MAT::Dumper at https://rt.cpan.org/Ticket/Display.html?id=147233 |
Those warnings shouldn't appear unless someone is globally enabling warnings (ie. the Compare:
|
In any case, a simple workaround fix for now is to simply
somewhere in your loading code. But a better fix would be to observe that those variables are all old legacy support for older modules and probably none of those modules exist any more so I could just delete all the associated code anyway. But also you should find out where your |
I did what leonerd suggested and released Test2-Suite version v0.000149 to fix the warnings. |
Sample fail report: http://www.cpantesters.org/cpan/report/88742816-c420-11ed-8c5a-962118a2e227
Statistical analysis of the results of my local smokers:
suggests that Test2::V0 0.000147 is probably a blame spot. @exodist, you may be interested!
The text was updated successfully, but these errors were encountered: