-
Notifications
You must be signed in to change notification settings - Fork 19
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
Drop unittest for integration and system tests #949
base: main
Are you sure you want to change the base?
Conversation
launch jenkins all balfrin tsa |
daint🟢 unit test
|
balfrin🟢 unit test
🟢 integration test
🔴 system test
WARNING: Serial tests did not run for system tests |
|
||
def test_tensorflowc(self): | ||
spack_spec('tensorflowc') | ||
@pytest.mark.infero |
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.
What happens if the marker is missing?
Because I think it will only be a matter of time until someone forgets one.
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.
If the marker is missing the test is not in a give scope, so it is not executed
@pytest.mark.cosmo | ||
@pytest.mark.parametrize( | ||
'variant', ['cosmo_target=gpu ~cppdycore', 'cosmo_target=cpu ~cppdycore']) | ||
def test_cosmo_spec_with_variant(variant: str): | ||
spack_spec(f'cosmo {variant}') |
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.
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.
Since we don't rely on parsing function/clasee-names anymore conditional tests need a marker.
I agree this is a bit too verbose, but at least it is bullet-proof.
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.
But prone to be forgotten, misspelled or wrong because of a copy-past mistake.
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.
That's what review are for ;-)
An other option would be to create the marker on the fly based on the function name, itself prone to be forgotten or misspelled.
I went for that approach to also simplify the log-filename creation.
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 added some code comments.
launch jenkins balfrin daint all |
balfrin🟢 unit test
🔴 integration test
WARNING: Serial tests did not run for system tests |
daint🟢 unit test
🔴 integration test
WARNING: Serial tests did not run for system tests |
launch jenkins all daint balfrin |
daint🟢 unit test
🟢 integration test
🔴 system test
WARNING: Serial tests did not run for system tests |
balfrin🟢 unit test
🟢 integration test
🔴 system test
WARNING: Serial tests did not run for system tests |
launch jenkins daint balfrin py-gt4py infero |
balfrin🟢 unit test
🟢 integration test
|
daint🟢 unit test
🟢 integration test
🔴 system test
|
Replace unittest with pure pytest, see #945
Additionally
devirtualize_env
became a pytest.fixtures and is explicitly added to all relevant tests.