WordPress / phpunit-test-runner

GNU General Public License v2.0
66 stars 63 forks source link

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

Open zunaid321 opened 3 months ago

zunaid321 commented 3 months ago

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]$ 
pfefferle commented 3 months ago

Have you added the App-Secret correctly?

zunaid321 commented 3 months ago

@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 commented 3 months ago

Checked the account and the server IP matches as well:

image

zunaid321 commented 3 months ago

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]$ 
radiotelevodoufm commented 1 month ago

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 commented 1 month ago

j'aimerai debloquer mon site Wordpress pour continuer mon projet