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

feat: call CleanLabelsIndexTask #210

Merged
merged 4 commits into from
Dec 13, 2023

Conversation

giovanni-guidini
Copy link
Contributor

If the processed upload includes a flag that is carryforward
AND "labels" mode, we enqueue the CleanLabelsIndexTask.

Depends on #205

I tried to be conservative, but it's possible that - despite
using the flag with labels - no labels are uploaded. It's
also possible that there's nothing to do. But these are small
details.

ps.: To see that indeed we have an "arguments" and "flag" in
"processing_results" I looked at logs for the message
"Scheduling notify task" 😉

closes codecov/engineering-team#768

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.

@codecov-qa
Copy link

codecov-qa bot commented Dec 8, 2023

Codecov Report

Merging #210 (295e035) into main (8a1ac6d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #210   +/-   ##
=======================================
  Coverage   98.33%   98.33%           
=======================================
  Files         358      358           
  Lines       28831    28869   +38     
=======================================
+ Hits        28351    28389   +38     
  Misses        480      480           
Flag Coverage Δ
integration 98.33% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.33% <100.00%> (+<0.01%) ⬆️
unit 98.33% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.71% <100.00%> (+<0.01%) ⬆️
OutsideTasks 98.09% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_upload_finisher_task.py 100.00% <100.00%> (ø)
tasks/upload_clean_labels_index.py 100.00% <100.00%> (ø)
tasks/upload_finisher.py 94.61% <100.00%> (+0.70%) ⬆️

Copy link

codecov-public-qa bot commented Dec 8, 2023

Codecov Report

Merging #210 (295e035) into main (8a1ac6d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #210   +/-   ##
=======================================
  Coverage   98.33%   98.33%           
=======================================
  Files         358      358           
  Lines       28831    28869   +38     
=======================================
+ Hits        28351    28389   +38     
  Misses        480      480           
Flag Coverage Δ
integration 98.33% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.33% <100.00%> (+<0.01%) ⬆️
unit 98.33% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.71% <100.00%> (+<0.01%) ⬆️
OutsideTasks 98.09% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_upload_finisher_task.py 100.00% <100.00%> (ø)
tasks/upload_clean_labels_index.py 100.00% <100.00%> (ø)
tasks/upload_finisher.py 94.61% <100.00%> (+0.70%) ⬆️

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Merging #210 (295e035) into main (8a1ac6d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #210   +/-   ##
=======================================
  Coverage   98.30%   98.30%           
=======================================
  Files         389      389           
  Lines       29527    29565   +38     
=======================================
+ Hits        29026    29064   +38     
  Misses        501      501           
Flag Coverage Δ
integration 98.33% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.33% <100.00%> (+<0.01%) ⬆️
onlysomelabels 98.30% <100.00%> (+<0.01%) ⬆️
unit 98.33% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.60% <100.00%> (+<0.01%) ⬆️
OutsideTasks 98.09% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_upload_finisher_task.py 100.00% <100.00%> (ø)
tasks/upload_clean_labels_index.py 100.00% <100.00%> (ø)
tasks/upload_finisher.py 94.65% <100.00%> (+0.69%) ⬆️

This change has been scanned for critical changes. Learn more

Base automatically changed from gio/label-compressed/clean-index-task to main December 11, 2023 17:45
If the processed upload includes a flag that is carryforward
AND "labels" mode, we enqueue the CleanLabelsIndexTask.

Depends on #205

I tried to be conservative, but it's possible that - despite
using the flag with labels - no labels are uploaded. It's
also possible that there's nothing to do. But these are small
details.

ps.: To see that indeed we have an "arguments" and "flag" in
"processing_results" I looked at logs for the message
"Scheduling notify task" 😉

closes codecov/engineering-team#768
@giovanni-guidini giovanni-guidini force-pushed the gio/label-compressed/trigger-clean-labels-task branch from a1e8502 to 33d0496 Compare December 11, 2023 18:25
Copy link
Contributor

@matt-codecov matt-codecov left a comment

Choose a reason for hiding this comment

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

pls consider the feedback but i don't need to see it again before you merge, your tests should catch any mistakes

tasks/upload_finisher.py Outdated Show resolved Hide resolved
tasks/tests/unit/test_upload_finisher_task.py Outdated Show resolved Hide resolved
giovanni-guidini and others added 3 commits December 13, 2023 10:13
Addressing review comment applying suggested patch.
Refactors the trigger logic for CleanLabelsIndex to
make it easier to read and maintain.

Thanks @matt-codecov
@giovanni-guidini giovanni-guidini merged commit e82b640 into main Dec 13, 2023
26 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/label-compressed/trigger-clean-labels-task branch December 13, 2023 15:12
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.

Compress labels in Reports
2 participants