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

[core] Optimize studio production build #3755

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jul 4, 2024

Last few weeks we started getting a lot of flaky integration tests. The CI takes much longer to complete since the move to the inline editor. It's timing out quite often trying to build production apps, which is the cause of the flakyness. I noticed we were bundling the monaco workers in production apps. This is unnecessary as the editor is not being used there. On my local this removed about 3/4 of the production build time.

  • Average runtime of our pipeline is now ~22m13s
  • The runtime of this PR's CI: ~15m26s ~30% reduction in total CI time

The main reason for this PR was to fix the flaky CI, but the effect on the bundle sizes of the production Toolpad application is also profound:

master:
Screenshot 2024-07-04 at 15 31 52

This PR:
Screenshot 2024-07-04 at 15 30 17

Lighthouse:

Before:

Screenshot 2024-07-04 at 16 28 26

After:

Screenshot 2024-07-04 at 16 23 21

I address a few more low-hanging fruits in a follow-up PR

@Janpot Janpot added the core Infrastructure work going on behind the scenes label Jul 4, 2024
@Janpot Janpot marked this pull request as ready for review July 4, 2024 13:43
@Janpot Janpot requested a review from a team July 4, 2024 13:43
@Janpot Janpot merged commit 4b35b0e into mui:master Jul 5, 2024
14 checks passed
@Janpot Janpot deleted the optimize-prod-studio branch July 5, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant