djangoproject.com icon indicating copy to clipboard operation
djangoproject.com copied to clipboard

feat: Translation preparation for the dashboard app

Open marksweb opened this issue 1 year ago • 3 comments

This adds translations tags to the dashboard app as suggested in #1648

marksweb avatar Oct 15 '24 22:10 marksweb

I don't really understand why, but the Python 3.12 CI is failing with this error:


Run coveralls --service=github
Submitting coverage to coveralls.io...
Error running coveralls: Could not submit coverage: 422 Client Error: Unprocessable Entity for url: https://coveralls.io/api/v1/jobs
Traceback (most recent call last):
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
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/coveralls/api.py", line 298, in submit_report
    response.raise_for_status()
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/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.12.7/x64/lib/python3.12/site-packages/coveralls/cli.py", line 98, in main
    result = coverallz.wear()
             ^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/coveralls/api.py", line 275, in wear
    return self.submit_report(json_string)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/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
Error: Process completed with exit code 1.

(The 3.8 is running fine and uploading to coveralls with no apparent issue)

bmispelon avatar Oct 22 '24 18:10 bmispelon

@bmispelon Hmm. Mysterious - with 3.8 working it makes me think that maybe it's a 3.12 bug. But I'd expect it to be easier to find with a search. At first I wondered if it was one of those network issues that goes away with a re-try - but it hasn't done.

I have followed some issues through to an example "good config" here; https://github.com/zhmcclient/python-zhmcclient/blob/1b91074d0be3fe7a7843a24af8abfad2cc8c1bb3/.github/workflows/test.yml#L205

To get there I started here which then linked through to here.

marksweb avatar Oct 23 '24 00:10 marksweb

I did some force-pushing to test out the config changes for coveralls, I hope I didn't break anything (the branch should be back where you left it) 🤞🏻

bmispelon avatar Oct 23 '24 12:10 bmispelon