zend framework - Hudson failing build w/o revealing cause -
every build has failed of tuesday. i'm not sure happened. phing targets (clean/prepare) being executed properly. additionally, unit tests passing flying colors, warning duplicate code (not reason fail). tried removing phpdoc target see if causing error, build still failed.
started user chris updating file://localhost/projects/svn/ips-com/trunk @ revision 234 no change file://localhost/projects/svn/ips-com/trunk since previous build [trunk] $ /opt/phing/bin/phing clean prepare -logger phing.listener.nobannerlogger buildfile: /var/lib/hudson/.hudson/jobs/ips/workspace/trunk/build.xml
ips > clean:
[echo] clean... [delete] deleting directory
/var/lib/hudson/.hudson/jobs/ips/workspace/build
ips > prepare:
[echo] prepare... [mkdir] created dir: /var/lib/hudson/.hudson/jobs/ips/workspace/build [mkdir] created dir: /var/lib/hudson/.hudson/jobs/ips/workspace/build/logs [mkdir] created dir: /var/lib/hudson/.hudson/jobs/ips/workspace/build/logs/coverage [mkdir] created dir: /var/lib/hudson/.hudson/jobs/ips/workspace/build/logs/coverage-html [mkdir] created dir: /var/lib/hudson/.hudson/jobs/ips/workspace/build/docs [mkdir] created dir: /var/lib/hudson/.hudson/jobs/ips/workspace/build/app
build finished
total time: 1.0244 second
[workspace] $ /bin/bash -xe /tmp/hudson3259012225710915845.sh + cd trunk/tests + /usr/local/bin/phpunit --verbose -d memory_limit=512m --log-junit ../../build/logs/phpunit.xml --coverage-clover ../../build/logs/coverage/clover.xml --coverage-html ../../build/logs/coverage-html/ phpunit 3.5.0 sebastian bergmann.
ips default_indexcontrollertest .
default_authcontrollertest ......
manage_userscontrollertest .....
testdeleteinvaliduserid .. testgetpermissionsforinvaliduserid .. audit_overviewcontrollertest ............time: 14 seconds, memory: 61.00mb
[30;42m[2kok (28 tests, 198 assertions) [0m[2k writing code coverage data xml file, may take moment.
generating code coverage report, may take moment.
warning: unknown: error occured while closing statement in unknown on line 0
warning: unknown: error occured while closing statement in unknown on line 0
warning: unknown: error occured while closing statement in unknown on line 0
warning: unknown: error occured while closing statement in unknown on line 0
warning: unknown: error occured while closing statement in unknown on line 0
warning: unknown: error occured while closing statement in unknown on line 0
warning: unknown: error occured while closing statement in unknown on line 0
warning: unknown: error occured while closing statement in unknown on line 0 [workspace] $ /bin/bash -xe /tmp/hudson1439023061736436000.sh + /usr/local/bin/phpcpd --log-pmd ./build/logs/cpd.xml ./trunk phpcpd 1.3.2 sebastian bergmann.
found 1 exact clones 6 duplicated lines in 2 files:
- library/ips/form/decorator/splitinput.php:8-14 library/ips/form/decorator/feetinches.php:10-16
0.04% duplicated lines out of 16585 total lines of code.
time: 4 seconds, memory: 19.50mb [dry] skipping publisher since build result failure publishing javadoc [xunit] [info] - starting record. [xunit] [warning] - can't create path /var/lib/hudson/.hudson/jobs/ips/workspace/generatedjunitfiles. maybe directory exists. [xunit] [info] - processing phpunit-3.4 (default) [xunit] [info] - [phpunit-3.4 (default)] - 1 test report file(s) found pattern 'build/logs/phpunit.xml' relative '/var/lib/hudson/.hudson/jobs/ips/workspace' testing framework 'phpunit-3.4 (default)'. [xunit] [info] - converting '/var/lib/hudson/.hudson/jobs/ips/workspace/build/logs/phpunit.xml' . [xunit] [info] - stopping recording. publishing clover coverage report... publishing clover xml report... publishing clover coverage results... finished: failure
what changed since tuesday? try manually run same commands hudson tries run same directory hudson starts (usually jobs workspace directory). of course user account hudson started under.
there several possibilities. ranging standard groups directory, permission, or other things outside of hudson. hudson upgraded? plugin upgraded? os or php upgraded? there change in default or user .profile or .env (or equivalent files)? process accesses workspace? ......
once had problem of sudden deployment scripts did not run anymore. mystery was, still run script command line hudson user account. reason simple took while uncover. there java upgrade 5 6. both versions available. after comparing environment variables, there difference in path. problem new path set in global .profile. hudson not open interactive shell, therefore .profile not executed. if have problem this, can put initialization in .env file (or whatever filename system), because run regardless if interactive shell or not. alternatively can configure hudson set on master or node/slave level.
Comments
Post a Comment