-
Notifications
You must be signed in to change notification settings - Fork 56
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
Use success() condition in the soak workflow #345
base: main
Are you sure you want to change the base?
Conversation
@@ -251,7 +253,7 @@ jobs: | |||
-a ${{ matrix.architecture }} | |||
- name: Set output if layer Soak Tests has error | |||
id: set-layer-if-error-output | |||
if: ${{ failure() }} | |||
if: ${{ success() }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the official documentation for success()
existing? I have found the docs for failure().
Also, can you expand why this change is necessary? From what I can see this step only needs to happen if a previous step fails, not if it is successful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, found the docs for success()
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah added the description for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would we want to run echo "::set-output name=${{ matrix.language }}-${{ matrix.instrumentation-type }}-error::FAILED"
if the previous steps were successful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think i could improve this PR.
This PR is stale because it has been open 60 days with no activity. |
This PR is stale because it has been open 60 days with no activity. |
This PR is stale because it has been open 60 days with no activity. |
Description:
This PR is created to use success()s instead of failure(). The reason for this change is that it is not necessary to check the ancestors jobs, which would lead not getting o/p layer ARNeven when succeed in re-runs.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.