-
Notifications
You must be signed in to change notification settings - Fork 110
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
Have integration tests run with both scheduler and job queue #6787
Have integration tests run with both scheduler and job queue #6787
Conversation
83f0daf
to
40a8c94
Compare
d965583
to
73d6c6d
Compare
Recommend to do |
Should the moving around of tests be in a separate commit? |
I only moved parts of the files, but that is by far the main part of the commit. I think I would reword the commit message instead |
For the tests that use the pytest snapshot feature, you need to |
tests/conftest.py
Outdated
@@ -245,6 +245,20 @@ def excepthook(cls, exc, tb): | |||
monkeypatch.setattr(sys, "excepthook", excepthook) | |||
|
|||
|
|||
@pytest.fixture(params=[False, True]) | |||
def try_queue_and_scheduler(request, monkeypatch): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, the test that is being decorated with this fixture also needs to specify the monkeypatch
fixture. Don't know why (otherwise it will silently ignore the request to enable scheduler).
b93ade0
to
b0ef19e
Compare
ab0b359
to
dff5199
Compare
dff5199
to
1660d9c
Compare
@pytest.mark.integration_test | ||
def test_that_surfaces_retain_their_order_when_loaded_and_saved_by_ert( | ||
copy_case | ||
copy_case, try_queue_and_scheduler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
monkeypatch needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to commit the changes...
1660d9c
to
2f19c04
Compare
Still two snapshots missing? |
There are snapshots to be updated @jonathan-eq, but very good work nevertheless! |
Yes, it seems they updated ES-MDA so I will wait until they update the snapshots |
c006aab
to
3c8e24b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6787 +/- ##
==========================================
+ Coverage 83.86% 83.89% +0.03%
==========================================
Files 365 365
Lines 21440 21440
Branches 948 948
==========================================
+ Hits 17980 17988 +8
+ Misses 3166 3158 -8
Partials 294 294 ☔ View full report in Codecov by Sentry. |
3c8e24b
to
966a609
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
d047b62
to
a98c8be
Compare
This commit moves all integration tests (the ones marked with pytest.mark.integration_tests atleast) to a new directory tests/integration_tests.
This commits adds the pytest.mark.scheduler mark and scheduler fixture to some of the integration tests, so that they will be ran with both the scheduler and job queue.
a98c8be
to
83134a0
Compare
Issue
Resolves #6756
Add pytest scheduler custom mark and fixture, indicating that an integration test will be ran with both old job queue and new scheduler.
The commit in this PR also moves all integration tests (atleast those marked with integration_test) to a new integration test directory.