{"id":960,"date":"2022-08-30T15:10:03","date_gmt":"2022-08-30T15:10:03","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/hudson-failing-build-w-o-revealing-cause-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:10:03","modified_gmt":"2022-08-30T15:10:03","slug":"hudson-failing-build-w-o-revealing-cause-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/hudson-failing-build-w-o-revealing-cause-collection-of-common-programming-errors\/","title":{"rendered":"Hudson failing build w\/o revealing cause-Collection of common programming errors"},"content":{"rendered":"<p>Every build has failed as of Tuesday. I&#8217;m not exactly sure what happened. The Phing targets (clean\/prepare) are being executed properly. Additionally, the unit tests are passing with flying colors, with only a warning for duplicate code (not a reason for a fail). I tried removing the phpDoc target to see if that was causing the error, but the build still failed.<\/p>\n<blockquote>\n<p>Started by user chris Updating file:\/\/localhost\/projects\/svn\/ips-com\/trunk At revision 234 no change for file:\/\/localhost\/projects\/svn\/ips-com\/trunk since the previous build [trunk] $ \/opt\/phing\/bin\/phing clean prepare -logger phing.listener.NoBannerLogger Buildfile: \/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/trunk\/build.xml<\/p>\n<p>IPS &gt; clean:<\/p>\n<pre><code> [echo] Clean...    [delete] Deleting directory\n<\/code><\/pre>\n<p>\/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/build<\/p>\n<p>IPS &gt; prepare:<\/p>\n<pre><code> [echo] Prepare...\n[mkdir] Created dir: \/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/build\n[mkdir] Created dir: \/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/build\/logs\n[mkdir] Created dir: \/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/build\/logs\/coverage\n[mkdir] Created dir: \/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/build\/logs\/coverage-html\n[mkdir] Created dir: \/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/build\/docs\n[mkdir] Created dir: \/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/build\/app\n<\/code><\/pre>\n<p>BUILD FINISHED<\/p>\n<p>Total time: 1.0244 second<\/p>\n<p>[workspace] $ \/bin\/bash -xe \/tmp\/hudson3259012225710915845.sh + cd trunk\/tests + \/usr\/local\/bin\/phpunit &#8211;verbose -d memory_limit=512M &#8211;log-junit ..\/..\/build\/logs\/phpunit.xml &#8211;coverage-clover ..\/..\/build\/logs\/coverage\/clover.xml &#8211;coverage-html ..\/..\/build\/logs\/coverage-html\/ PHPUnit 3.5.0 by Sebastian Bergmann.<\/p>\n<p>IPS Default_IndexControllerTest .<\/p>\n<p>Default_AuthControllerTest &#8230;&#8230;<\/p>\n<p>Manage_UsersControllerTest &#8230;..<br \/>\ntestDeleteInvalidUserId .. testGetPermissionsForInvalidUserId .. Audit_OverviewControllerTest &#8230;&#8230;&#8230;&#8230;<\/p>\n<p>Time: 14 seconds, Memory: 61.00Mb<\/p>\n<p>[30;42m[2KOK (28 tests, 198 assertions) [0m[2K Writing code coverage data to XML file, this may take a moment.<\/p>\n<p>Generating code coverage report, this may take a moment.<\/p>\n<p>Warning: Unknown: Error occured while closing statement in Unknown on line 0<\/p>\n<p>Warning: Unknown: Error occured while closing statement in Unknown on line 0<\/p>\n<p>Warning: Unknown: Error occured while closing statement in Unknown on line 0<\/p>\n<p>Warning: Unknown: Error occured while closing statement in Unknown on line 0<\/p>\n<p>Warning: Unknown: Error occured while closing statement in Unknown on line 0<\/p>\n<p>Warning: Unknown: Error occured while closing statement in Unknown on line 0<\/p>\n<p>Warning: Unknown: Error occured while closing statement in Unknown on line 0<\/p>\n<p>Warning: Unknown: Error occured while closing statement in Unknown on line 0 [workspace] $ \/bin\/bash -xe \/tmp\/hudson1439023061736436000.sh + \/usr\/local\/bin\/phpcpd &#8211;log-pmd .\/build\/logs\/cpd.xml .\/trunk phpcpd 1.3.2 by Sebastian Bergmann.<\/p>\n<p>Found 1 exact clones with 6 duplicated lines in 2 files:<\/p>\n<ul>\n<li>library\/Ips\/Form\/Decorator\/SplitInput.php:8-14 library\/Ips\/Form\/Decorator\/FeetInches.php:10-16<\/li>\n<\/ul>\n<p>0.04% duplicated lines out of 16585 total lines of code.<\/p>\n<p>Time: 4 seconds, Memory: 19.50Mb [DRY] Skipping publisher since build result is FAILURE Publishing Javadoc [xUnit] [INFO] &#8211; Starting to record. [xUnit] [WARNING] &#8211; Can&#8217;t create the path \/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/generatedJUnitFiles. Maybe the directory already exists. [xUnit] [INFO] &#8211; Processing PHPUnit-3.4 (default) [xUnit] [INFO] &#8211; [PHPUnit-3.4 (default)] &#8211; 1 test report file(s) were found with the pattern &#8216;build\/logs\/phpunit.xml&#8217; relative to &#8216;\/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace&#8217; for the testing framework &#8216;PHPUnit-3.4 (default)&#8217;. [xUnit] [INFO] &#8211; Converting &#8216;\/var\/lib\/hudson\/.hudson\/jobs\/IPS\/workspace\/build\/logs\/phpunit.xml&#8217; . [xUnit] [INFO] &#8211; Stopping recording. Publishing Clover coverage report&#8230; Publishing Clover XML report&#8230; Publishing Clover coverage results&#8230; Finished: FAILURE<\/p>\n<\/blockquote>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:07:21. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Every build has failed as of Tuesday. I&#8217;m not exactly sure what happened. The Phing targets (clean\/prepare) are being executed properly. Additionally, the unit tests are passing with flying colors, with only a warning for duplicate code (not a reason for a fail). I tried removing the phpDoc target to see if that was causing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-960","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=960"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/960\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}