Re: Re: unit tests - 1 fails locally, 38 fail on jenkins

From: Date: Sun, 08 Jan 2012 06:20:50 +0000
Subject: Re: Re: unit tests - 1 fails locally, 38 fail on jenkins
References: 1 2 3  Groups: php.pear.qa 
Request: Send a blank email to [email protected] to get a copy of this message
clockwerx@clockwerx-desktop:~/pear-core$ php -v
PHP 5.3.6-13ubuntu3.3 with Suhosin-Patch (cli) (built: Dec 13 2011
18:37:10)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans


Running https://github.com/CloCkWeRX/pear-core/  locally
gives me: Tests:
719, Assertions: 719, Failures: 28, Skipped: 17.

I'm sure there are a few differences, as I probably stuffed up mergnig and
what have you, or the three extra commits I've applied; but I wouldn't have
expected so many failures.

Going to look a bit further.

There were 28 failures:

1)
/home/clockwerx/pear-core/tests/PEAR_Command_Install/upgrade/test_bug16046.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


2)
/home/clockwerx/pear-core/tests/PEAR_Command_Install/upgrade/test_bug17986.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


3)
/home/clockwerx/pear-core/tests/PEAR_Command_Package/package/test_bug11318.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+Test Failure: "after"
+ in
/home/clockwerx/pear-core/tests/PEAR_Command_Package/package/test_bug11318.php
line 20
+Unthrown error:
+error package: "PEAR_PackageFile_v2"
+message: "Channel validator warning: field "date" - Release Date
"2007-06-14" is not today"
+Unexpected error:
+error package: "PEAR_PackageFile_v2"
+message: "File "./tests/database/DatabaseTest.php" in package.xml does not
exist"
+Unexpected error:
+PEAR_Error:
+message: "Cannot package, errors in package"
+Unexpected error:
+PEAR_Error:
+message: "Cannot package, errors in package"
+
+Fatal error: Call to undefined method PEAR_Error::getNotes() in
/home/clockwerx/pear-core/tests/PEAR_Command_Package/package/test_bug11318.php
on line 35


4) /home/clockwerx/pear-core/tests/PEAR_Command_Pickle/pickle/test.phpt
--- Expected
+++ Actual
@@ @@
+Test Failure: "log"
+ in /home/clockwerx/pear-core/tests/PEAR_Command_Pickle/pickle/test.php
line 72
+
+NOTE: install Text_Diff, then re-run the tests.
+The error output will be much easier to read.
+
+Expecting:
+array (
+  0 =>
+  array (
+    0 => 0,
+    1 => 'WARNING: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+  ),
+  1 =>
+  array (
+    0 => 'Warning: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+    1 => true,
+  ),
+  2 =>
+  array (
+    0 => 'Attempting to process the second package file',
+    1 => true,
+  ),
+  3 =>
+  array (
+    0 => 'Warning: Channel validator warning: field "date" - Release Date
"2005-01-01" is not today',
+    1 => true,
+  ),
+  4 =>
+  array (
+    0 => 'Warning: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+    1 => true,
+  ),
+  5 =>
+  array (
+    0 => 'Package pecl_http-0.16.0.tgz done',
+    1 => true,
+  ),
+  6 =>
+  array (
+    0 => 'Tag the released code with "pear svntag package2.xml"',
+    1 => true,
+  ),
+  7 =>
+  array (
+    0 => '(or set the SVN tag pecl_http-0.16.0 by hand)',
+    1 => true,
+  ),
+)
+Received:
+array (
+  0 =>
+  array (
+    0 => 0,
+    1 => 'WARNING: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+  ),
+  1 =>
+  array (
+    0 => 'Warning: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+    1 => true,
+  ),
+  2 =>
+  array (
+    0 => 'Attempting to process the second package file',
+    1 => true,
+  ),
+  3 =>
+  array (
+    0 => 'Warning: Channel validator warning: field "date" - Release Date
"2005-01-01" is not today',
+    1 => true,
+  ),
+  4 =>
+  array (
+    0 => 'Warning: Channel validator warning: field "providesextension" -
package name "pecl_http" is different from extension name "http"',
+    1 => true,
+  ),
+  5 =>
+  array (
+    0 => 'Package pecl_http-0.16.0.tgz done',
+    1 => true,
+  ),
+)
 tests done


5)
/home/clockwerx/pear-core/tests/PEAR_Command_Remote/list-upgrades/test.phpt
--- Expected
+++ Actual
@@ @@
+Test Failure: "pear log"
+ in
/home/clockwerx/pear-core/tests/PEAR_Command_Remote/list-upgrades/test.php
line 221
+
+NOTE: install Text_Diff, then re-run the tests.
+The error output will be much easier to read.
+
+Expecting:
+array (
+  0 =>
+  array (
+    'info' =>
+    array (
+      'caption' => 'pear.php.net Available Upgrades (stable):',
+      'border' => 1,
+      'headline' =>
+      array (
+        0 => 'Channel',
+        1 => 'Package',
+        2 => 'Local',
+        3 => 'Remote',
+        4 => 'Size',
+      ),
+      'channel' => 'pear.php.net',
+      'data' =>
+      array (
+        0 =>
+        array (
+          0 => 'pear.php.net',
+          1 => 'Archive_Zip',
+          2 => '1.0.0 (stable)',
+          3 => '2.0.5 (stable)',
+          4 => '22907022kB',
+        ),
+      ),
+    ),
+    'cmd' => 'list-upgrades',
+  ),
+)
+Received:
+array (
+  0 =>
+  array (
+    'info' =>
+    array (
+      'caption' => 'pear.php.net Available Upgrades (stable):',
+      'border' => 1,
+      'headline' =>
+      array (
+        0 => 'Channel',
+        1 => 'Package',
+        2 => 'Local',
+        3 => 'Remote',
+        4 => 'Size',
+      ),
+      'channel' => 'pear.php.net',
+      'data' =>
+      array (
+        0 =>
+        array (
+          0 => 'pear.php.net',
+          1 => 'Archive_Zip',
+          2 => '1.0.0 (stable)',
+          3 => '2.0.5 (stable)',
+          4 => '22907021kB',
+        ),
+      ),
+    ),
+    'cmd' => 'list-upgrades',
+  ),
+)
 tests done


6) /home/clockwerx/pear-core/tests/PEAR_Config/test_getFTP.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


7) /home/clockwerx/pear-core/tests/PEAR_Config/test_readFTPConfigFile.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


8)
/home/clockwerx/pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+Test Failure: "no net_ftp"
+ in
/home/clockwerx/pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.php
line 19
+No errors caught, but errors were expected
+
+ ** ERROR: process timed out **


9)
/home/clockwerx/pear-core/tests/PEAR_Installer/test_install_simplelocalpackage_ftp.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


10)
/home/clockwerx/pear-core/tests/PEAR_Installer/test_uninstall_simplelocalpackage_ftp.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+** ERROR: process timed out **


11) /home/clockwerx/pear-core/tests/PEAR_Validate/bug17744.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


12) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validGroupName.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


13) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validPackageName.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


14) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validVersion.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


15) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_date.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


16)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_packagename.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


17)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_stability.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


18) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_state.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


19) /home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_time.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


20)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_version_devel.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


21)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionbasic.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


22)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionbasic_alpha.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


23)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionbasic_beta.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


24)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionbasic_stable.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


25)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionextends_alpha.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


26)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionextends_beta.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


27)
/home/clockwerx/pear-core/tests/PEAR_Validate/test_validate_versionextends_stable.phpt
--- Expected
+++ Actual
@@ @@
-tests done
+stests done


28) /home/clockwerx/pear-core/tests/System/test_which.phpt
--- Expected
+++ Actual
@@ @@
 Testing: which
+System::which('ls') 1 failed
+string(7) "/bin/ls"
+bool(false)
 end


FAILURES!
Tests: 719, Assertions: 719, Failures: 28, Skipped: 17.

Writing code coverage data to XML file, this may take a moment.PHP Notice:
 Undefined offset: 80 in /usr/share/php/PHP/Token/Stream.php on line 534
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
PHP   3. PHPUnit_TextUI_Command->run()
/usr/share/php/PHPUnit/TextUI/Command.php:125
PHP   4. PHPUnit_TextUI_TestRunner->doRun()
/usr/share/php/PHPUnit/TextUI/Command.php:187
PHP   5. PHP_CodeCoverage_Report_Clover->process()
/usr/share/php/PHPUnit/TextUI/TestRunner.php:352
PHP   6. PHP_CodeCoverage->getReport()
/usr/share/php/PHP/CodeCoverage/Report/Clover.php:85
PHP   7. PHP_CodeCoverage_Report_Factory->create()
/usr/share/php/PHP/CodeCoverage.php:141
PHP   8. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:76
PHP   9. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP  10. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP  11. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP  12. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP  13. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP  14. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
PHP  15. PHP_CodeCoverage_Report_Node_Directory->addFile()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:92
PHP  16. PHP_CodeCoverage_Report_Node_File->__construct()
/usr/share/php/PHP/CodeCoverage/Report/Node/Directory.php:211
PHP  17. PHP_CodeCoverage_Util::getLinesToBeIgnored()
/usr/share/php/PHP/CodeCoverage/Report/Node/File.php:166
PHP  18. PHP_Token_Stream->getClasses()
/usr/share/php/PHP/CodeCoverage/Util.php:259
PHP  19. PHP_Token_Stream->parse() /usr/share/php/PHP/Token/Stream.php:249
PHP  20. PHP_Token_INTERFACE->getInterfaces()
/usr/share/php/PHP/Token/Stream.php:396
PHP  21. PHP_Token_INTERFACE->hasInterfaces()
/usr/share/php/PHP/Token.php:591
PHP  22. PHP_Token_Stream->offsetGet() /usr/share/php/PHP/Token/Stream.php:0

Notice: Undefined offset: 80 in /usr/share/php/PHP/Token/Stream.php on line
534

Call Stack:
    0.0003     327668   1. {main}() /usr/bin/phpunit:0
    0.0312     705908   2. PHPUnit_TextUI_Command::main()
/usr/bin/phpunit:46
    0.0312     706396   3. PHPUnit_TextUI_Command->run()
/usr/share/php/PHPUnit/TextUI/Command.php:125
    0.5128    4259804   4. PHPUnit_TextUI_TestRunner->doRun()
/usr/share/php/PHPUnit/TextUI/Command.php:187
 1499.3018  109997928   5. PHP_CodeCoverage_Report_Clover->process()
/usr/share/php/PHPUnit/TextUI/TestRunner.php:352
 1499.3020  109998984   6. PHP_CodeCoverage->getReport()
/usr/share/php/PHP/CodeCoverage/Report/Clover.php:85
 1499.3130  110036040   7. PHP_CodeCoverage_Report_Factory->create()
/usr/share/php/PHP/CodeCoverage.php:141
 1499.4361  112145648   8. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:76
 1499.4362  112148704   9. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
 1499.4363  112151524  10. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
 1499.4364  112154344  11. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
 1529.3060  328232244  12. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
 1531.5252  340046856  13. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
 1531.5253  340050332  14. PHP_CodeCoverage_Report_Factory->addItems()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:95
 1531.5253  340050656  15.
PHP_CodeCoverage_Report_Node_Directory->addFile()
/usr/share/php/PHP/CodeCoverage/Report/Factory.php:92
 1531.5253  340052604  16. PHP_CodeCoverage_Report_Node_File->__construct()
/usr/share/php/PHP/CodeCoverage/Report/Node/Directory.php:211
 1531.5253  340053000  17. PHP_CodeCoverage_Util::getLinesToBeIgnored()
/usr/share/php/PHP/CodeCoverage/Report/Node/File.php:166
 1531.5288  340112716  18. PHP_Token_Stream->getClasses()
/usr/share/php/PHP/CodeCoverage/Util.php:259
 1531.5289  340112716  19. PHP_Token_Stream->parse()
/usr/share/php/PHP/Token/Stream.php:249
 1531.5307  340117564  20. PHP_Token_INTERFACE->getInterfaces()
/usr/share/php/PHP/Token/Stream.php:396
 1531.5307  340117564  21. PHP_Token_INTERFACE->hasInterfaces()
/usr/share/php/PHP/Token.php:591
 1531.5307  340117608  22. PHP_Token_Stream->offsetGet()
/usr/share/php/PHP/Token/Stream.php:0



Generating code coverage report, this may take a moment.PHP Warning:
 file_get_contents(/tmp/pear-core-test/Tester.php): failed to open stream:
No such file or directory in
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php on line 475
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
PHP   3. PHPUnit_TextUI_Command->run()
/usr/share/php/PHPUnit/TextUI/Command.php:125
PHP   4. PHPUnit_TextUI_TestRunner->doRun()
/usr/share/php/PHPUnit/TextUI/Command.php:187
PHP   5. PHP_CodeCoverage_Report_HTML->process()
/usr/share/php/PHPUnit/TextUI/TestRunner.php:373
PHP   6. PHP_CodeCoverage_Report_HTML_Renderer_File->render()
/usr/share/php/PHP/CodeCoverage/Report/HTML.php:180
PHP   7. PHP_CodeCoverage_Report_HTML_Renderer_File->renderSource()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:124
PHP   8. PHP_CodeCoverage_Report_HTML_Renderer_File->loadFile()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:348
PHP   9. file_get_contents()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:475

Warning: file_get_contents(/tmp/pear-core-test/Tester.php): failed to open
stream: No such file or directory in
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php on line 475

Call Stack:
    0.0003     327668   1. {main}() /usr/bin/phpunit:0
    0.0312     705908   2. PHPUnit_TextUI_Command::main()
/usr/bin/phpunit:46
    0.0312     706396   3. PHPUnit_TextUI_Command->run()
/usr/share/php/PHPUnit/TextUI/Command.php:125
    0.5128    4259804   4. PHPUnit_TextUI_TestRunner->doRun()
/usr/share/php/PHPUnit/TextUI/Command.php:187
 1542.6042  369584880   5. PHP_CodeCoverage_Report_HTML->process()
/usr/share/php/PHPUnit/TextUI/TestRunner.php:373
 1597.7463  370064672   6.
PHP_CodeCoverage_Report_HTML_Renderer_File->render()
/usr/share/php/PHP/CodeCoverage/Report/HTML.php:180
 1597.7465  370068972   7.
PHP_CodeCoverage_Report_HTML_Renderer_File->renderSource()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:124
 1597.7466  370069520   8.
PHP_CodeCoverage_Report_HTML_Renderer_File->loadFile()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:348
 1597.7466  370069564   9. file_get_contents()
/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/File.php:475


Thread (6 messages)

« previous php.pear.qa (#6011) next »