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: define __le__ instead of just __lt__ for BaseFlow #157

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

matt-codecov
Copy link
Contributor

tested by running real uploads through my local service instead of relying on unit tests and staging. i'll make sure to do that more in the future as these bugs were easily catchable before PR time if i were more diligent

i read somewhere that defining __gt__ and __eq__ should fill in for other comparison functions if they aren't defined. i saw that wasn't true for __lt__ in the last bugfix and defined that one manually, but i thought surely __lt__ and __eq__ are enough to define __le__ and did not verify

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 Oct 24, 2023

Codecov Report

Merging #157 (54a6d6c) into main (68e9af5) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #157      +/-   ##
==========================================
- Coverage   98.42%   98.41%   -0.02%     
==========================================
  Files         348      348              
  Lines       27421    27433      +12     
==========================================
+ Hits        26990    26998       +8     
- Misses        431      435       +4     
Flag Coverage Δ
integration ?
latest-uploader-overall 98.41% <66.66%> (-0.02%) ⬇️
unit 98.41% <66.66%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 96.92% <50.00%> (-0.04%) ⬇️
OutsideTasks 98.20% <66.66%> (-0.02%) ⬇️
Files Coverage Δ
helpers/tests/unit/test_checkpoint_logger.py 100.00% <100.00%> (ø)
helpers/checkpoint_logger/__init__.py 94.51% <50.00%> (-2.29%) ⬇️

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Merging #157 (54a6d6c) into main (68e9af5) will decrease coverage by 0.02%.
Report is 1 commits behind head on main.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #157      +/-   ##
==========================================
- Coverage   98.38%   98.37%   -0.02%     
==========================================
  Files         374      374              
  Lines       27917    27929      +12     
==========================================
+ Hits        27467    27475       +8     
- Misses        450      454       +4     
Flag Coverage Δ
integration 98.41% <66.66%> (-0.02%) ⬇️
latest-uploader-overall 98.41% <66.66%> (-0.02%) ⬇️
unit 98.41% <66.66%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 96.81% <50.00%> (-0.04%) ⬇️
OutsideTasks 98.20% <66.66%> (-0.02%) ⬇️
Files Coverage Δ
helpers/tests/unit/test_checkpoint_logger.py 100.00% <100.00%> (ø)
helpers/checkpoint_logger/__init__.py 94.57% <50.00%> (-2.26%) ⬇️

This change has been scanned for critical changes. Learn more

@codecov-public-qa
Copy link

codecov-public-qa bot commented Oct 24, 2023

Codecov Report

Merging #157 (54a6d6c) into main (68e9af5) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #157      +/-   ##
==========================================
- Coverage   98.42%   98.41%   -0.02%     
==========================================
  Files         348      348              
  Lines       27421    27433      +12     
==========================================
+ Hits        26990    26998       +8     
- Misses        431      435       +4     
Flag Coverage Δ
integration 98.41% <66.66%> (-0.02%) ⬇️
latest-uploader-overall 98.41% <66.66%> (-0.02%) ⬇️
unit 98.41% <66.66%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 96.92% <50.00%> (-0.04%) ⬇️
OutsideTasks 98.20% <66.66%> (-0.02%) ⬇️
Files Coverage Δ
helpers/tests/unit/test_checkpoint_logger.py 100.00% <100.00%> (ø)
helpers/checkpoint_logger/__init__.py 94.51% <50.00%> (-2.29%) ⬇️

@matt-codecov matt-codecov merged commit b8ac0fc into main Oct 24, 2023
9 of 18 checks passed
@matt-codecov matt-codecov deleted the matt/yet-another-bugfix branch October 24, 2023 19:23
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