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

fix: rewrite raw uploads empty and expired #523

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

giovanni-guidini
Copy link
Contributor

The re-write on readable format is currently not working for expired or empty reports.
This is because we don't returned the raw report (that despite the name does have a little
but of processing to it) in the case that the report is empty or expired.
By passing the raw_parsed_report we should start rewriting them in the readable format.

This didn't fall in the "rewrite in error" cathegory because these scenarios are not
treated as errors.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

The re-write on readable format is currently not working for expired or empty reports.
This is because we don't returned the raw report (that despite the name does have a little
but of processing to it) in the case that the report is empty or expired.
By passing the raw_parsed_report we should start rewriting them in the readable format.

This didn't fall in the "rewrite in error" cathegory because these scenarios are not
treated as errors.
@giovanni-guidini giovanni-guidini requested a review from a team June 26, 2024 09:54
Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.49%. Comparing base (a066a23) to head (9179077).

Changes have been made to critical files, which contain lines commonly executed in production. Learn more

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #523   +/-   ##
=======================================
  Coverage   97.49%   97.49%           
=======================================
  Files         448      448           
  Lines       35557    35557           
=======================================
  Hits        34667    34667           
  Misses        890      890           
Flag Coverage Δ
integration 97.47% <ø> (ø)
latest-uploader-overall 97.47% <ø> (ø)
unit 97.47% <ø> (ø)

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

Components Coverage Δ
NonTestCode 94.56% <ø> (ø)
OutsideTasks 97.74% <ø> (ø)
Files Coverage Δ
services/report/__init__.py Critical 92.30% <ø> (ø)

This change has been scanned for critical changes. Learn more

@codecov-qa
Copy link

codecov-qa bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.47%. Comparing base (a066a23) to head (9179077).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #523   +/-   ##
=======================================
  Coverage   97.47%   97.47%           
=======================================
  Files         417      417           
  Lines       34828    34828           
=======================================
  Hits        33948    33948           
  Misses        880      880           
Flag Coverage Δ
integration 97.47% <ø> (ø)
latest-uploader-overall 97.47% <ø> (ø)
unit 97.47% <ø> (ø)

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

Components Coverage Δ
NonTestCode 94.51% <ø> (ø)
OutsideTasks 97.74% <ø> (ø)
Files Coverage Δ
services/report/__init__.py 92.29% <ø> (ø)

Copy link

codecov-public-qa bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.47%. Comparing base (a066a23) to head (9179077).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #523   +/-   ##
=======================================
  Coverage   97.47%   97.47%           
=======================================
  Files         417      417           
  Lines       34828    34828           
=======================================
  Hits        33948    33948           
  Misses        880      880           
Flag Coverage Δ
integration 97.47% <ø> (ø)
latest-uploader-overall 97.47% <ø> (ø)
unit 97.47% <ø> (ø)

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

Components Coverage Δ
NonTestCode 94.51% <ø> (ø)
OutsideTasks 97.74% <ø> (ø)
Files Coverage Δ
services/report/__init__.py 92.29% <ø> (ø)

@codecov-notifications
Copy link

codecov-notifications bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #523   +/-   ##
=======================================
  Coverage   97.47%   97.47%           
=======================================
  Files         417      417           
  Lines       34828    34828           
=======================================
  Hits        33948    33948           
  Misses        880      880           
Flag Coverage Δ
integration 97.47% <ø> (ø)
latest-uploader-overall 97.47% <ø> (ø)
unit 97.47% <ø> (ø)

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

Components Coverage Δ
NonTestCode 94.51% <ø> (ø)
OutsideTasks 97.74% <ø> (ø)
Files Coverage Δ
services/report/__init__.py 92.29% <ø> (ø)

@giovanni-guidini giovanni-guidini added this pull request to the merge queue Jun 26, 2024
Merged via the queue into main with commit 176d944 Jun 26, 2024
29 of 30 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/fix-rewrite-empty-reports branch June 26, 2024 21:05
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.

2 participants