Silence stdout psql when import SQL
What does this MR do and why?
Silence stdout psql
when import SQL to reduce the trace size.
Context: While reviewing https://gitlab.com/gitlab-org/gitlab/-/jobs/6226975975#L912 I noticed that
psql
echos all input to stdout which contributes to the majority of the trace log size (14k lines).
Additionally !145928 (comment 1791339169) adding -v "ON_ERROR_STOP=1"
to fail CI if the import failed
Closes db:migrate:multi-version-upgrade: Silence stdou... (#442778 - closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Testing
psql
command has silence output now - https://gitlab.com/gitlab-org/gitlab/-/jobs/6269158695#L874
How to set up and validate locally
Edited by Nailia Iskhakova