payu-org / payu

A workflow management tool for numerical models on the NCI computing systems
Apache License 2.0
18 stars 25 forks source link

Broken coveralls step in CI #453

Open jo-basevi opened 1 day ago

jo-basevi commented 1 day ago

The coveralls step in CI step has been exiting with errors in open PRs, e.g.: https://github.com/payu-org/payu/actions/runs/9106393575/job/25033526915?pr=442#step:10:39, https://github.com/payu-org/payu/actions/runs/9640675026/job/26584871473?pr=447#step:10:39

The logs:

Trying submitting coverage with service_name: github...
Failed collecting git data. Are you running coveralls inside a git repository? Is git installed?
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/coveralls/git.py", line 16, in run_command
    cmd = subprocess.run(
  File "/usr/local/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', '--no-pager', 'log', '-1', '--pretty=format:%H']' returned non-zero exit status 128.

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/coveralls/git.py", line 88, in git_info
    'id': gitlog('%H'),
  File "/usr/local/lib/python3.8/site-packages/coveralls/git.py", line 30, in gitlog
    return run_command(
  File "/usr/local/lib/python3.8/site-packages/coveralls/git.py", line [22](https://github.com/payu-org/payu/actions/runs/9640675026/job/26584871473?pr=447#step:10:23), in run_command
    raise CoverallsException(
coveralls.exception.CoverallsException: Command '['git', '--no-pager', 'log', '-1', '--pretty=format:%H']' returned non-zero exit status 128.
STDOUT: b''
STDERR: b"fatal: detected dubious ownership in repository at '/github/workspace'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /github/workspace\n"