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

Fix missing snapshots #1456

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Fix missing snapshots #1456

merged 3 commits into from
Oct 15, 2024

Conversation

WilliamDee
Copy link
Contributor

Context

After merging #1452, seems like snapshots in MF-semantics were missing (CI still passed - odd). But updated those and also updated the script to update snapshots in MF semantics as that seems to be missing.


# Run snapshots changes for metricflow-semantics
# these are not dialect specific, so only need to run once
run_command(f"pytest -x -vv -n 4 --overwrite-snapshots {MF_SEMANTICS_TEST_DIRECTORY}")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

put this to be ran under the duckdb engine only, as we only need to run these updates once since it's not dialect specific

Copy link
Contributor

Choose a reason for hiding this comment

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

Did you test this to make sure it works as expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup!


# Run snapshots changes for metricflow-semantics
# these are not dialect specific, so only need to run once
run_command(f"pytest -x -vv -n 4 --overwrite-snapshots {MF_SEMANTICS_TEST_DIRECTORY}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you test this to make sure it works as expected?

@WilliamDee WilliamDee merged commit 389bdf7 into main Oct 15, 2024
11 checks passed
@WilliamDee WilliamDee deleted the will/fix-snapshots branch October 15, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants