Hi,
Some of the tests fails when running unit tests behind proxy.
1. Error in PMA_Util_Test::testGetLatestVersion
2. Failure in PMA_ConfigTest::testCheckHTTP
The error (1) can be surely avoided if ProxyUrl is properly set. I still
trying to figure out the exact cause of failure, but looks like it is
related to proxy settings.
I could not see example of how to set cfg in `bootstrap.php` for tests.
Also, some of the tests overrides ProxyUrl cfg variable. Any workaround?
Also, how about setting default value of config variable from environmental
variable like http_proxy or similar whenever available in PMA?
Thanks.
--
Nisarg Jhaveri
નિસર્ગ ઝવેરી
See <https://ci.phpmyadmin.net/job/phpMyAdmin-4.4/287/changes>
Changes:
[marc] bug #4972 Incorrect length computed for binary data
------------------------------------------
Started by GitHub push by lem9
[EnvInject] - Loading node environment variables.
Building in workspace <https://ci.phpmyadmin.net/job/phpMyAdmin-4.4/ws/>
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git://github.com/phpmyadmin/phpmyadmin.git # timeout=10
Fetching upstream changes from git://github.com/phpmyadmin/phpmyadmin.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress git://github.com/phpmyadmin/phpmyadmin.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse origin/QA_4_4^{commit} # timeout=10
Checking out Revision 66b4be9b746da0c00d73959be8f892a2a5edbeee (origin/QA_4_4)
> git config core.sparsecheckout # timeout=10
> git checkout -f 66b4be9b746da0c00d73959be8f892a2a5edbeee
> git rev-list b956fe723623f99cc21a608c9cb0ff255ffb8550 # timeout=10
[workspace] $ /bin/sh -xe /tmp/hudson5366997576414752309.sh
+ composer install --dev --no-interaction
You are using the deprecated option "dev". Dev packages are installed by default now.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files
+ ./scripts/generate-mo --quiet
po/pt_BR.po:15959: a format specification for argument 1, as in 'msgstr', doesn't exist in 'msgid'
po/pt_BR.po:16009: a format specification for argument 1, as in 'msgstr', doesn't exist in 'msgid'
msgfmt: found 2 fatal errors
tput: No value for $TERM and no -T specified
Error when compiling po/pt_BR.po
tput: No value for $TERM and no -T specified
Build step 'Execute shell' marked build as failure
[CHECKSTYLE] Skipping publisher since build result is FAILURE
[JSLINT] Skipping publisher since build result is FAILURE
[PMD] Skipping publisher since build result is FAILURE
[DRY] Collecting duplicate code analysis files...
[DRY] Finding all files that match the pattern build/logs/pmd-cpd.xml
[DRY] Parsing 1 file in <https://ci.phpmyadmin.net/job/phpMyAdmin-4.4/ws/>
[DRY] Successfully parsed file <https://ci.phpmyadmin.net/job/phpMyAdmin-4.4/ws/build/logs/pmd-cpd.xml> with 14 unique warnings and 0 duplicates.
[DRY] Computing warning deltas based on reference build #283
[TASKS] Skipping publisher since build result is FAILURE
[ANALYSIS-COLLECTOR] Computing warning deltas based on reference build #283
Recording plot data
Publishing Clover coverage report...
Clover xml file does not exist in: <https://ci.phpmyadmin.net/job/phpMyAdmin-4.4/ws/> called: build/logs/clover.xml and will not be copied to: /var/lib/jenkins/jobs/phpMyAdmin-4.4/builds/287/cloverphp/clover.xml
Could not find 'build/coverage/build/logs/clover.xml'. Did you generate the XML report for Clover?
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing PHPUnit-3.x (default)
[xUnit] [INFO] - [PHPUnit-3.x (default)] - 1 test report file(s) were found with the pattern 'build/logs/junit.xml' relative to '<https://ci.phpmyadmin.net/job/phpMyAdmin-4.4/ws/'> for the testing framework 'PHPUnit-3.x (default)'.
[xUnit] [ERROR] - Test reports were found but not all of them are new. Did all the tests run?
* <https://ci.phpmyadmin.net/job/phpMyAdmin-4.4/ws/build/logs/junit.xml> is 4 days 12 hr old
[xUnit] [INFO] - Failing BUILD.
[xUnit] [INFO] - There are errors when processing test results.
[xUnit] [INFO] - Skipping tests recording.
[xUnit] [INFO] - Stop build.
[JDepend] JDepend plugin is ready
[JDepend] Found 2402 classes in 318 packages
See <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/10002/changes>
Changes:
[marc] Move function definition before function call
------------------------------------------
Started by GitHub push by lem9
[EnvInject] - Loading node environment variables.
Building in workspace <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/>
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git://github.com/phpmyadmin/phpmyadmin.git # timeout=10
Fetching upstream changes from git://github.com/phpmyadmin/phpmyadmin.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress git://github.com/phpmyadmin/phpmyadmin.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 4b936719dd5085536bdd69c0557fdd963ce8860b (origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 4b936719dd5085536bdd69c0557fdd963ce8860b
> git rev-list bde0393fcd2e518da95945a90c9cb4fdfee958f4 # timeout=10
> git tag -a -f -m Jenkins Build #10002 jenkins-phpMyAdmin-continuous-10002 # timeout=10
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Injecting as environment variables the properties content
TESTSUITE_SERVER=localhost
TESTSUITE_USER=pmatest
TESTSUITE_DATABASE=pmatest
TESTSUITE_URL=http://ci-live.phpmyadmin.net/phpMyAdmin-continuous/workspace/
XTESTSUITE_BROWSERSTACK_USER=michaliha
[EnvInject] - Variables injected successfully.
[workspace] $ /bin/sh -xe /tmp/hudson4294435739450368211.sh
+ composer install --dev --no-interaction
You are using the deprecated option "dev". Dev packages are installed by default now.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files
[workspace] $ ant ******** ******** clean locales phpunit-nocoverage phpcpd phpcs phploc jshint jshint-checkstyle
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar
Buildfile: <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build.xml>
clean:
[delete] Deleting directory <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/api>
[delete] Deleting directory <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/code-browser>
[delete] Deleting directory <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/coverage>
[delete] Deleting directory <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/logs>
[delete] Deleting directory <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/pdepend>
[mkdir] Created dir: <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/api>
[mkdir] Created dir: <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/code-browser>
[mkdir] Created dir: <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/coverage>
[mkdir] Created dir: <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/logs>
[mkdir] Created dir: <https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build/pdepend>
locales:
[exec] po/pt_BR.po:16575: a format specification for argument 1, as in 'msgstr', doesn't exist in 'msgid'
[exec] po/pt_BR.po:16625: a format specification for argument 1, as in 'msgstr', doesn't exist in 'msgid'
[exec] msgfmt: found 2 fatal errors
[exec] tput: No value for $TERM and no -T specified
[exec] Error when compiling po/pt_BR.po
[exec] tput: No value for $TERM and no -T specified
BUILD FAILED
<https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/build.xml>:148: exec returned: 1
Total time: 6 seconds
Build step 'Invoke Ant' marked build as failure
[CHECKSTYLE] Skipping publisher since build result is FAILURE
[JSLINT] Skipping publisher since build result is FAILURE
[DRY] Collecting duplicate code analysis files...
[DRY] Finding all files that match the pattern build/logs/pmd-cpd.xml
[DRY] Computing warning deltas based on reference build #10000
[TASKS] Skipping publisher since build result is FAILURE
[ANALYSIS-COLLECTOR] Computing warning deltas based on reference build #10000
Recording plot data
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing PHPUnit-3.x (default)
[xUnit] [INFO] - [PHPUnit-3.x (default)] - No test report file(s) were found with the pattern 'build/logs/junit.xml' relative to '<https://ci.phpmyadmin.net/job/phpMyAdmin-continuous/ws/'> for the testing framework 'PHPUnit-3.x (default)'. Did you enter a pattern relative to the correct directory? Did you generate the result report(s) for 'PHPUnit-3.x (default)'?
[xUnit] [ERROR] - No test reports found for the metric 'PHPUnit' with the resolved pattern 'build/logs/junit.xml'. Configuration error?.
[xUnit] [INFO] - Failing BUILD.
[xUnit] [INFO] - There are errors when processing test results.
[xUnit] [INFO] - Skipping tests recording.
[xUnit] [INFO] - Stop build.
Hi devs,
Recently I was working on refactoring tbl_gis_visualization.php. And I
found it pretty hard to test it out as I'm not familiar with processing GIS
data with MySQL and phpMyAdmin. Any advice for that?
Also, how about providing a general test database with test data? By this
way we can test out our project much easier.
Best regards,
Jason