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

Avoid failed workflow if a pytest fails #47

Open
3 tasks
davidcr01 opened this issue Sep 3, 2024 · 0 comments
Open
3 tasks

Avoid failed workflow if a pytest fails #47

davidcr01 opened this issue Sep 3, 2024 · 0 comments
Labels
level/task Task issue type/change Change performed in a resource or Wazuh Cloud environment

Comments

@davidcr01
Copy link
Contributor

Description

We want to modify the Python test migrated in #20. In the Python test, if a pytest function fails, the complete task fails. For example, in the following GHA, the workflow fails because of a failed pytest: wazuh/wazuh#25534

Although this behavior is correct, we want to make the workflow finish with other success, rather than fail in this kind of case. It seems that there are more options rather than success or failure in GitHub Actions, something like a warning exit code.

Tasks

  • Decide the workflow exit status when a pytest fails
  • Apply the change
  • Validate the new behavior
@davidcr01 davidcr01 added level/task Task issue type/change Change performed in a resource or Wazuh Cloud environment labels Sep 3, 2024
@wazuhci wazuhci moved this to Triage in Release 5.0.0 Sep 3, 2024
@wazuhci wazuhci moved this from Triage to Backlog in Release 5.0.0 Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/change Change performed in a resource or Wazuh Cloud environment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant