Skip to content

[wip] [ci] doc-job-skip take #4.5 dry-run via github direct edit#8997

Closed
stas00 wants to merge 6 commits intomasterfrom
stas00-patch-1
Closed

[wip] [ci] doc-job-skip take #4.5 dry-run via github direct edit#8997
stas00 wants to merge 6 commits intomasterfrom
stas00-patch-1

Conversation

@stas00
Copy link
Contributor

@stas00 stas00 commented Dec 9, 2020

This is take 4.5 on attempting to find a reliable way to get a list of modified files of this PR. It's identical to #8980 but this PR was created from github UI direct file edit, so as we can see, it doesn't provide CIRCLE_PR_NUMBER - Nothing bad happens, but the check can't be done since we have no information to work with :(

It also happens with PR's made from a non-personal branch, #9015
And the result is that the check is completely skipped as it has no data to work with:
https://app.circleci.com/pipelines/github/huggingface/transformers/17118/workflows/48285d78-cb04-4feb-87f8-77cb02ac2593/jobs/134493

Hoping that circlePR will fix that bug.

This PR:

  • tests a PR submission from non-personal forked repo
  • switches to head.user.login for the username to checkout the branch with - using PR username as it's in the master will not work if the branch is coming from a non-forked repo (original that is). (could also use .head.repo.full_name for the whole thing at once.)

For now I will let this PR sit for a while and add other fixes if we find more edge cases.

@stas00 stas00 closed this Dec 11, 2020
@stas00 stas00 deleted the stas00-patch-1 branch April 27, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant