[Merged by Bors] - fix(scripts/yaml_check.py): more consistent error handling#20614
[Merged by Bors] - fix(scripts/yaml_check.py): more consistent error handling#20614bryangingechen wants to merge 3 commits intomasterfrom
Conversation
PR summary 94cc620d6dImport changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
|
Thanks for the quick fix! The new code looks plausible. I'd like to test that it really works, and pushed an intentional error. |
|
🚀 Pull request has been placed on the maintainer queue by grunweg. |
|
That was fast. I think the check-mark is mis-leading, as the "build" job hasn't been run yet. |
|
It fails 🎉 |
|
In other words: I think this is "good to go", once the above things are done. |
b33ad8e to
1da447f
Compare
|
Actually, there is one last detail I just remembered: not any natural number is a valid exit code. |
|
Thanks for testing (and resolving) so quickly! (For the record, since the test commit has disappeared from this PR branch due to a force-push, here's a link to the log of the workflow failing: https://github.com/leanprover-community/mathlib4/actions/runs/12695129220/job/35386640197#step:19:8) This is ready-to-go as far as I'm concerned too now. |
|
bors merge |
Invalid fields in the 100.yaml and 1000.yaml files are slipping through CI at the moment, see e.g. [this log](https://github.com/leanprover-community/mathlib4/actions/runs/12690334474/job/35370960547#step:19:8). After this commit, all errors detected by `yaml_check.py` print a message and increment the `errors` variable, only failing at the end of the script (so that all entries can get checked).
|
Pull request successfully merged into master. Build succeeded: |
Invalid fields in the 100.yaml and 1000.yaml files are slipping through CI at the moment, see e.g. [this log](https://github.com/leanprover-community/mathlib4/actions/runs/12690334474/job/35370960547#step:19:8). After this commit, all errors detected by `yaml_check.py` print a message and increment the `errors` variable, only failing at the end of the script (so that all entries can get checked).

Invalid fields in the 100.yaml and 1000.yaml files are slipping through CI at the moment, see e.g. this log.
After this commit, all errors detected by
yaml_check.pyprint a message and increment theerrorsvariable, only failing at the end of the script (so that all entries can get checked).