Re: [PEAR-QA] Re: [PEAR-CORE] unit tests - 1 fails locally, 38 fail on jenkins

[email protected] ("Daniel O'Connor") Sun, 8 Jan 2012 14:36:26 +1030
Newsgroups php.pear.qa,php.pear.core
Message-ID <CAJsZyFDs9yzpo25ohWktM85e1h=YYOymjS-eWWmf0FVGaPYsKA@mail.gmail.com>
--f46d041b47b2ef540504b5fc67d4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

How to run this on jenkins:

1) Login with your github credentials. If you are associated publically
with the pear repository, it should grant all of the rights to start
builds/etc. This should enable "build now".
Taking a look at the console output will show you the exact commands being
run.

99% of the time this is enough.

2) If that doesn't help,
ssh test.pear.php.net;
sudo -s
su jenkins
cd ~/jobs/pear-core
# run the unit tests however the build is doing
phpunit tests/ or pear run-tests -r



2012/1/8 Helgi =DEormar =DEorbj=F6rnsson <[email protected]>

> On 7 Jan 2012, at 16:03, Daniel Convissor wrote:
>
> > Hi Folks:
> >
> > I've done some more work on the pear-core unit tests.
> >
> > There is one test that fails when I run it locally:
> >       tests/PEAR_Command_Pickle/pickle/test.phpt
> >
> > The difference is the following element is missing from the actual
> output:
> >       Tag the released code with "pear svntag package2.xml"
> >
> > I'm guessing it may have to do with pear-core now being in git rather
> > than svn.
> >
> >
> > Beyond that, there are 37 other unit tests that run fine via
> > "phpunit -d error_reporting=3D22527 tests" on my local machine but are
> > failing on the Jenkins server.  See the list at:
> > http://test.pear.php.net:8080/job/PEAR/18/testReport/
> >
> > Can someone with more knowledge of pear-core's workings please take a
> > look at these 38 tests?
>
> I can try to look at that soon but if someone gets there before me, that'=
s
> fine! I'm heading to the US next week so I'm not 100% sure of how much ti=
me
> I have in the next few days.
>
> How do I run things on the Jenkins server? Could be hard to debug if I
> can't get them to fail locally (seems you have that problem right now)
> Is there a way for me to either go on the server to run the outputted .ph=
p
> files by hand (and to edit them) or can I fetch them somehow from the
> Jenkins interface?
>
> Taking a quick peak at the results, the top 3 have an issue with the temp
> dir, and actually a few others in between... maybe related to your recent
> commit of sys get temp dir?
> I have not had time to review that patch fully but maybe dirname(__FILE__=
)
> or so was not only being used for tmp directory purposes but also to link
> to package files and tgz - I am seeing a good few tests failing due to
> invalid package files.
>
> Temp problems:
>
> http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_l=
ib_jenkins_workspace_PEAR_tests_PEAR_Command_Mirror_download_all_test_norma=
l_channel_rest_phpt/
>
> http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_l=
ib_jenkins_workspace_PEAR_tests_PEAR_PackageFile_Generator_v2_toTgz2_test_e=
xtsrc_phpt/
>
> Example of invalid package where it shouldn't have been:
>
> http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_l=
ib_jenkins_workspace_PEAR_tests_PEAR_PackageFile_Generator_v2_toTgz2_test_f=
ail_phpt/
>
> http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_l=
ib_jenkins_workspace_PEAR_tests_PEAR_Dependency2_test_checkPackageDependenc=
y_PEAR_url_phpt/
>
>
> http://test.pear.php.net:8080/job/PEAR/18/testReport/(root)/tests_/_var_l=
ib_jenkins_workspace_PEAR_tests_PEAR_Command_Package_package_test_bug11318_=
phpt/
> This one is just odd... getNotes? Lacking a PEAR::isError somewhere in th=
e
> test it self.
>
> - Helgi
> --
> PEAR QA Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--f46d041b47b2ef540504b5fc67d4--