Unusable report - how to debug?

Community board archiving

Due to the recent open-sourcing of Codecov’s repositories and the push to increase transparency with our users, the Codecov team has decided to deprecate the community boards and set it to an archival status. We will be using our feedback repository to collect any and all support questions.

We intend to deprecate the boards on October 31, 2023. We will continue to monitor and respond to any topics opened on this forum until that time.

Before submitting a topic, please confirm the following

[ x] I have read the Community board archiving section above.
[ x] I have searched for similar issues before creating this topic.
[ x] I have verified that my repository is using the Codecov GitHub app, if using GitHub
[ x] I have validated my codecov.yaml configuration file.
[ x] I have filled out the below sections to the best of my ability.
[ x] I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.

Description

I’m having issues debugging an “unusable report”. The CI run seems to complete properly, as does the upload. I’ve tried fixing the paths, to no avail, and am now stuck as to what is going wrong.

Looking past my immediate problem, it would be really useful if the error message was a bit more informative (i.e. gave a reason why the report was unusable).

Codecov commit info

CI/CD URL

https://dev.azure.com/davidbaddeleynz/pyme-ci/_build/results?buildId=2920&view=results

Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

2023-08-14T01:20:03.9747720Z [2023-08-14T01:20:03.050Z] ['info'] 
2023-08-14T01:20:03.9748050Z      _____          _
2023-08-14T01:20:03.9748238Z     / ____|        | |
2023-08-14T01:20:03.9748437Z    | |     ___   __| | ___  ___ _____   __
2023-08-14T01:20:03.9748696Z    | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
2023-08-14T01:20:03.9748906Z    | |___| (_) | (_| |  __/ (_| (_) \ V /
2023-08-14T01:20:03.9749102Z     \_____\___/ \__,_|\___|\___\___/ \_/
2023-08-14T01:20:03.9749186Z 
2023-08-14T01:20:03.9749357Z   Codecov report uploader 0.6.2
2023-08-14T01:20:03.9749805Z [2023-08-14T01:20:03.058Z] ['info'] => Project root located at: /home/vsts/work/1/s
2023-08-14T01:20:03.9750308Z [2023-08-14T01:20:03.062Z] ['info'] ->  Token found by environment variables
2023-08-14T01:20:03.9750787Z [2023-08-14T01:20:03.189Z] ['info'] Searching for coverage files...
2023-08-14T01:20:03.9751262Z [2023-08-14T01:20:03.333Z] ['info'] => Found 1 possible coverage files:
2023-08-14T01:20:03.9751566Z   coverage.xml
2023-08-14T01:20:03.9751940Z [2023-08-14T01:20:03.333Z] ['info'] Processing /home/vsts/work/1/s/coverage.xml...
2023-08-14T01:20:03.9752434Z [2023-08-14T01:20:03.392Z] ['info'] Using manual override from args.
2023-08-14T01:20:03.9752939Z [2023-08-14T01:20:03.393Z] ['info'] Detected Azure Pipelines as the CI provider.
2023-08-14T01:20:03.9754503Z [2023-08-14T01:20:03.394Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.6.2&token=*******&branch=master&build=20230814.1&build_url=https%3A%2F%2Fdev.azure.com%2Fdavidbaddeleynz%2Fpyme-ci%2F_build%2Fresults%3FbuildId%3D2920&commit=aa97bf00479ee7a03fe16bcb39645459a2c8a291&job=2920&pr=&project=pyme-ci&server_uri=https%3A%2F%2Fdev.azure.com%2Fdavidbaddeleynz%2F&service=azure_pipelines&slug=python-microscopy%2Fpython-microscopy&name=&tag=&flags=all%2Ccore&parent=
2023-08-14T01:20:03.9796248Z [2023-08-14T01:20:03.671Z] ['info'] https://app.codecov.io/github/python-microscopy/python-microscopy/commit/aa97bf00479ee7a03fe16bcb39645459a2c8a291
2023-08-14T01:20:03.9797453Z https://storage.googleapis.com/codecov/v4/raw/2023-08-14/8CD9207CF38763203C54DF350A262518/aa97bf00479ee7a03fe16bcb39645459a2c8a291/e239a529-777b-4014-8cf4-1ccc295e5b9d.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230814%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230814T012003Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=51445ed3c49abf41ff2e9c2e352c356270f0bb2f538ae251cf87a56045af4172
2023-08-14T01:20:03.9798108Z [2023-08-14T01:20:03.672Z] ['info'] Uploading...
2023-08-14T01:20:03.9798620Z [2023-08-14T01:20:03.936Z] ['info'] {"status":"success","resultURL":"https://app.codecov.io/github/python-microscopy/python-microscopy/commit/aa97bf00479ee7a03fe16bcb39645459a2c8a291"}
2023-08-14T01:20:03.9801915Z ##[section]Finishing: codecov upload

Expected Results

A report that showed current coverage

Actual Results

An unusable report

codecov.yml

codecov:
  require_ci_to_pass: true
comment:
  behavior: default
  layout: reach,diff,flags,tree,reach
  show_carryforward_flags: false
coverage:
  precision: 2
  range:
  - 50.0
  - 100.0
  round: down
  status:
    changes: false
    default_rules:
      flag_coverage_not_uploaded_behavior: include
    patch: true
    project: true
fixes:
- ::PYME/
flags:
  all:
    paths:
    - (?s:[^\/]*)\Z
  core:
    ignore:
    - (?s:[^\/]*/ui/[^\/]*)\Z
    - (?s:[^\/]*/Acquire/[^\/]*)\Z
    - (?s:[^\/]*/DSView/[^\/]*)\Z
    - (?s:[^\/]*/LMVis/[^\/]*)\Z
    - (?s:[^\/]*/recipes/recipeGui\.py.*)\Z
    - (?s:[^\/]*/recipes/vertical_recipe_display\.py.*)\Z
    - (?s:[^\/]*/ParallelTasks/[^\/]*)\Z
    - (?s:[^\/]*/tileviewer/[^\/]*)\Z
    - (?s:[^\/]*/contrib/[^\/]*)\Z
github_checks:
  annotations: false
ignore:
- (?s:[^\/]*/contrib/[^\/]*)\Z
- (?s:[^\/]*/Protocols/[^\/]*)\Z
- (?s:[^\/]*/setup\.py.*)\Z
- (?s:[^\/]*/setup_exe\.py.*)\Z
- (?s:[^\/]*/Hardware/[^\/]*)\Z

Uploaded report (abridged to reduce size)

.cvsignore
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/proposal.md
.github/ISSUE_TEMPLATE/support.md
.github/PULL_REQUEST_TEMPLATE.md
.github/workflows/build_docs.yml
.github/workflows/build_pip.yml
.github/workflows/codeql-analysis.yml
.github/workflows/lint.yml
.github/workflows/make_release.yml
.gitignore
.hgignore
ACQUIRE_DEPS.txt
CHANGELOG.md
CODE_OF_CONDUCT.md
COPYING
CREDITS
LICENSE
PYME/Acquire/.cvsignore
PYME/Acquire/ActionManager.py
PYME/Acquire/ExecTools.py

### ...
### ~1500 files removed for clarity

<<<<<< network
# path=coverage.xml
<?xml version="1.0" ?>
<coverage branch-rate="0" branches-covered="0" branches-valid="0" complexity="0" line-rate="0.1356" lines-covered="10352" lines-valid="76330" timestamp="1691975953496" version="7.2.7">
	<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.2.7 -->
	<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
	<sources>
		<source>/home/vsts/work/1/s/PYME</source>
	</sources>
	<packages>
		<package branch-rate="0" complexity="0" line-rate="0.446" name=".">
			<classes>
				<class branch-rate="0" complexity="0" filename="__init__.py" line-rate="1" name="__init__.py">
					<methods/>
					<lines/>
				</class>
				<class branch-rate="0" complexity="0" filename="config.py" line-rate="0.4797" name="config.py">
					<methods/>
					<lines>
						<line hits="1" number="239"/>
						<line hits="1" number="240"/>
						<line hits="1" number="241"/>
						<line hits="1" number="242"/>
						<line hits="1" number="243"/>
						<line hits="1" number="245"/>
						<line hits="1" number="246"/>
						<line hits="1" number="248"/>
						<line hits="1" number="249"/>
						<line hits="1" number="251"/>
						 ... # truncated for space

						<line hits="0" number="622"/>
						<line hits="0" number="623"/>
						<line hits="0" number="626"/>
						<line hits="0" number="629"/>
						<line hits="0" number="630"/>
						<line hits="0" number="631"/>
						<line hits="0" number="632"/>
						<line hits="0" number="633"/>
						<line hits="0" number="634"/>
					</lines>
				</class>
				<class branch-rate="0" complexity="0" filename="update_version.py" line-rate="0" name="update_version.py">
					<methods/>
					<lines>
						<line hits="0" number="26"/>
						<line hits="0" number="27"/>
						<line hits="0" number="28"/>
						<line hits="0" number="29"/>
						<line hits="0" number="30"/>
						<line hits="0" number="32"/>
						... # truncated for space
						<line hits="0" number="141"/>
						<line hits="0" number="143"/>
						<line hits="0" number="145"/>
						<line hits="0" number="147"/>
						<line hits="0" number="148"/>
					</lines>
				</class>
				<class branch-rate="0" complexity="0" filename="version.py" line-rate="0.8889" name="version.py">
					<methods/>
					<lines>
						<line hits="1" number="4"/>
						<line hits="1" number="5"/>
						...
						<line hits="1" number="58"/>
						<line hits="1" number="60"/>
						<line hits="1" number="62"/>
					</lines>
				</class>
			</classes>
		</package>
		<package branch-rate="0" complexity="0" line-rate="0.05784" name="Acquire">
			<classes>
				<class branch-rate="0" complexity="0" filename="Acquire/ActionManager.py" line-rate="0.6389" name="ActionManager.py">
					<methods/>
					<lines>
						<line hits="1" number="2"/>
						<line hits="1" number="7"/>
						...
						<line hits="1" number="359"/>
						<line hits="1" number="361"/>
						<line hits="1" number="362"/>
						<line hits="1" number="363"/>
					</lines>
				</class>
				<class branch-rate="0" complexity="0" filename="Acquire/ExecTools.py" line-rate="0" name="ExecTools.py">
					<methods/>
					<lines>
						<line hits="0" number="25"/>
						<line hits="0" number="27"/>
						<line hits="0" number="30"/>
						...
						<line hits="0" number="233"/>
						<line hits="0" number="235"/>
					</lines>
				</class>
				<class branch-rate="0" complexity="0" filename="Acquire/PYMEAcquire.py" line-rate="0" name="PYMEAcquire.py">
					<methods/>
					<lines>
						<line hits="0" number="23"/>
						<line hits="0" number="35"/>
						...
						<line hits="0" number="129"/>
						<line hits="0" number="130"/>
						<line hits="0" number="134"/>
					</lines>
				</class>
				<class branch-rate="0" complexity="0" filename="Acquire/SpoolController.py" line-rate="0" name="SpoolController.py">
					<methods/>
					<lines>
						<line hits="0" number="2"/>
						<line hits="0" number="12"/>
						<line hits="0" number="16"/>
						<line hits="0" number="17"/>
						...
						<line hits="0" number="749"/>
						<line hits="0" number="751"/>
						<line hits="0" number="752"/>
					</lines>
				</class>
				
### Data for ~1000 files removed for space ....

					
		</package>
	</packages>
</coverage>
<<<<<< EOF

Additional Information

Please provide applicable commit SHAs or file names that are extraneous or missing. Any additional information, configuration, or data that might be necessary to reproduce the issue.

@David-Baddeley it looks like this might be a different path fixing issue. I’m seeing this /home/vsts/work/1/s/ being prepended to your files. Could you try adding

fixes:
  - "/home/vsts/work/1/s/::"

to your codecov.yml instead?

Also doesn’t work (unfortunately)

Thank’s for the help.

I’ve traced it down to being something to do with the flags configuration I had (or potentially specifying the commit hash). Will try adding the flags back in and see what that does.

1 Like