Skip to content

fix: stage status in case of retries #150

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dharanikesav
Copy link

@dharanikesav dharanikesav commented Feb 20, 2025

When a retry block is used inside a stage and the step failed in first attempt but passed in one of the subsequent attempts, expected stage result is "Success", expected build result is "Success" but the actual stage result is "Failure", actual build result is "Success". Screenshot of this bug is attached below (check second stage in build 36900 and third stage in build 36899 ).

image

Fix implemented:
While debugging, i noticed that this failure status is returned from WarningAction condition. So, have added another condition to check run result, so that this condition does not return failure when run result is success.

Testing done

Have tested this change locally with following test cases:

  • Successful Stage without retry step
  • Failed Stage without retry step
  • Successful Stage with retry step
  • Failed Stage with retry step

below is the screenshot of stage view of local test execution
image

@dharanikesav dharanikesav requested a review from a team as a code owner February 20, 2025 09:32
@dharanikesav
Copy link
Author

Hi @jglick ,

Please review this PR

@jglick
Copy link
Member

jglick commented Mar 26, 2025

@olamy maybe. AFAIK this API is only used by Stage View, which is mostly unmaintained.

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