-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add flaky to a queue related test. #8108
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
Conversation
|
@karajan1001, do you know why this happens? Is there something that we can fix? |
Currently not, this behavior happens after I add some other unit test (in which I mocked some methods). Need some detailed investigation. |
|
One example of fixture setup error. This is a celery timeout error, and I guess it comes out when the celery starts when we have a heavy CPU load. It can't get enough resources? |
48053b7 to
69834fb
Compare
|
@karajan1001, is it possible to increase the timeout then? |
69834fb to
ada6061
Compare
This is a flaky, the queue tasks status might remain "Running" even if it had already been completed, beside sometimes I also noticed it raise a pytest fixture error.
ada6061 to
90f79b7
Compare
|
We can probably disable the default pytest-celery worker ping timeout: it should just need to be set in our fixture: |
This is a flaky, the queue tasks status might remain "Running" even if
it had already been completed, beside sometimes I also noticed it raise
a pytest fixture error.
❗ I have followed the Contributing to DVC checklist.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. 🙏