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(scripts): Remove test output regeneration script #3105

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

andrewmbenton
Copy link
Collaborator

@andrewmbenton andrewmbenton commented Jan 4, 2024

This script no longer works, since test output now depends on a "context" and a significant amount of output relies on using a sqlc cloud managed database. So we should just remove the script.

Resolves #3097

@kyleconroy kyleconroy merged commit 023ab78 into main Jan 4, 2024
8 checks passed
@kyleconroy kyleconroy deleted the andrew/remove-make-regen branch January 4, 2024 01:21
@Jille
Copy link
Contributor

Jille commented Jan 4, 2024

What's the expected workflow for testing changes? How do I verify a codegen change doesn't affect more than I expect?

@andrewmbenton
Copy link
Collaborator Author

The existing tests will still fail when run if you make a change that modifies their output.

The regen script was mostly used to bump the sqlc version string in code comments in test output. We have another way to do that now though.

To create expected output for a new test, you can make sqlc-dev and then manually run sqlc-dev generate in the test directory.

This pull request was closed.
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 regen is broken
3 participants