-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
build: show specifics of test failures in github checks #516
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
Hmm. It successfully uploaded the I don't really know how GitHub Actions works. Do I need to organize the yaml differently? Or do the project's owners need to authorize the use of those third-party Actions? |
@anton-l could you take a look here? |
Hi @keturn, sorry for the late response! We have custom detailed test reports in the GH actions artifacts now: https://github.com/huggingface/diffusers/actions/runs/3100888450 |
The test report artifacts are a means to an end. The goal is to have the reports formatted in a convenient way on the build or the PR. either as inline annotations, as in this example from junit-report-action: or some kind of tabular or drill-down format as we'd see with buildbot or jenkins. Is there any such thing currently? I didn't see any on the run you linked, but I'm not sure if that's because I was looking in the wrong place or maybe there were just no failures on that run to report. |
Currently we only see easily what test failed: https://github.com/huggingface/diffusers/actions/runs/3100888450/jobs/5021661934#step:7:926 but indeed we don't have any specifics. I'd very much welcome a PR that makes this user experience nicer! I currently don't have the time to dig deeper into what exists though. |
This likely depends on what settings you have for which actions may run: https://github.com/huggingface/diffusers/settings/actions It depends on
In addition, it needs to be running with a token with (and could also explain why it doesn't run when I push to this PR, because presumably I can't just make PRs that run arbitrary code with repository write access.) |
build: specify which workflows trigger test_report
6ed562d
to
0063dee
Compare
This is the recommendation from action-junit-report.
@anton-l I let you handle this one :-) |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
I think this is still actionable, stale-bot. |
@keturn looks like pytest annotations aren't as inline as java ones, just a list of errors. Example from another repo, as github disables the annotation API for PRs from forks: https://github.com/agdsn/pycroft/actions/runs/3138025002/jobs/5096982313 Another alternative could be this plugin, but I haven't looked into what it does under the hood yet: https://github.com/utgwkk/pytest-github-actions-annotate-failures |
an HTML-formatted list of test names and their failure messages (with a clear link to it and not buried in a thousand lines of build output) is pretty much what I was going for. though the format as shown in that pycroft example is a terrible way to present that information, as annotations all on |
Exactly! That pytest plugin that I've linked actually formats the errors inline, but I wonder if it can annotate PR tests too. Seems that github doesn't like API calls from workflows triggered by a fork for security reasons, and the JUnit reporter is limited by that. |
Closing this for now as I think the testing as is currently is good enough. Please leave a comment if you disagree. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
* Update README.md * Create profiling_with_iree.md
This uses https://github.com/marketplace/actions/junit-report-action so that the specifics of failed tests will be more visible in the GitHub UI, instead of just "process completed with exit code 1."
report
action should be showing up in https://github.com/huggingface/diffusers/actionspr_tests
andpush_tests
need to be uploaded under different names?