Skip to content

[v4] Traceback with ValueError when Git repo is not checked out #1252

Closed

Description

There's a project where coverage is collected from multiple jobs, stored as GHA artifacts, then combined into a single report in a separate job, that attempts uploading the result. In that job, Git checkout is unnecessary (and even undesired!) so it doesn't happen. The working directory contains an unpacked project source, from a tarball created earlier in the workflow. But the coverage.xml exists in the current working dir so there is no legitimate reason for codecov-cli to fail locating it, but that's exactly what happens.
Here's the trace:

Traceback (most recent call last):
  File "codecov_cli/main.py", line 81, in <module>
  File "codecov_cli/main.py", line 77, in run
  File "click/core.py", line 1157, in __call__
  File "click/core.py", line 1078, in main
  File "click/core.py", line 1688, in invoke
  File "click/core.py", line 1434, in invoke
  File "click/core.py", line 783, in invoke
  File "click/decorators.py", line 33, in new_func
  File "codecov_cli/commands/upload.py", line 232, in do_upload
  File "codecov_cli/services/upload/__init__.py", line 66, in do_upload_logic
  File "codecov_cli/services/upload/upload_collector.py", line 152, in generate_upload_data
  File "codecov_cli/services/upload/network_finder.py", line 17, in find_files
  File "codecov_cli/helpers/versioning_systems.py", line 111, in list_relevant_files
ValueError: Can't determine root folder

Here's the job log: https://github.com/aio-libs/multidict/actions/runs/7746607723/job/21125581164#step:8:59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions