-
Notifications
You must be signed in to change notification settings - Fork 280
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
rewrite load tests with the pytest framework #3154
rewrite load tests with the pytest framework #3154
Conversation
Since this change alone doesn't trigger the problematic job on Jenkins (yt_py38_unittests), we should see the interesting results in #3062 instead |
Ah yes, this test file is actually part of the nose-based GH workflow as well, so no wonder this crashes as well. |
Note that in #3062's log we can see that it didn't fix the problem: my tests relying on tmp dir are apparently broken on fido no matter how I write them (while they work in any case locally) |
Would you mind renaming this PR to something clearer since you're only modifying one test? It's helpful when I'm writing the changelog. |
py38_unittests passes and new tests were run.
I'm not sure how to quantify the increase of technical debt introduced by 030b3e7 but I hope it's on the acceptable level. There's no need to wait for nose to be fully dropped. |
It's actually 8 tests but yeah it's only one file. I'll update the title |
@yt-fido test this please |
It seems reasonable to me, with the condition that the test file is still run somewhere, and that it will eventually be tested in GH workflows again. To be clear, where is that commit from ? is it part of any active PR, or were you suggesting I apply it here ? |
It's already here (see commits). I used the sneaky "feature" that allows me to remotely hack your github repo. |
Ok cool, fine by me. Thanks for doing this ! |
PR Summary
I'm experiencing issues with these tests running on pytest in #3062, specifically:
https://tests.yt-project.org/job/yt_py38_unittests/18/testReport/junit/yt.tests/test_load_errors/test_load_nonexistent_data/
I originally wrote these tests for pytest but had to rewrite them to get them merged, so I'm rewriting them back in hopes that will help fixing the initial problem in #3062
For reference I could not reproduce the issue locally but I assume pytest + Jenkins is less well behaved with tests using a different framework.