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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove verbose from db migrate commands #936

Merged
merged 2 commits into from Dec 23, 2022

Conversation

Jozzey
Copy link
Contributor

@Jozzey Jozzey commented Dec 23, 2022

DEFRA/water-abstraction-team#65

We needed to add a large data migration to fix an issue. The fix worked but it broke CI. GitHub actions started erroring when the migrations ran with ##[error]stderr maxBuffer length exceeded.

Unlike locally, where only the latest migrations are run, in CI all migrations are run all the time and our 2.5k SQL script (馃槼 馃榿 ) was obviously the straw that broke the camel's back.

We realised that so much was outputting because all our migration scripts have the --verbose flag set. When we removed it in this case, the problem was solved.

We don't need to see it, and it might avoid the same problem from happening to other repos. So, this issue is about going through the repos and removing --verbose from any migrate commands.

DEFRA/water-abstraction-team#65

We needed to add a large data migration to fix an issue in . The fix worked but it broke CI. GitHub actions started erroring when the migrations ran with ##[error]stderr maxBuffer length exceeded.

Unlike locally, where only the latest migrations are run, in CI all migrations are run all the time and our 2.5k SQL script (馃槼 馃榿 ) was obviously the straw that broke the camel's back.

We realised that so much was outputting because all our migration scripts have the --verbose flag set. When we removed it in this case, the problem was solved.

We don't need to see it, and it might avoid the same problem from happening to other repos. So, this issue is about going through the repos and removing --verbose from any migrate commands.
@Jozzey Jozzey added the housekeeping Refactoring, tidying up or other work which supports the project label Dec 23, 2022
@Jozzey Jozzey self-assigned this Dec 23, 2022
@Jozzey Jozzey marked this pull request as ready for review December 23, 2022 14:36
@Jozzey Jozzey merged commit 1112be1 into main Dec 23, 2022
@Jozzey Jozzey deleted the remove-verbose-from-db-migrate-commands branch December 23, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
2 participants