-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
[gh actions] run artifacts job always #8110
Conversation
Please check if it worked :) |
Hmm, I guess it'd be have been more practical to experiment with the push job and not scheduled - but ok, let's wait - if it's not working, I will attack it on all fronts. |
One more thing: run_all_tests_torch_and_tf_gpu has 3 independent test suite runs and currently if one fails the others don't run! Which is not what is wanted I believe. I suggest that we add |
Yes, that's the idea. I think the intention of the |
OK, It did the trick, see: https://github.com/huggingface/transformers/actions/runs/334754818 So we can apply this Notes:
A Possible workaround: One possible optimization here could be to Please review the outcome/my notes and let me know whether we proceed with this to other jobs. Specifically to moving forward, we probably need to wait for this to be merged: #8007 as it has multiple changes to the CI files. |
i have read your report. It is very clear, thank you. let's try a careful cat solution where we keep the size of the results as small as reasonably possible. one or two screens of text that show which tests failed (and short tracebacks (pytest --tb=short) ). Thanks for the help this is going to be so much easier to use than the status quo. Let me know if further clarifications/decisions would be helpful, and feel free to push back if implementation is difficult. |
wrt/ proposed workaround: Since the proposed quick But also I could probably create wrt/ the rest: it still stands, correct? i.e. we still want the full artifacts in github actions |
Yes, don't see any downside. |
It looks like the errors are generated with either So if we want the short and the long reports, one possibility is to generate the long report and then to try to make it shorter with some regex or some simple truncation - resulting in a short report. Another approach that might work is collecting the failures as they happen - I need to investigate whether I can control the format in that hook or not without impacting the global reporting, as I'm sure that ideally we do want the full long report too. Please correct me if I'm wrong and |
I trust you to make those choices as you see fit. feel free to ignore tb=short. |
I nailed it, got the cake and ate it too. |
This reverts commit b2fd283.
I see that the recently added artifacts job won't run if the test job failed, which defeats the purpose. (example)
After some research it appears that adding
if: always()
may do the trick. Supposedly such a job should always be run regardless of the outcome of the previous jobs. Found it here, documented here.Let's merge and see if it fixes the issue.
@LysandreJik, @sgugger, @sshleifer