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

Regenerate all JSON tests #1668

Merged
merged 2 commits into from
Sep 25, 2024
Merged

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Sep 24, 2024

This PR aims to fix an issue introduced in #1660. By using make -B we can unconditionally make all targets, meaning that file modification times don't come into effect. This should catch issues as the one in #1660, as re-running make without modifying the original YAML file did not yield an updated JSON file.

This also resulted in two additional JSON tests being updated with changes introduced a while back.

@alcaeus alcaeus requested review from a team as code owners September 24, 2024 06:20
@alcaeus alcaeus requested review from jmikola and a team and removed request for a team and jmikola September 24, 2024 06:20
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@joshbsiegel joshbsiegel left a comment

Choose a reason for hiding this comment

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

LGTM. It might be worth considering getting rid of the make that's ran at the end of generate-error-tests.py as the make -B change should take care of that.

@alcaeus
Copy link
Member Author

alcaeus commented Sep 25, 2024

It might be worth considering getting rid of the make that's ran at the end of generate-error-tests.py as the make -B change should take care of that.

I think the idea of that script is to ensure that tests are updated after running locally. I'd like to take a look at that separately.

@alcaeus alcaeus merged commit 64c1692 into mongodb:master Sep 25, 2024
4 checks passed
@alcaeus alcaeus deleted the force-regenerate-json branch September 25, 2024 05:57
isabelatkinson pushed a commit to isabelatkinson/specifications that referenced this pull request Sep 25, 2024
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.

3 participants