-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
[CI] skip docs-only jobs take #2 #8853
Conversation
…)" This reverts commit 5530299.
…gface#8852)"" This reverts commit dfec84d.
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.
Thanks for getting to the bottom of this @stas00 !
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.
Thank you for the changes! I'll monitor the jobs this afternoon.
Github actions decided to be down right at the moment where I wanted to monitor 😞 |
Github actions? We are only doing this on circleCI - so far all seems to be working fine. |
Hah, was so disappointed I let it blind me and think it was all CI. Will continue. |
I'm pretty sure the CI should have run on the latest pipeline, as it did in the ones preceding it: https://app.circleci.com/pipelines/github/huggingface/transformers?branch=conda-ci Changes were done to .yml files. |
I believe the issue might come from the fact that it is looking at the build commit (d26ca66) and comparing it to the previous build's commit (4780c80). It doesn't find any files, as the previous build commit (4780c8...) doesn't exist anymore, as I force pushed the branch, overwriting that commit's data. Maybe checking for empty results in the diff would help in that regard? |
OK, I found when we don't have
So the workaround worked. The job continued normally. |
|
OK, so this is another edge case. So this pipeline thing is totally borked :( Why can't it give us a normal commit range of the PR. So let's comment out |
You can comment it out! Thanks! |
So the proposed logic for take 3 will be:
|
Done. |
I'm not sure what you're saying - I think the point is that CircleCI can't find the branching point when the change is done via github file edit. Note that |
Yes I don't do commit by editing files on GitHub, just the PR part, that's why I scratched what I was saying. |
Thank you for clarifying that, @sgugger. Then this lack of |
* restore skip * Revert "Remove deprecated `evalutate_during_training` (huggingface#8852)" This reverts commit 5530299. * check that pipeline.git.base_revision is defined before proceeding * Revert "Revert "Remove deprecated `evalutate_during_training` (huggingface#8852)"" This reverts commit dfec84d. * check that pipeline.git.base_revision is defined before proceeding * doc only * doc + code * restore * restore * typo
So we discovered CircleCI has a problem and
pipeline.git.base_revision
is unreliable - not always set - breaking the test. #8826 (comment)We had a few PRs incorrectly skipping the jobs, as in this example: https://app.circleci.com/pipelines/github/huggingface/transformers/16541/workflows/17b20230-8d7c-4b36-813c-2681f2c8a977/jobs/128232
It's missing
<< pipeline.git.base_revision >>
inresulting in:
and hence fails the test. (it's missing the first hash before
...
).This PR checks that the external variables
pipeline.git.base_revision
andpipeline.git.revision
are set before we do the test. Should one of them be not set, the whole test is skipped and the job continues normally, regardless of whether it's docs only or not.Meanwhile I filed a question about why
pipeline.git.base_revision
is not always set:https://discuss.circleci.com/t/pipeline-git-base-revision-is-often-empty-which-reliable-variable-to-use/38301
Let's merge it at a time that one of us can monitor the next few PRs in case we need to back it out again.
If you have to back it out - you only need to comment out this line:
circleci step halt
and leave the invocations in place.@sgugger, @LysandreJik