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

Remove UMD list from bundle size comparison code #162

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented May 9, 2024

UMD bundle is being removed in mui/material-ui#42172.

I don't have access to add labels and ask for reviewers.

If it looks good, how the deployment is done? What's the process? Will it impact PRs cherry-picked for v5?

@ZeeshanTamboli ZeeshanTamboli changed the title Remove UMD bundle size comparison code Remove UMD list from bundle size comparison code May 9, 2024
@ZeeshanTamboli
Copy link
Member Author

@Janpot or @oliviertassinari Can you take a look at this?

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

If it looks good, how the deployment is done?

It's hosted on netlify and should just deploy once we merge. I'm no quite sure why the deploy preview isn't working.

Will it impact PRs cherry-picked for v5?

Yes, I guess we could postpone merging this until v5 is fully unsupported?

@oliviertassinari
Copy link
Member

oliviertassinari commented May 10, 2024

I'm no quite sure why the deploy preview isn't working.

I have updated CircleCI and Netlify config to be friendly with forks. I think we didn't consider this use case enough. Let's see if it's enough.

SCR-20240511-bzpj

https://app.circleci.com/settings/project/github/mui/mui-public/advanced

@@ -23,11 +20,6 @@ function getMainBundleLabel(bundleId: string): string {
.replace(/^@material-ui\/unstyled$/, '@mui/core')
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.replace(/^@material-ui\/unstyled$/, '@mui/core')
.replace(/^@material-ui\/unstyled$/, '@mui/base')

Actually, it would make more sense to me to host the label logic in https://s3.eu-central-1.amazonaws.com/mui-org-ci/artifacts/master/latest/size-snapshot.json:

Suggested change
.replace(/^@material-ui\/unstyled$/, '@mui/core')

@@ -262,11 +262,6 @@ const CompareTable = memo(function CompareTable({
});
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to keep the contributor-dashboard-legacy tool?

Suggested change
});

@@ -2,9 +2,6 @@
import axios from 'axios';

function getMainBundleLabel(bundleId: string): string {
Copy link
Member

Choose a reason for hiding this comment

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

I feel like by default we should use the bundleId. @material-ui/core/Textarea looks clearer than TextareaAutosize to me. I recall Sebastian wanted the bundleId to never change so we could always compare sizes with any previous build. While I admire Sebastian for the depth at which he's considering problems, I never felt that this was matching the use case for the tool, removing this constraint feels more pragmatic.

In any case, if we want to keep bundleId immutable, it still feels like we would do this: https://github.com/mui/mui-public/pull/162/files#r1597223021, moving the labels logic to each repository, not have it in https://github.com/mui/mui-public.

@oliviertassinari oliviertassinari added scope: tools Toolpad support apps scope: code-infra Specific to the core-infra product and removed scope: tools Toolpad support apps labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants