Skip to content
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

Fallback if GitHub status is stuck as "pending" #20729

Merged

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Feb 3, 2021

GitHub's status API is super flaky. Sometimes it reports a job as "pending" even after it completes in CircleCI. If it's still pending when we time out, return the build ID anyway.

(The location of the retry loop is a bit weird. We should probably combine get-build-for-id with download-build-artifacts, and wrap the retry loop around the whole thing.)

GitHub's status API is super flaky. Sometimes it reports a job as
"pending" even after it completes in CircleCI. If it's still pending
when we time out, return the build ID anyway. TODO: The location of the
retry loop is a bit weird. We should probably combine this function with
the one that downloads the artifacts, and wrap the retry loop around the
whole thing.
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 3, 2021
@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 3, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 20aa1f5:

Sandbox Source
React Configuration

@acdlite acdlite force-pushed the fallback-if-github-status-api-is-stuck branch 2 times, most recently from 398cec4 to 20aa1f5 Compare February 3, 2021 23:23
@sizebot
Copy link

sizebot commented Feb 3, 2021

Size changes

Comparing: 3be750e...20aa1f5

Stable channel

No significant bundle size changes to report.

Experimental channel

No significant bundle size changes to report.

Generated by 🚫 dangerJS against 20aa1f5

@acdlite
Copy link
Collaborator Author

acdlite commented Feb 3, 2021

Going to merge this to unbreak #20728

@acdlite acdlite merged commit 00e38c8 into facebook:master Feb 3, 2021
koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
GitHub's status API is super flaky. Sometimes it reports a job as
"pending" even after it completes in CircleCI. If it's still pending
when we time out, return the build ID anyway. TODO: The location of the
retry loop is a bit weird. We should probably combine this function with
the one that downloads the artifacts, and wrap the retry loop around the
whole thing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants