Code Monkey home page Code Monkey logo

Comments (10)

kentfredric avatar kentfredric commented on August 24, 2024

As a temporary fix, I've locally modified this line

-      elsif ( $dist and /^Building and testing $dist/) {
+     elsif ( $dist and /^Building and testing (\S+)/) {

Which gets around the no-report issue for me.

I just don't know how reliable that is long-term

from app-cpanminus-reporter.

karenetheridge avatar karenetheridge commented on August 24, 2024

Here's another one that looks to be caused by the same root issue: http://www.cpantesters.org/cpan/report/7fecbb8e-a7df-11e3-a8dc-2015ec1cabe9

from app-cpanminus-reporter.

garu avatar garu commented on August 24, 2024

Hi guys!

@kentfredric 19744be should fix this issue. Could you please check?
@karenetheridge I don't understand... what's wrong with the report you linked?

from app-cpanminus-reporter.

kentfredric avatar kentfredric commented on August 24, 2024

A quick glance says it should solve the /specific/ case above with the vstring. However, I doubt it will solve the generic case, which is that the metadata inside META.json can differ from the name of the tar.gz

Which means I think its quite legal to do:

    foo-bar.tar.gz : {
           'name': 'quux',
           'version': '1.500',
    }

Or similar.

And cpanm reports the string on the tar before it extracts it to get the metadata which gives it the name and version values.

Contrived I know, but there are probably examples.

from app-cpanminus-reporter.

garu avatar garu commented on August 24, 2024

I see. Well, in that case I'm gonna make it more like your original patch. The reason I didn't was mainly because parsing build output text is very fragile, so I wanted to be as close to the example at hand as possible and double check data (like the dist name) whenever possible to avoid runaway logs.

That said, I'm fairly confident the 'Building and testing' string only occurs on cpanm for the innermost dist being installed, so it's safe to process the line without checking the dist name.

I'll add more tests anyway :)

from app-cpanminus-reporter.

kentfredric avatar kentfredric commented on August 24, 2024

I think the thing to lookout for with my change, is the case ether presented, which I believe was caused by my change.

ie: Its reporting HTML-FormHandler to the MooseX-Getopt test report queue

My suspicion is MooseX::Getopt failed somewhere before running HTML::FormHandler

Or some expected line wasn't emitted, which made it think $dist was still MooseX::Getopt... but how that is I don't know.

from app-cpanminus-reporter.

kentfredric avatar kentfredric commented on August 24, 2024

Ok, I've found one example case that really makes cpanm_reporter get confused:

https://metacpan.org/release/PLOCKABY/v1.0.0

$ cpan http://cpan.metacpan.org/authors/id/P/PL/PLOCKABY/v1.0.0.tar.gz
--> Working on http://cpan.metacpan.org/authors/id/P/PL/PLOCKABY/v1.0.0.tar.gz
--> Working on http://cpan.metacpan.org/authors/id/P/PL/PLOCKABY/v1.0.0.tar.gz
Fetching http://cpan.metacpan.org/authors/id/P/PL/PLOCKABY/v1.0.0.tar.gz
Fetching http://cpan.metacpan.org/authors/id/P/PL/PLOCKABY/v1.0.0.tar.gz ... OK
-> OK
Fetching http://cpan.metacpan.org/authors/id/P/PL/PLOCKABY/CHECKSUMS
Fetching http://cpan.metacpan.org/authors/id/P/PL/PLOCKABY/CHECKSUMS ... OK
-> OK
Verifying the signature of CHECKSUMS
random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
secmem usage: 0/32768 bytes in 0 blocks
Verified OK!
Verifying the SHA1 for v1.0.0.tar.gz
Checksum for v1.0.0.tar.gz: Verified!
Unpacking v1.0.0.tar.gz
Entering perl-thread-queue-priority-1.0.0
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.90)
Configuring Thread-Queue-Priority-v1.0.0
Running Makefile.PL
Configuring Thread-Queue-Priority-v1.0.0 ... Generating a Unix-style Makefile
Writing Makefile for Thread::Queue::Priority
Writing MYMETA.yml and MYMETA.json
OK
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.90)
Checking if you have Scalar::Util 1.1 ... Yes (1.38)
Checking if you have threads::shared 1.21 ... Yes (1.46)
Checking if you have Test::More 0.5 ... Yes (1.001002)
Building and testing Thread-Queue-Priority-v1.0.0

Yes:

  1. tarball name doesn't match $distname-$version at all
  2. extracted path doesn't match ^$distname-$version, but instead, perl-$distname-$version
  3. configure produces a 3rd string not seen in either 1 or 2

cpanm-reporter doesn't even see this test and just skips over it, producing not even error messages =)

from app-cpanminus-reporter.

karenetheridge avatar karenetheridge commented on August 24, 2024

@garu what's wrong with the report I linked is it was sent to me labelled as a report for MooseX-Getopt, but the build and test output is all HTML-FormHandler.

from app-cpanminus-reporter.

karenetheridge avatar karenetheridge commented on August 24, 2024

..but now I see that @kentfredric covered that.

from app-cpanminus-reporter.

garu avatar garu commented on August 24, 2024

I am pretty confident this was fixed but we forgot to close it, so I'm going to do it and if the error happens again with cpanm-reporter 0.19 please let me know and we'll work on it.
Thanks!

from app-cpanminus-reporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.