Skip Menu |

This queue is for tickets about the BackPAN-Index CPAN distribution.

Report information
The Basics
Id: 82107
Status: resolved
Priority: 0/
Queue: BackPAN-Index

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Test suite fails since 2012-10-08
Looking at http://matrix.cpantesters.org/?dist=BackPAN-Index%200.40;reports=1;sort=-fulldate;sort=action it seems that there's no successful test report since 2012-10-08. Regards, Slaven
On 2012-12-19 11:33:23, SREZIC wrote: Show quoted text
> Looking at > http://matrix.cpantesters.org/?dist=BackPAN- > Index%200.40;reports=1;sort=-fulldate;sort=action > it seems that there's no successful test report since 2012-10-08. >
The fail looks like this: t/as_hash.t ........................ 1/? # Failed test at t/as_hash.t line 21. # Structures begin differing at: # $got->{first_release} = 'authors/id/G/GE/GEOTIGER/DataFax-StudySubs-0.10.tar.gz' # $expected->{first_release} = 'DataFax-StudySubs-0.10' ... t/as_hash.t ........................ 1/? # Failed test at t/as_hash.t line 21. # Structures begin differing at: # $got->{first_release} = 'authors/id/H/HA/HANK/Form-Processor-Model-CDBI-0.03.tar.gz' # $expected->{first_release} = 'Form-Processor-Model-CDBI-0.03' ... So instead of a short CPAN distribution name a long one, starting with authors and with a suffix, is returned now. Regards, Slaven
Looking into it, the issue is $dist->first_release is coming back as a string when it should be coming back as a BackPAN::Index::Release object.  $dist->latest_release, $first_release and $latest_release are all correctly coming back as objects.

There is a $dist->first_releases method which is returning the correct object, but no $dist->latest_releases.  There's no mention of it in the code, so it could be a mistake in our schema, or our DBIC schema or a DBIx::Class::Schema::Loader bug.
Turns out its a Linuga::EN::Inflect::Phrase bug.  Worked around it and reported it upstream.
https://github.com/acme/parse-backpan-packages/commit/3988f08c9f43fc83ff00f143124b36cf09918a56