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

Correctly computing ArrayNode maximum attempts and system failures #4627

Merged
merged 7 commits into from
Dec 20, 2023

Conversation

hamersaw
Copy link
Contributor

Tracking issue

NA

Why are the changes needed?

These values are use in a bitarray to compute the number of bits to store each value. If they are incorrect the bitarray can panic on overflow.

What changes were proposed in this pull request?

These values are

How was this patch tested?

Tested with varying configured values for default-max-attempts, retries in @task decorator, max-node-retries-on-system-failures, and ignore-retry-cause.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

NA

Docs link

NA

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working enhancement New feature or request labels Dec 20, 2023
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (3501675) 59.02% compared to head (cdf07a1) 59.03%.

Files Patch % Lines
...ytepropeller/pkg/controller/nodes/array/handler.go 72.72% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4627      +/-   ##
==========================================
+ Coverage   59.02%   59.03%   +0.01%     
==========================================
  Files         622      622              
  Lines       52775    52780       +5     
==========================================
+ Hits        31148    31157       +9     
+ Misses      19140    19138       -2     
+ Partials     2487     2485       -2     
Flag Coverage Δ
unittests 59.03% <72.72%> (+0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Dec 20, 2023
@hamersaw hamersaw merged commit 1e397e6 into master Dec 20, 2023
45 checks passed
@hamersaw hamersaw deleted the bug/arraynode-attempts-max-values branch December 20, 2023 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants