coveralls-python icon indicating copy to clipboard operation
coveralls-python copied to clipboard

coveralls 2.2.0 fails with KeyError: 'service_job_id'

Open andy-maier opened this issue 2 years ago • 0 comments

Since a few days, coveralls 2.2.0 fails as follows, at least on Python 3.5 and 3.11.

We use coveralls 2.2.0 in order to avoid issue #252 , and up until recently that has worked fine.

Submitting coverage to coveralls.io...
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.3/x64/bin/coveralls", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.3/x64/lib/python3.11/site-packages/coveralls/cli.py", line 85, in main
    result = coverallz.wear()
             ^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.3/x64/lib/python3.11/site-packages/coveralls/api.py", line 225, in wear
    self.config['service_job_id'], random.randint(0, sys.maxsize))
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'service_job_id'

coveralls is run in Gthub Actions without --service=github.

andy-maier avatar Apr 29 '23 16:04 andy-maier