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

Fixed coveralls issues with KeyError and HTTP 422 Unprocessable Entity #1138

Merged
merged 1 commit into from
Apr 30, 2023

Conversation

andy-maier
Copy link
Member

@andy-maier andy-maier commented Apr 29, 2023

After initially disabling coveralls reporting, I found a solution that seems to work reliably.
It required an update to the Python 2.7 version of coveralls-python on https://github.com/andy-maier/coveralls-python/tree/andy/add-py27.
This PR is ready for merge. No review needed.

@andy-maier andy-maier self-assigned this Apr 29, 2023
@andy-maier andy-maier added this to the 1.8.0 milestone Apr 29, 2023
@andy-maier andy-maier force-pushed the andy/fix-coveralls branch 3 times, most recently from f67fcaa to b4723c0 Compare April 30, 2023 06:32
@andy-maier andy-maier changed the title Removed coveralls pinning to fix KeyError Fixed coveralls KeyError and 422 Unprocessable Entity Apr 30, 2023
@andy-maier andy-maier force-pushed the andy/fix-coveralls branch 3 times, most recently from c64f985 to 0839db5 Compare April 30, 2023 08:25
@andy-maier andy-maier changed the title Fixed coveralls KeyError and 422 Unprocessable Entity Disabled coveralls to circumvent KeyError and HTTP 422 Unprocessable Entity Apr 30, 2023
@andy-maier andy-maier force-pushed the andy/fix-coveralls branch 2 times, most recently from a90ec99 to 4fe4171 Compare April 30, 2023 16:35
@andy-maier andy-maier changed the title Disabled coveralls to circumvent KeyError and HTTP 422 Unprocessable Entity Fixed coveralls issues with KeyError and HTTP 422 Unprocessable Entity Apr 30, 2023
Details:

* Increased minimum version of coveralls to 3.3.0 since it is the first
  version that allows overriding the service_job_id parameter via an
  environment variable.

* In the test workflow, specified two changes that solved both issues:
  * Changed the service name to 'github' (the default is 'github-actions')
  * Set the service_job_id request parameter by setting the
    COVERALLS_SERVICE_JOB_ID env var to GITHUB_RUN_ID.

* Improved the build ID shown on coveralls.io, to workflow name
  plus run number of that workflow. This allows for easier matching
  of Github Actions runs and coveralls.io builds.

Signed-off-by: Andreas Maier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant