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: check if labels before popping #208

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

giovanni-guidini
Copy link
Contributor

A little bug was introduced in label-analysis as part of the label
encoding changes: to test if labels are encoded we pop one to see
if it's encoded or not.
In cases where the report has no labels this raises an exception.

These changes first see if there are labels before popping one.

Closes codecov/engineering-team#903

A little bug was introduced in label-analysis as part of the label
encoding changes: to test if labels are encoded we pop one to see
if it's encoded or not.
In cases where the report has no labels this raises an exception.

These changes first see if there are labels before popping one.

Closes codecov/engineering-team#903
@codecov-qa
Copy link

codecov-qa bot commented Dec 8, 2023

Codecov Report

Merging #208 (ad7e6e8) into main (cf5611f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #208   +/-   ##
=======================================
  Coverage   98.35%   98.36%           
=======================================
  Files         356      356           
  Lines       28525    28537   +12     
=======================================
+ Hits        28057    28069   +12     
  Misses        468      468           
Flag Coverage Δ
integration 98.36% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.36% <100.00%> (+<0.01%) ⬆️
unit 98.36% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.76% <100.00%> (+<0.01%) ⬆️
OutsideTasks 98.14% <ø> (ø)
Files Coverage Δ
tasks/label_analysis.py 99.01% <100.00%> (+<0.01%) ⬆️
...s/tests/unit/test_label_analysis_encoded_labels.py 100.00% <100.00%> (ø)

Copy link

codecov-public-qa bot commented Dec 8, 2023

Codecov Report

Merging #208 (ad7e6e8) into main (cf5611f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #208   +/-   ##
=======================================
  Coverage   98.35%   98.36%           
=======================================
  Files         356      356           
  Lines       28525    28537   +12     
=======================================
+ Hits        28057    28069   +12     
  Misses        468      468           
Flag Coverage Δ
integration 98.36% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.36% <100.00%> (+<0.01%) ⬆️
unit 98.36% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.76% <100.00%> (+<0.01%) ⬆️
OutsideTasks 98.14% <ø> (ø)
Files Coverage Δ
tasks/label_analysis.py 99.01% <100.00%> (+<0.01%) ⬆️
...s/tests/unit/test_label_analysis_encoded_labels.py 100.00% <100.00%> (ø)

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Merging #208 (ad7e6e8) into main (cf5611f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #208   +/-   ##
=======================================
  Coverage   98.32%   98.32%           
=======================================
  Files         387      387           
  Lines       29220    29232   +12     
=======================================
+ Hits        28731    28743   +12     
  Misses        489      489           
Flag Coverage Δ
integration 98.36% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.36% <100.00%> (+<0.01%) ⬆️
unit 98.36% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.64% <100.00%> (+<0.01%) ⬆️
OutsideTasks 98.14% <ø> (ø)
Files Coverage Δ
tasks/label_analysis.py 99.01% <100.00%> (+<0.01%) ⬆️
...s/tests/unit/test_label_analysis_encoded_labels.py 100.00% <100.00%> (ø)
Related Entrypoints
run/app.tasks.label_analysis.process_request

@giovanni-guidini giovanni-guidini merged commit bba1a7c into main Dec 8, 2023
25 of 26 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/fix-label-analysis-empty-report-bug branch December 8, 2023 15:44
scott-codecov added a commit that referenced this pull request Dec 12, 2023
* main:
  Change default upper section from "header" to "condensed_header" (#209)
  Add logs for some path fixes for each raw upload processing (#135)
  Create CleanLabelIndexTask (#205)
  fix: check if labels before popping (#208)
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.

Little bug on label_analysis
2 participants