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

Feat/task allow failure #2557

Merged
merged 3 commits into from
Nov 23, 2023
Merged

Feat/task allow failure #2557

merged 3 commits into from
Nov 23, 2023

Conversation

loicmathieu
Copy link
Member

@loicmathieu loicmathieu commented Nov 17, 2023

Fixes #2248

To QA, you can use as example the test YAML that has been added.

For runnable tasks, the attempts will be in FAILED state as we cannot know that we need to restart an attempt if it is in WARNING as WARNING can come from the task execution itself and not the allowFailure handling code.

@loicmathieu loicmathieu marked this pull request as draft November 17, 2023 17:07
Copy link
Member

@anna-geller anna-geller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that was fast!

Can we add a description for the docs: "Whether the task is allowed to fail."?

@loicmathieu
Copy link
Member Author

Can we add a description for the docs: "Whether the task is allowed to fail."?

Unfortunately not directly in the code.
The task common properties are not documented in the code as they didn't appear in the generated documentation to avoid repeating on all task documentation all common tasks.
These properties are documented only in the documentation site.

@loicmathieu loicmathieu force-pushed the feat/task-allowFailure branch 2 times, most recently from 98dc114 to ed1162a Compare November 20, 2023 11:01
@loicmathieu loicmathieu marked this pull request as ready for review November 20, 2023 11:02
@loicmathieu loicmathieu force-pushed the feat/task-allowFailure branch from ed1162a to e65a53e Compare November 20, 2023 13:52
@anna-geller
Copy link
Member

LGTM - let's assign someone for tech review and merge 👍

@anna-geller anna-geller requested a review from Skraye November 21, 2023 00:01
Copy link
Member

@Skraye Skraye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@loicmathieu loicmathieu force-pushed the feat/task-allowFailure branch from e65a53e to 9105d3e Compare November 23, 2023 09:20
@loicmathieu loicmathieu force-pushed the feat/task-allowFailure branch from 9105d3e to ce3e071 Compare November 23, 2023 10:28
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

78.1% 78.1% Coverage
3.7% 3.7% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@loicmathieu loicmathieu merged commit 379133c into develop Nov 23, 2023
5 of 6 checks passed
@loicmathieu loicmathieu deleted the feat/task-allowFailure branch November 23, 2023 12:06
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.

Add allowFailure boolean flag to the core task
3 participants