-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up provider validation pre-commit (#28541)
The provider validation pre-commit is now a lot slower after #28516 but it turned out that it has been also doing a little too much. It worked in the way (against the original design) that when any provider.yaml changed, validation was actually performed for all the providers, not only for those changed. This change improves the regular speed of running this validation when one or few providers are changed in the commit. It's not only limiting the validation to those provider.yaml files that changes but also performing subset of validations on those changed files if not all providers are changed or --all-files are not used (because some of the validations involving documentation and cross-provider dependencies require all provider.yaml files to be loaded and validated). The validation is still done in one "docker run" command though.
- Loading branch information
Showing
3 changed files
with
9 additions
and
7 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