[config] Early termination of validation steps on error (#6837)

This commit is contained in:
Clyde Stubbs 2024-06-12 11:26:43 +10:00 committed by GitHub
parent 4bf7c97088
commit 7c843437a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,7 +139,7 @@ class Config(OrderedDict, fv.FinalValidateConfig):
)
def run_validation_steps(self):
while self._validation_tasks:
while self._validation_tasks and not self.errors:
task = heapq.heappop(self._validation_tasks)
task.step.run(self)