phpunit-test-runner icon indicating copy to clipboard operation
phpunit-test-runner copied to clipboard

Error: Error uploading results: Invalid parameter(s): results (HTTP status 400) - User: rocketdotnetbot

Open zunaid321 opened this issue 1 year ago • 6 comments

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]$ 

zunaid321 avatar Jul 01 '24 13:07 zunaid321

Have you added the App-Secret correctly?

pfefferle avatar Jul 01 '24 13:07 pfefferle

@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'

zunaid321 avatar Jul 01 '24 13:07 zunaid321

Checked the account and the server IP matches as well:

image

zunaid321 avatar Jul 01 '24 13:07 zunaid321

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]$ 

zunaid321 avatar Jul 02 '24 20:07 zunaid321

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!

radiotelevodoufm avatar Aug 27 '24 15:08 radiotelevodoufm

j'aimerai debloquer mon site Wordpress pour continuer mon projet

radiotelevodoufm avatar Aug 27 '24 15:08 radiotelevodoufm

Issue fixed per [this comment](https://github.com/WordPress/phpunit-test-runner/issues/228#issuecomment-2204382115 - closing this out)

kittenkamala avatar Aug 26 '25 03:08 kittenkamala