-
Notifications
You must be signed in to change notification settings - Fork 1
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
More fine-grain control for QA checks on development branches #99
Comments
I think we need this anyway, so that dev- and release- branches can use different markers. Would the marker be used for all
I think we need to remove this, because by definition the configuration needs releasing before a paper is written about it. |
I think for configurations in alpha/beta development as once there's a release- branch associated with a dev- branch, it probably should be passing the full set of QA checks (?). So using the |
My preference would be |
Oh i think we just said the same thing :-) |
Is this being worked on ? Planned to be worked on in the short(ish) term ? |
Not currently worked on - but I'll try have a look at it today to try quickly get something working. |
As brought up by @anton-seaice in ACCESS-NRI/access-om3-configs#162, some of the QA tests are too onerous for configurations during development.
Currently with how the tests are set up, pytest markers are used to specify what tests to run. There is some configuration options in the
config/ci.json
file in themain
branch of model-configs repositories (e.g., https://github.com/ACCESS-NRI/access-om3-configs/blob/main/config/ci.json and some docs on how to modify this file). This file defines the default pytest markers to run for each style of tests (e.g.qa
), and options to specify a specific marker for the target branch. E.g. the below config would use"some_marker"
for QA pytests for PRs that are being merged intodev-1deg_jra55do_ryf
:One improvement would be to allow regex matching, e.g. "dev-*", rather than having to specify many branches. This will require some modifications to the action that parses this config files: https://github.com/ACCESS-NRI/model-config-tests/blob/main/.github/actions/parse-ci-config/action.yml
The other thing will be figuring out a list of QA checks that we might not want to run on dev branches - some examples are already listed in the above linked issue are:
test_runlog_is_on
test_restart_freq_is_date_based
test_metadata_contains_field
for 'reference' - maybe just have the metadata tests that check there isn't an experiment UUID?I guess the most minimal change would be adding a
@pytest.mark.config_dev
(or similar) decorator above tests to run for configs early in development, and adding this marker here:model-config-tests/src/model_config_tests/conftest.py
Lines 117 to 119 in 8dc948e
The text was updated successfully, but these errors were encountered: