-
Notifications
You must be signed in to change notification settings - Fork 875
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: gc failure cause workflow restart not working properly #5240
Fix: gc failure cause workflow restart not working properly #5240
Conversation
47040d1
to
18cf8ec
Compare
Codecov ReportBase: 49.69% // Head: 61.26% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5240 +/- ##
===========================================
+ Coverage 49.69% 61.26% +11.56%
===========================================
Files 305 306 +1
Lines 45700 45760 +60
===========================================
+ Hits 22712 28035 +5323
+ Misses 20611 14843 -5768
- Partials 2377 2882 +505
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
f1bc5f8
to
9ec2255
Compare
9ec2255
to
872a5ff
Compare
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
872a5ff
to
43e1f4a
Compare
Backport failed for Please cherry-pick the changes locally. git fetch origin release-1.4
git worktree add -d .worktree/backport-5240-to-release-1.4 origin/release-1.4
cd .worktree/backport-5240-to-release-1.4
git checkout -b backport-5240-to-release-1.4
ancref=$(git merge-base 38aa5220168ed7b1526b99e6c9a81f93d7b30509 43e1f4a38f7d74d6fd84ad01756c15bd7496ba61)
git cherry-pick -x $ancref..43e1f4a38f7d74d6fd84ad01756c15bd7496ba61 |
Backport failed for Please cherry-pick the changes locally. git fetch origin release-1.5
git worktree add -d .worktree/backport-5240-to-release-1.5 origin/release-1.5
cd .worktree/backport-5240-to-release-1.5
git checkout -b backport-5240-to-release-1.5
ancref=$(git merge-base 38aa5220168ed7b1526b99e6c9a81f93d7b30509 43e1f4a38f7d74d6fd84ad01756c15bd7496ba61)
git cherry-pick -x $ancref..43e1f4a38f7d74d6fd84ad01756c15bd7496ba61 |
Backport failed for Please cherry-pick the changes locally. git fetch origin release-1.6
git worktree add -d .worktree/backport-5240-to-release-1.6 origin/release-1.6
cd .worktree/backport-5240-to-release-1.6
git checkout -b backport-5240-to-release-1.6
ancref=$(git merge-base 38aa5220168ed7b1526b99e6c9a81f93d7b30509 43e1f4a38f7d74d6fd84ad01756c15bd7496ba61)
git cherry-pick -x $ancref..43e1f4a38f7d74d6fd84ad01756c15bd7496ba61 |
…#5240) Signed-off-by: Somefive <yd219913@alibaba-inc.com> Signed-off-by: Somefive <yd219913@alibaba-inc.com>
…#5240) Signed-off-by: Somefive <yd219913@alibaba-inc.com> Signed-off-by: Somefive <yd219913@alibaba-inc.com>
Signed-off-by: Somefive yd219913@alibaba-inc.com
Description of your changes
In the past, when application needs to rerun workflow, it will clear the steps status first. However, since steps are array attribute, it cannot be updated through patch request, so it needs update request.
In the case when garbage collection could fail due to the potential problems like cluster disconnection or other things, it will redirect the steps clear to use the patch request, which will cause workflow restart but with outdated step status. This will let the workflow directly finished without any step executed. Then it will further lead to all resources under the application being recycled.
This PR enforces using update request for clear workflow step status, even if the garbage collection fails. I also recommend to add additional check for step finish in workflow. /cc @FogDong
The test added in this PR reproduce this issue and would fail in v1.4.11 if no controller fix is used.
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Special notes for your reviewer