Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change names of path_fixes to report_fixes #58

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

joseph-sentry
Copy link
Contributor

This PR changes the name of the path_fixes
section in the ParsedRawReport classes to report_fixes.

For more information on report fixes:
https://docs.codecov.com/docs/fixing-reports

For more information on path fixes:
https://docs.codecov.com/docs/fixing-paths

Fixes: codecov/codecov-cli#207

@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Merging #58 (423cf9f) into main (efd0cb0) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   98.46%   98.46%           
=======================================
  Files         369      369           
  Lines       27233    27233           
=======================================
  Hits        26814    26814           
  Misses        419      419           
Flag Coverage Δ
integration 98.43% <100.00%> (ø)
latest-uploader-overall 98.43% <100.00%> (ø)
unit 98.43% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 97.05% <100.00%> (ø)
OutsideTasks 98.22% <100.00%> (ø)
Files Coverage Δ
services/report/fixes.py 97.61% <ø> (ø)
services/report/parser/legacy.py 100.00% <100.00%> (ø)
...eport/parser/tests/unit/test_version_one_parser.py 100.00% <100.00%> (ø)
services/report/parser/types.py 100.00% <100.00%> (ø)
services/report/parser/version_one.py 100.00% <100.00%> (ø)
services/report/raw_upload_processor.py 97.47% <100.00%> (ø)
services/report/tests/unit/test_parser.py 100.00% <100.00%> (ø)
services/report/tests/unit/test_process.py 98.99% <100.00%> (ø)
Related Entrypoints
run/app.tasks.upload.UploadProcessor

@joseph-sentry joseph-sentry force-pushed the joseph/rename-path-fixes branch 4 times, most recently from 74e2fc3 to 534dac7 Compare August 16, 2023 18:59
@joseph-sentry
Copy link
Contributor Author

@giovanni-guidini @dana-yaish Is it worth it to change the string that we expect here: https://github.com/codecov/worker/pull/58/files#diff-1d8567e678087007495cf44619eec19e7325fe7b1106110b56d68c96c14ef7e1R27 , changing it would mean it's correct now, but this would break old versions of the CLI

@thomasrockhu-codecov
Copy link
Contributor

@joseph-sentry is this still being worked on?

@joseph-sentry
Copy link
Contributor Author

joseph-sentry commented Oct 3, 2023

@joseph-sentry is this still being worked on?

this is ready for another review

@codecov-staging
Copy link

codecov-staging bot commented Oct 3, 2023

Codecov Report

Merging #58 (423cf9f) into main (efd0cb0) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   93.25%   93.25%           
=======================================
  Files         346      346           
  Lines       26889    26889           
=======================================
  Hits        25075    25075           
  Misses       1814     1814           
Flag Coverage Δ
integration 93.25% <100.00%> (ø)
latest-uploader-overall 93.25% <100.00%> (ø)
unit 93.25% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 93.96% <100.00%> (ø)
OutsideTasks 96.72% <100.00%> (ø)
Files Coverage Δ
services/report/fixes.py 97.61% <ø> (ø)
services/report/parser/legacy.py 100.00% <100.00%> (ø)
...eport/parser/tests/unit/test_version_one_parser.py 100.00% <100.00%> (ø)
services/report/parser/types.py 100.00% <100.00%> (ø)
services/report/parser/version_one.py 100.00% <100.00%> (ø)
services/report/raw_upload_processor.py 97.47% <100.00%> (ø)
services/report/tests/unit/test_parser.py 100.00% <100.00%> (ø)
services/report/tests/unit/test_process.py 98.99% <100.00%> (ø)

@codecov-qa
Copy link

codecov-qa bot commented Oct 3, 2023

Codecov Report

Merging #58 (423cf9f) into main (efd0cb0) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   93.25%   93.25%           
=======================================
  Files         346      346           
  Lines       26889    26889           
=======================================
  Hits        25075    25075           
  Misses       1814     1814           
Flag Coverage Δ
integration 93.25% <100.00%> (ø)
latest-uploader-overall 93.25% <100.00%> (ø)
unit 93.25% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 93.96% <100.00%> (ø)
OutsideTasks 96.72% <100.00%> (ø)
Files Coverage Δ
services/report/fixes.py 97.61% <ø> (ø)
services/report/parser/legacy.py 100.00% <100.00%> (ø)
...eport/parser/tests/unit/test_version_one_parser.py 100.00% <100.00%> (ø)
services/report/parser/types.py 100.00% <100.00%> (ø)
services/report/parser/version_one.py 100.00% <100.00%> (ø)
services/report/raw_upload_processor.py 97.47% <100.00%> (ø)
services/report/tests/unit/test_parser.py 100.00% <100.00%> (ø)
services/report/tests/unit/test_process.py 98.99% <100.00%> (ø)

@codecov-public-qa
Copy link

codecov-public-qa bot commented Oct 3, 2023

Codecov Report

Merging #58 (1630411) into main (fbd867b) will not change coverage.
Report is 3 commits behind head on main.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   93.25%   93.25%           
=======================================
  Files         346      346           
  Lines       26889    26889           
=======================================
  Hits        25075    25075           
  Misses       1814     1814           
Flag Coverage Δ
integration 93.25% <100.00%> (ø)
latest-uploader-overall 93.25% <100.00%> (ø)
unit 93.25% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 93.96% <100.00%> (ø)
OutsideTasks 96.72% <100.00%> (ø)
Files Changed Coverage Δ
services/report/fixes.py 97.61% <ø> (ø)
services/report/parser/legacy.py 100.00% <100.00%> (ø)
...eport/parser/tests/unit/test_version_one_parser.py 100.00% <100.00%> (ø)
services/report/parser/types.py 100.00% <100.00%> (ø)
services/report/parser/version_one.py 100.00% <100.00%> (ø)
services/report/raw_upload_processor.py 97.47% <100.00%> (ø)
services/report/tests/unit/test_parser.py 100.00% <100.00%> (ø)
services/report/tests/unit/test_process.py 98.99% <100.00%> (ø)

@@ -26,26 +26,43 @@ def get_first_line(self):


class ParsedRawReport(object):
"""
Parsed raw report parent class
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very helpful 👍 thanks for doing this

@@ -24,10 +24,15 @@ def parse_raw_report_from_bytes(self, raw_report: bytes):
uploaded_files=[
self._parse_single_coverage_file(x) for x in data["coverage_files"]
],
path_fixes=self._parse_path_fixes(data["path_fixes"]),
report_fixes=self._parse_report_fixes(
# want backwards compatibility with older versions of the CLI that still name this section path_fixes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10/10 - This is very good. Yes we do want that.

This commit changes the name of the path_fixes
section in the ParsedRawReport classes to report_fixes.

For more information on report fixes:
https://docs.codecov.com/docs/fixing-reports

For more information on path fixes:
https://docs.codecov.com/docs/fixing-paths

Signed-off-by: joseph-sentry <[email protected]>
@joseph-sentry joseph-sentry merged commit 518f466 into main Oct 4, 2023
30 of 32 checks passed
@joseph-sentry joseph-sentry deleted the joseph/rename-path-fixes branch October 4, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI labels the "report_fixes" section of the upload as "path_fixes"
3 participants