Skip to content

Commit

Permalink
Ignore coveralls upload failures
Browse files Browse the repository at this point in the history
I am once again seeing

    Submitting coverage to coveralls.io...
    Could not submit coverage: 422 Client Error: Unprocessable Entity for url: https://coveralls.io/api/v1/jobs
    resubmitting with id None
    Traceback (most recent call last):
      File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/coveralls/api.py", line 290, in submit_report
        response.raise_for_status()
      File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
        raise HTTPError(http_error_msg, response=self)
    requests.exceptions.HTTPError: 422 Client Error: Unprocessable Entity for url: https://coveralls.io/api/v1/jobs

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/coveralls/cli.py", line 95, in main
        result = coverallz.wear()
      File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/coveralls/api.py", line 257, in wear
        return self.submit_report(json_string)
      File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/coveralls/api.py", line 293, in submit_report
        raise CoverallsException(
    coveralls.exception.CoverallsException: Could not submit coverage: 422 Client Error: Unprocessable Entity for url: https://coveralls.io/api/v1/jobs
    Error: Process completed with exit code 1.

when nothing has changed in my repo or configuration.

I've had enough of coveralls.  If the numbers fail to upload, so be it.
  • Loading branch information
mgedmin committed May 2, 2023
1 parent f0a53e2 commit e8985dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Report to coveralls
run: coveralls
if: "matrix.python-version != '2.7' && matrix.python-version != 'pypy2'"
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
Expand Down

0 comments on commit e8985dd

Please sign in to comment.