-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Add CI job that detects unused baselines #54141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.github/workflows/ci.yml
Outdated
| run: | | ||
| if ! git diff --exit-code --quiet; then | ||
| echo "::group::npm test" | ||
| npm test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This extra test ensures that the tests still pass after the baselines are removed. But, I think I'm going to drop this, because theoretically anyone who fails this pass will delete the unused baselines and then push their code up, having it rerun.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This was really only a concern when we still had baselines that weren't produced by npm test, e.g. the docker and user baselines, which I have since removed.)
|
Just to show before I fix them: https://github.com/microsoft/TypeScript/actions/runs/4895891571/jobs/8742024956?pr=54141 |
This can catch things like #54140.