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

[ci] Fix CI failing due to Recharts console error #4576

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

bharatkashyap
Copy link
Member

@bharatkashyap bharatkashyap commented Jan 4, 2025

  • "alpha" causes a setState call related warning to show up in the console and fail the test

@bharatkashyap bharatkashyap added the scope: infra Org infrastructure work going on behind the scenes label Jan 4, 2025
@mui-bot
Copy link

mui-bot commented Jan 4, 2025

Netlify deploy preview

https://deploy-preview-4576--mui-toolpad-docs.netlify.app/

Generated by 🚫 dangerJS against 4bdaa23

@bharatkashyap bharatkashyap marked this pull request as ready for review January 6, 2025 05:34
@bharatkashyap bharatkashyap requested a review from Janpot January 6, 2025 06:04
@@ -15,6 +15,13 @@ test.use({
localAppConfig: {
cmd: 'dev',
},
ignoreConsoleErrors: [
// React setState warning inside "Recharts"
Copy link
Member

Choose a reason for hiding this comment

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

Is there a bug in recharts? Or are we holding it wrong on toolpad side?

Copy link
Member Author

@bharatkashyap bharatkashyap Jan 6, 2025

Choose a reason for hiding this comment

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

I couldn't find a Recharts bug report, but also couldn't find anything we're doing wrong with Recharts in the test that's failing

Copy link
Member

Choose a reason for hiding this comment

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

Is it reproducible in isolation?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

As per DM, we should set recharts version from alpha to ^2.15.0.

@bharatkashyap bharatkashyap requested a review from Janpot January 6, 2025 13:57
@bharatkashyap bharatkashyap merged commit b9962d1 into mui:master Jan 6, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: infra Org infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants