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

Avocado instrumented timeout in setUp and tearDown fix #6015

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

richtja
Copy link
Contributor

@richtja richtja commented Aug 29, 2024

This commit is a fix for avocado-instrumented timeouts. When the tests are interrupted due to timeout during setUp or tearDown method, those tests would result in ERROR instead of INTERRUPTED. This commit updates the exception handling of this method to fix this issue.

Reference: #6013

@richtja richtja added the bug label Aug 29, 2024
@richtja richtja self-assigned this Aug 29, 2024
@mr-avocado
Copy link

mr-avocado bot commented Aug 29, 2024

Dear contributor,
Avocado is currently at the end of sprint 107, therefore we are in feature freeze state.
Please avoid merging changes that do not fall into these categories:

  • Bug fixes
  • Documentation updates

The feature freeze will be active until the release planned on September 02, 2024.

Copy link
Contributor

@clebergnu clebergnu left a comment

Choose a reason for hiding this comment

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

Hi @richtja,

I don't think this is the best combination of "example test" and functional test. What I mean is, this change, as is, will probably make users more confused about what is going on here.

I support adding examples for timeouts for setup, teardown, but most probably without the extra code that using it as a functional test requires.

Other than that, it LGTM.

examples/tests/timeouttest.py Outdated Show resolved Hide resolved
@richtja richtja force-pushed the timeout_results_error branch 2 times, most recently from 7063d0a to e218202 Compare September 16, 2024 10:40
This commit is a fix for avocado-instrumented timeouts. When the tests
are interrupted due to timeout during `setUp` or `tearDown` method,
those tests would result in `ERROR` instead of `INTERRUPTED`. This
commit updates the exception handling of this method to fix this issue.

Reference: avocado-framework#6013
Signed-off-by: Jan Richter <[email protected]>
@richtja
Copy link
Contributor Author

richtja commented Sep 16, 2024

Hi @clebergnu, thanks for your review. I have updated the tests via force-push. Please have a look.

Copy link
Contributor

@clebergnu clebergnu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@clebergnu clebergnu merged commit fc470ad into avocado-framework:master Sep 18, 2024
57 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done 108
Development

Successfully merging this pull request may close these issues.

2 participants