forked from TheKevJames/coveralls-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed HTTP 422 for Github Actions; Improved/added log output
Details: * The API documentation of coveralls.io states in https://docs.coveralls.io/api-jobs-endpoint that 'service_job_id' is required and is a unique ID for the job. Experiments show that not providing it causes result submission to fail with HTTP 422 "Unprocessable Entity". The current code of coveralls-python sets 'service_job_id' to None/null when submitting to coveralls.io. This worked until recently, and now causes HTTP 422 "Unprocessable Entity". This PR fixes that by setting 'service_job_id' to GITHUB_RUN_ID. Note that the current code sets 'service_number' to GITHUB_RUN_ID as well, and that is not changed by this PR. * Added a description of how the various service* request parameters work, based on the API documentation of coveralls.io and experiments, which allowed to partly correct that documentation. * Changed the print() for resubmission of a result to become a log.warning() call so it shows up in the ouutput at the right position. * Added log.info() calls for the original result submission and for the submission of the finish request. Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
- Loading branch information
1 parent
8901de7
commit 093a297
Showing
1 changed file
with
59 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters