-
Notifications
You must be signed in to change notification settings - Fork 108
Support surfacing failing tests on generic jobs #3841
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
Thanks - stamping to unblock! @DanilBaibak - when do you think we can land a v1 of ci-bot on vision PRs? |
Ah looks like #3842 is up - awesome! |
|
The last few commits implement the suggestion from #3841 (comment). The only thing users will have to do is to replace the regular |
seemethere
left a comment
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.
LGTM, thank you for incorporating the feedback! 😄
Compared to CircleCI, GitHub Actions has one major DevX downside: it is really hard to find failing tests in the logs. This happens for two reasons:
CircleCI does this better:
Since we can't do anything about 1. here, this PR goes after 2. to bring some of the DevX from CircleCI to GitHub Actions.
This ability of CircleCI to surface failing tests comes from this builtin functionality: https://circleci.com/docs/collect-test-data/
This works by analyzing a JUnit XML file. This file can be generated by
pytest, which is what the domain libraries are using to run their test suites. Copying from the CircleCI documentation, this is minimal example:This PR introduces a small custom GitHub action that does the same as the
store_test_resultsfrom CircleCI:pytest-results-action. All it does, is to parse the same JUnit XML file and store the results as part of the job summary. The usage is the same:The branch of this PR was used in pytorch/vision#7364 and "stamped" by the
torchvisionmaintainers. Offline, other domain library maintainers also expressed their support for this.Another option currently explored by @DanilBaibak is to bring the full PyTorch HUD including the bot to the domain libraries. This seems like a larger task that might take some time. In the meantime, this PR could drastically improve DevX without wait time.