Skip Menu |

This queue is for tickets about the Module-CPANTS-Analyse CPAN distribution.

Report information
The Basics
Id: 82939
Status: resolved
Priority: 0/
Queue: Module-CPANTS-Analyse

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.86-TRIAL-2
Fixed in: (no value)



Subject: Hash-Randomization causes 10_analyse.t to fail
As I reported here https://rt.cpan.org/Ticket/Display.html?id=82938 on Test-CPAN-Meta-YAML , the order of ->error() is not consistent between runs, and MCA 's tests ( 10_analyse.t )  inherently rely on one specific ordering.

I have extracted the broken parts of 10_analyse.t into a seperate test case that spawns a child perl instance with predetermined seed values to replicate the failure consistently:  https://github.com/kentfredric/Module-CPANTS-Analyse/commit/84e402baa24fffa287ac5c559febf7e38fd5b5d8

 

And to remedy this issue, either a)  Test::CPAN::Meta::YAML needs to change their code to be predictable , or , b) MCA's tests should sort the values returned from ->error() to enforce some testable consistency.


A possible way to solve this problem is just to arbitrarily sort the errors.

https://github.com/kentfredric/Module-CPANTS-Analyse/commit/5cad8d7ef5d5aa4c1398a691c230074a05ccdc42
 
fixed in 0.87