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

output skipped executions in dry run #319

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

afeld
Copy link

@afeld afeld commented Jan 22, 2025

This was a change in behavior with 4.0.0 - changing back to outputting the skipped scripts when doing a dry run. Confirmed that it worked:

$ pip install -e ../schemachange/
$ schemachange --config-folder config/dev -f . --dry-run    
...
2025-01-22T04:21:50.176530Z [info     ] Running in dry-run mode. Skipping execution a_script_name=R__4_Create_Service_Accts.sql script_version=N/A
2025-01-22T04:21:50.250614Z [info     ] Running in dry-run mode. Skipping execution a_script_name=R__Network_Policies.sql script_version=N/A

This was a change in behavior with 4.0.0 - changing back to outputting the skipped scripts when doing a dry run.
@afeld
Copy link
Author

afeld commented Jan 24, 2025

My workaround in the meantime, running in verbose mode and then filtering out the noise:

schemachange --config-folder config/dev -f . --dry-run -v | grep -v -E 'no change since the last execution|Script has already been applied|Script checksum has drifted|script found|ignoring non-change file'

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.

1 participant