Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zunaid321 opened this issue Jul 1, 2024 · 4 comments
Labels

Comments

@zunaid321
Copy link

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 zunaid321 added the bug label Jul 1, 2024
@pfefferle
Copy link
Member

Have you added the App-Secret correctly?

@zunaid321
Copy link
Author

@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
Copy link
Author

Checked the account and the server IP matches as well:

image

@zunaid321
Copy link
Author

Was able to fix the issue! junit.xml was not generating it seems, after I checked the logs folder.

#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]$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants