Skip to content
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

Make latest snaphots version agnostic #94

Merged
merged 5 commits into from
Jan 17, 2025

Conversation

annakrystalli
Copy link
Member

@annakrystalli annakrystalli commented Jan 17, 2025

This PR resolves #93 and is designed to make updating tests when new schema are released much smoother

More specifically it adds helper function verify_latest_schema_version() which checks that the schema_id attribute of the output of any of the create_*() family of functions matches the latest available schema version. If it does, it overwrites the schema_id attribute (and schema_version property in a config class object) with "latest".

This in turn means we do not have to update the version number of expected outputs everytime a new schema is released in tests where we want to be checking the outputs of functions against the latest schema.

I also fixed the versions of some tests which weren't testing functionality affected by changes in schema.

I also removed any obsolete mentions of specific branches (these will no longer be required with the new hubUtils workflow anyways in future as the schema under development will be available in the dev version of hubUtils)

Only the contents of the latest schema version are now of interests in tests and not the version numbers themselves. This means we do need to chnage tests everytime a new version is released, unless it actually affects the outputs of functions.
@annakrystalli annakrystalli requested a review from zkamvar January 17, 2025 15:46
Copy link

github-actions bot commented Jan 17, 2025

Copy link
Member

@zkamvar zkamvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

@annakrystalli annakrystalli merged commit 3751927 into main Jan 17, 2025
8 checks passed
@annakrystalli annakrystalli deleted the ak/make-latest-snaphots-version-agnostic/93 branch January 17, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make snapshots of create_* fn family outputs version agnostic
2 participants