forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add common code and utils to implement ER pre-commit in a clearer way (…
…apache#35875) * Add common code and utils to implement ER pre-commit in a clearer way Extracts comon initialization code for pre-commits that allows to use a simpler way of running pre-commits with breeze ci image. Rather than running a custom `docker` command, we are using the `breeze shell` command to run the command inside the image. We are also fixing a problem where the ER diagram was generated using random backend - we force it now to use Postgres as backend. There are few small problems solved as part of it as well: * We are also switching the console used to be the standard colored one so that the output will use colors also in git hook and CI. * When image needs update we are going to warn about it in the builds that are "serial" (i.e. do not run in parallell) that the image should be upgraded. We are not doing it for checks that use parallelism because it would pollute the output too much (and those are usually not run with images anyway). * There was an error where pre-commit run with breeze would also start port-forwarding if database was started together with it, so pre-commit project no longer adds port forwarding for backends. * If there was a database stated as part of pre-commit project, it would continue running after pre-commit completed, which is undesireable. The pre-commit will now stop pre-commit project after completion. * Update dev/breeze/src/airflow_breeze/utils/md5_build_check.py Co-authored-by: Pankaj Koti <[email protected]> --------- Co-authored-by: Pankaj Koti <[email protected]>
- Loading branch information
1 parent
5767080
commit f3a6cdb
Showing
16 changed files
with
1,682 additions
and
1,570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.