Skip to content

Conversation

@Janpot
Copy link
Member

@Janpot Janpot commented Aug 6, 2025

I'm sure at some point this was testing something useful, but currently, this is testing exactly nothing. Those build folders are always empty at the start of this step and they are gitignored. The whole step is a no-op and has been for a long time.
This will save roughly 1m40s from the runtime

@Janpot Janpot added test scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). labels Aug 6, 2025
@mui-bot
Copy link

mui-bot commented Aug 6, 2025

Netlify deploy preview

https://deploy-preview-46679--material-ui.netlify.app/

Bundle size report

Bundle Parsed Size Gzip Size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against e6d4637

@oliviertassinari
Copy link
Member

History #24188

@Janpot
Copy link
Member Author

Janpot commented Aug 6, 2025

Ok, so that hasn't been doing anything then at least since #37853, where the restore_cache step was removed. I'm removing the save_cache.

@Janpot Janpot marked this pull request as ready for review August 6, 2025 15:36
@zannager zannager requested a review from michaldudak August 8, 2025 12:10
@michaldudak michaldudak requested a review from a team August 11, 2025 06:42
@Janpot Janpot merged commit 8ec198c into mui:master Aug 11, 2025
20 checks passed
@oliviertassinari oliviertassinari changed the title [infra] Remove useless test step [code-infra] Remove useless test step Aug 11, 2025
git add -f packages/mui-material/build || echo '/material declarations do not exist'
git add -f packages/mui-lab/build || echo '/lab declarations do not exist'
git add -f packages/mui-utils/build || echo '/utils declarations do not exist'
pnpm -r build:stable && pnpm -r build:types
Copy link
Member

@oliviertassinari oliviertassinari Aug 11, 2025

Choose a reason for hiding this comment

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

pnpm -r build:stable && pnpm -r build:types

Shouldn't we keep this step? Otherwise, I don't see how:

node scripts/testBuiltTypes.mjs

can work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixing in #46735

The test is testing whether our path aliasing causing imports outside of the package folder during our declaration generation. Better would be to just remove path aliasing altogether from declaration generation and fix all the inconsistencies in our setup. I did that as part of #46500. Will extract these changes on their own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). test typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants