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

Refactor binary size script. #4399

Merged
merged 1 commit into from
Feb 6, 2021
Merged

Refactor binary size script. #4399

merged 1 commit into from
Feb 6, 2021

Conversation

yifanyang
Copy link
Contributor

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Feb 3, 2021

⚠️ No Changeset found

Latest commit: 9d28ba2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

Binary Size Report

Affected SDKs

No changes between base commit (3d0cd6f) and head commit (9ab83d9).

Test Logs

Copy link
Member

@Feiyang1 Feiyang1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. Is there any reason for the refactoring? Does it fix any issues?

scripts/size_report/report_binary_size.ts Show resolved Hide resolved
@yifanyang
Copy link
Contributor Author

It looks good to me. Is there any reason for the refactoring? Does it fix any issues?

The issue it fixes is that previously when an exception is thrown when collecting binary size (e.g. in case of a malformed rollup output like what #4382 fixed), the script will leave the corresponding promise unhandled, and eventually let the size job fail silently on CI.

@yifanyang yifanyang merged commit 1d8c113 into master Feb 6, 2021
@yifanyang yifanyang deleted the yifany/size-report branch February 6, 2021 02:36
@firebase firebase locked and limited conversation to collaborators Mar 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants