Project

General

Profile

Actions

action #71095

closed

[ci][os-autoinst] unable to read files in codecov reports, probably due to "opt" prefix

Added by okurz over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2020-09-08
Due date:
% Done:

0%

Estimated time:

Description

Observation

https://codecov.io/gh/os-autoinst/os-autoinst/pull/1529/changes mentions

Changes in opt/consoles/localXvnc.pm
Changes in opt/commands.pm
Changes in opt/consoles/console.pm

but opening the folded bars does not reveal the source code context, probably due to the "opt/" prefix

Suggestions

Probably this is a regression introduced by the switch to CMake introducing the "opt/" prefix. https://docs.codecov.io/docs/fixing-paths has some suggestions but I would prefer if we strip the "opt/" in the CI build even in before.

Actions #1

Updated by tinita over 4 years ago

This seems to have been caused by https://github.com/os-autoinst/os-autoinst/pull/1293

See my comment
https://github.com/os-autoinst/os-autoinst/pull/1293#pullrequestreview-483960680

I don't understand why the directory was changed, but this should be fixable in codecov.yml by adjusting the path:

fixes:
  - "/opt/run/::"
Actions #2

Updated by tinita over 4 years ago

  • Status changed from Workable to In Progress
  • Assignee set to tinita
Actions #3

Updated by tinita over 4 years ago

  • Status changed from In Progress to Feedback
Actions #4

Updated by okurz over 4 years ago

tinita wrote:

I don't understand why the directory was changed

not by intention for sure :)

but this should be fixable in codecov.yml by adjusting the path

mkittler reported that when generating a coverage report locally the paths are also not correct. So your change will certainly fix codecov but we should look into the other issue as well which might again impact how codecov can handle this.

Actions #5

Updated by okurz about 4 years ago

https://github.com/os-autoinst/os-autoinst/pull/1530 was merged. https://codecov.io/gh/os-autoinst/os-autoinst/pull/1530/changes shows a lot of changes.

I realized that our project still links to outdated reports for coveralls -> #71323

Actions #6

Updated by okurz about 4 years ago

  • Status changed from Feedback to Resolved

And as https://codecov.io/gh/os-autoinst/os-autoinst/src/master/autotest.pm looks fine I consider the original issue as gone. For me locally generated coverage reports are ok as well so I do not know if there would be an additional issue. That should be solved as part of another ticket in that case.

Actions

Also available in: Atom PDF