phpunit-test-runner
phpunit-test-runner copied to clipboard
Error: Error uploading results: Invalid parameter(s): results (HTTP status 400) - User: rocketdotnetbot
php test.php ran successfully but running php report.php is currently giving this issue. Can anyone help out?
[abc@abc phpunit-test-runner]$ php report.php
Environment variables pass checks.
Getting SVN Revision
Getting SVN message
Copying junit.xml results
rsync -r '/home/abc/public_html/rocketdotnet/wptestrunner/phpunit-test-runner'/tests/phpunit/build/logs/* '/home/abc/public_html/rocketdotnet/wptestrunner/phpunit-test-runner'
Processing and uploading junit.xml
Error: Error uploading results: Invalid parameter(s): results (HTTP status 400)
[abc@abc phpunit-test-runner]$
Have you added the App-Secret correctly?
@pfefferle Yes it has been added in the .env file:
# API key to authenticate with the reporting service in 'username:password' format. export WPT_REPORT_API_KEY='rocketdotnetbot:XXXX XXXX XXXX XXXX XXXX XXXX'
Checked the account and the server IP matches as well:
Was able to fix the issue! junit.xml was not generating it seems, after I checked the logs folder.
https://github.com/WordPress/phpunit-test-runner/issues/218
Following the above issue, I changed the WPT_FLAVOR variable in the .env file from 1 to 0 and started the whole process again.
Finally the junit.xml file got generated:
[abc@abc phpunit-test-runner]$ php report.php
Environment variables pass checks.
Getting SVN Revision
Getting SVN message
Copying junit.xml results
rsync -r '/home/abc/public_html/tmp/wp-test-runner'/tests/phpunit/build/logs/* '/home/abc/public_html/tmp/wp-test-runner'
Processing and uploading junit.xml
Results successfully uploaded: https://make.wordpress.org/hosting/test-results/r58627/rocketdotnetbot-r58627/
[abc@abc phpunit-test-runner]$
Je suis intéressé par l'exécution du logiciel Web open source WordPress https://wordpress.org/ et je me demandais si mon compte prenait en charge les éléments suivants :
PHP 7.4 ou supérieur MySQL 8.0 ou supérieur OU MariaDB 10.5 ou supérieur Nginx ou Apache avec le module mod_rewrite Prise en charge HTTPS Merci!
j'aimerai debloquer mon site Wordpress pour continuer mon projet
Issue fixed per [this comment](https://github.com/WordPress/phpunit-test-runner/issues/228#issuecomment-2204382115 - closing this out)