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

Fix download-build script #25493

Merged
merged 1 commit into from
Oct 16, 2022
Merged

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Oct 16, 2022

The download-build script works by scraping the CircleCI job number from the GitHub status API. Yes, I know this is super hacky but last I checked this was the least bad of not a lot of options. Because the response is paginated, sometimes the status for the build job exceeds the page size.

This increases the page size to 100 so this is less likely to happen.

It'd be great to find a better way to download the artifacts. I don't love how brittle this solution is. I think switching to the GitHub Checks API might be worth trying, but last I looked into it, it has other flaws.

The download-build script works by scraping the CircleCI job number from
the GitHub status API. Yes, I know this is super hacky but last I
checked this was the least bad of not a lot of options. Because the
response is paginated, sometimes the status for the build job exceeds
the page size.

This increases the page size to 100 so this is less likely to happen.

It'd be great to find a better way to download the artifacts. I don't
love how brittle this solution is. I think switching to the GitHub
Checks API might be worth trying, but last I looked into it, it has
other flaws.
@acdlite acdlite requested a review from sebmarkbage October 16, 2022 23:12
@acdlite acdlite marked this pull request as ready for review October 16, 2022 23:12
@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Oct 16, 2022
@acdlite
Copy link
Collaborator Author

acdlite commented Oct 16, 2022

Will merge if download_base_build_for_sizebot job succeeds

@acdlite acdlite merged commit 3ba788f into facebook:main Oct 16, 2022
@sizebot
Copy link

sizebot commented Oct 16, 2022

Comparing: 780eacd...d18fe58

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 135.64 kB 135.64 kB = 43.46 kB 43.46 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 149.95 kB 149.95 kB = 47.92 kB 47.92 kB
facebook-www/ReactDOM-prod.classic.js = 492.46 kB 492.46 kB = 87.65 kB 87.65 kB
facebook-www/ReactDOM-prod.modern.js = 477.72 kB 477.72 kB = 85.45 kB 85.45 kB
facebook-www/ReactDOMForked-prod.classic.js = 492.46 kB 492.46 kB = 87.65 kB 87.65 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against d18fe58

rickhanlonii pushed a commit that referenced this pull request Dec 3, 2022
The download-build script works by scraping the CircleCI job number from
the GitHub status API. Yes, I know this is super hacky but last I
checked this was the least bad of not a lot of options. Because the
response is paginated, sometimes the status for the build job exceeds
the page size.

This increases the page size to 100 so this is less likely to happen.

It'd be great to find a better way to download the artifacts. I don't
love how brittle this solution is. I think switching to the GitHub
Checks API might be worth trying, but last I looked into it, it has
other flaws.
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.

3 participants