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

[BUG] Handle Potential Indefinite Propeller Update Loops #4755

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

pvditt
Copy link
Contributor

@pvditt pvditt commented Jan 22, 2024

Tracking issue

#4349

Why are the changes needed?

A user pointed out that they had workflows stuck indefinitely in a update loop with updates failing to write to etcd.

This can happen when:

What changes were proposed in this pull request?

When encountering ErrWorkflowToLarge on an update to etcd, set the phase to Failed if the mutated workflow is already in a terminal state. This should prevent the indefinite loop described in #4349.

How was this patch tested?

  • Added a unit test
  • Manually updated TryMutate to always cause etcd writes to fail on updates. Then ensured that propeller would stop evaluating the workflow.

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

Docs link

…g CRD fails due to ErrWorkflowToLarge

Signed-off-by: Paul Dittamo <[email protected]>
@pvditt pvditt marked this pull request as ready for review January 22, 2024 00:21
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Jan 22, 2024
Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5300e1b) 58.17% compared to head (4859eb1) 58.19%.
Report is 5 commits behind head on master.

❗ Current head 4859eb1 differs from pull request most recent head 3912fb9. Consider uploading reports for the commit 3912fb9 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4755      +/-   ##
==========================================
+ Coverage   58.17%   58.19%   +0.02%     
==========================================
  Files         626      626              
  Lines       53833    53845      +12     
==========================================
+ Hits        31315    31334      +19     
+ Misses      20010    20003       -7     
  Partials     2508     2508              
Flag Coverage Δ
unittests 58.19% <100.00%> (+0.02%) ⬆️

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: Paul Dittamo <[email protected]>
@pvditt pvditt requested a review from hamersaw January 23, 2024 18:54
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 23, 2024
@pvditt pvditt merged commit 70d9c6f into master Jan 23, 2024
43 checks passed
@pvditt pvditt deleted the bug/propeller-stuck-updates branch January 23, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants