Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 37445
Status: open
Priority: 0/
Queue: CPAN

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

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



Subject: Problem with trust_test_report_history
Hello Andreas. There's a problem with installing module which doesn't have prerequisites installed but pass all its tests, when trust_test_report_history is in effect. First time you run "cpan Some::Module", cpan runs Makefile.PL, notes that prerequisites are missing, then run "make", "make test", but even if tests are ok, skip "make install" because of prerequisites missing. CPAN::Reporter sends "pass" report anyway because tests are successful. Next time you run "cpan Some::Module" (or even if Some::Module is a prerequisite for another module), cpan takes a look into report database, and run "make install" despite the fact that prerequisite is still missing. Similar problem may appear when somebody run "test Some::Module", remove some prerequisites and run "install Some::Module", though I'm not sure how correct it is from "user sanity" perspective. -- Serguei Trouchelle
Subject: Re: [rt.cpan.org #37445] Problem with trust_test_report_history
Date: Sun, 06 Jul 2008 11:41:07 +0200
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.7os6VVqR [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
> Similar problem may appear when somebody run "test Some::Module", remove > some prerequisites and run "install Some::Module", though I'm not sure > how correct it is from "user sanity" perspective.
You are right, currently there is no sane relation between testing and installing in CPAN.pm. Best bet is to either never test, only install or the other way round. Or to turn off things like build_dir_reuse and trust_test_report_history. David Golden recently wrote a summary which seems to name the missing links, I repeat it here: * under "install", all 'requires' must be satisfied without adding build directories to PERL5LIB or else they need to be queued. All "build_requires" must be satisfied including build directories or they need to be queued. * under "test/make", "requires" or "build_requires" must be satisfied including build directories or they need to be queued -- andreas
CC: undisclosed-recipients:;
Subject: Re: [rt.cpan.org #37445] Problem with trust_test_report_history
Date: Sun, 06 Jul 2008 11:40:59 +0200
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.7os6VVqR [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
> Similar problem may appear when somebody run "test Some::Module", remove > some prerequisites and run "install Some::Module", though I'm not sure > how correct it is from "user sanity" perspective.
You are right, currently there is no sane relation between testing and installing in CPAN.pm. Best bet is to either never test, only install or the other way round. Or to turn off things like build_dir_reuse and trust_test_report_history. David Golden recently wrote a summary which seems to name the missing links, I repeat it here: * under "install", all 'requires' must be satisfied without adding build directories to PERL5LIB or else they need to be queued. All "build_requires" must be satisfied including build directories or they need to be queued. * under "test/make", "requires" or "build_requires" must be satisfied including build directories or they need to be queued -- andreas
Subject: Re: [rt.cpan.org #37445] Problem with trust_test_report_history
Date: Sun, 6 Jul 2008 08:42:20 -0400
To: bug-CPAN [...] rt.cpan.org
From: "David Golden" <dagolden [...] cpan.org>
On Sun, Jul 6, 2008 at 5:40 AM, (Andreas J. Koenig) via RT <bug-CPAN@rt.cpan.org> wrote: Show quoted text
> David Golden recently wrote a summary which seems to name the missing > links, I repeat it here: > > * under "install", all 'requires' must be satisfied without adding > build directories to PERL5LIB or else they need to be queued. All > "build_requires" must be satisfied including build directories or they > need to be queued. > > * under "test/make", "requires" or "build_requires" must be satisfied > including build directories or they need to be queued
Just to be clear, I think this issue is caused by "build_dir_reuse", not "trust_test_report_history". The former is what assumes things are OK to proceed based on Makefile.PL running OK sometime in the past without regard for the current state of dependencies. However, the latter skips the tests that would reveal the problems with the former. -- David