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] Fix Netlify build cache issue #43281

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented Aug 13, 2024

Replicate the change in: mui/mui-x#14182.

It looks like this setting was the culprit of sporadic Netlify behavior such as pulling a stale cache on some builds.

@LukasTy LukasTy added core Infrastructure work going on behind the scenes scope: code-infra Specific to the core-infra product labels Aug 13, 2024
@LukasTy LukasTy self-assigned this Aug 13, 2024
@mui-bot
Copy link

mui-bot commented Aug 13, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 3dd0d09

@LukasTy LukasTy requested a review from a team August 13, 2024 11:59
@@ -9,7 +9,6 @@

[build.environment]
NODE_VERSION = "18"
PNPM_FLAGS = "--shamefully-hoist"
Copy link
Member

Choose a reason for hiding this comment

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

Related discussion: mui/mui-x#14182 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

From what I understand, Core shouldn't need this flag (see mui/mui-x#14182 (comment))

Copy link
Member Author

Choose a reason for hiding this comment

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

Which Netlify functions are we talking about?
cc @michaldudak
mui-x also has a function, which is running without problems. 🤔
Or do you mean this function: https://github.com/mui/material-ui/blob/next/netlify/functions/feedback-management.mts?
AFAIK, all of the dependencies used by this function are in the root package.json. 🤔

Copy link
Member

Choose a reason for hiding this comment

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

As noted in mui/mui-x#14182 (comment), this now seems to work without the flag, which wasn't the case when I did the pnpm migration.

@LukasTy LukasTy merged commit 8451673 into mui:next Aug 16, 2024
21 checks passed
@LukasTy LukasTy deleted the fix-netlify-build-cache branch August 16, 2024 14:15
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 scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants