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

[BUG] Coveralls does not report coverage #677

Closed
2 tasks
niccokunzmann opened this issue Jul 1, 2024 · 1 comment
Closed
2 tasks

[BUG] Coveralls does not report coverage #677

niccokunzmann opened this issue Jul 1, 2024 · 1 comment

Comments

@niccokunzmann
Copy link
Member

Describe the bug

Coveralls is supposed to generate a pull request summary. Currently, it breaks on main and on the pull requests.

To Reproduce

See main and the commits:

https://github.com/collective/icalendar/actions/runs/9751261758/job/26912463324#step:6:1

Error running coveralls: Could not submit coverage: 422 Client Error: Unprocessable Entity for url: https://coveralls.io/api/v1/jobs
Received 422 submitting job via Github Actions. By default, coveralls-python uses the "github" service name, which requires you to set the $GITHUB_TOKEN environment variable. If you want to use a COVERALLS_REPO_TOKEN instead, please manually override $COVERALLS_SERVICE_NAME to "github-actions". For more info, see https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-support
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/coveralls/api.py", line 298, in submit_report
    response.raise_for_status()
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/models.py", line 1024, 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.18/x64/lib/python3.8/site-packages/coveralls/cli.py", line 98, in main
    result = coverallz.wear()
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/coveralls/api.py", line 275, in wear
    return self.submit_report(json_string)
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/coveralls/api.py", line 301, 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
/opt/hostedtoolcache/Python/3.8.18/x64/bin/coveralls

Expected behavior

I would like coveralls to

  • run during PR and main builds
  • provide a comment as it did before about the test coverage

Additional context

@niccokunzmann
Copy link
Member Author

coveralls is reporting coverage. #680 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant