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 CI on v5.x branch #44487

Merged
merged 10 commits into from
Nov 21, 2024
Merged

[core] Fix CI on v5.x branch #44487

merged 10 commits into from
Nov 21, 2024

Conversation

DiegoAndai
Copy link
Member

@DiegoAndai DiegoAndai commented Nov 20, 2024

A new attempt at #43564, same motivation.

Update v5.x to the same pnpm version as master (so it's easier to switch between both), as well as run pnpm dedupe so the CI is green again.

This is to prepare for #44413.

@DiegoAndai DiegoAndai added the core Infrastructure work going on behind the scenes label Nov 20, 2024
@DiegoAndai DiegoAndai requested a review from mnajdova November 20, 2024 18:05
@DiegoAndai DiegoAndai self-assigned this Nov 20, 2024
@mui-bot
Copy link

mui-bot commented Nov 20, 2024

Netlify deploy preview

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

@material-ui/core: parsed: +Infinity% , gzip: +Infinity%
@material-ui/lab: parsed: +Infinity% , gzip: +Infinity%
@material-ui/styles: parsed: +Infinity% , gzip: +Infinity%
@material-ui/private-theming: parsed: +Infinity% , gzip: +Infinity%
@material-ui/system: parsed: +Infinity% , gzip: +Infinity%
@material-ui/unstyled: parsed: +Infinity% , gzip: +Infinity%
@material-ui/utils: parsed: +Infinity% , gzip: +Infinity%
@mui/joy: parsed: +Infinity% , gzip: +Infinity%

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 587842a

@DiegoAndai DiegoAndai changed the title [core] Update v5.x branch [core] Fix CI on v5.x branch 2.0 Nov 20, 2024
@DiegoAndai DiegoAndai changed the title [core] Fix CI on v5.x branch 2.0 [core] Fix CI on v5.x branch Nov 20, 2024
@DiegoAndai DiegoAndai marked this pull request as draft November 20, 2024 21:25
@DiegoAndai DiegoAndai removed the request for review from mnajdova November 20, 2024 21:25
@@ -1254,7 +1254,6 @@ describe('<Select />', () => {
const selectButton = getByTestId('select');

act(() => updateButton.click());
act(() => selectButton.click());
Copy link
Member Author

Choose a reason for hiding this comment

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

This was throwing a "not wrapped in act(...)" warning. Not sure why. This click is not necessary for the test. As this is from the stalled base package, and it won't be published from this branch, I don't think it's worth digging deeper into why this was here and/or started throwing.

@@ -4,7 +4,6 @@ import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import Paper from '@mui/material/Paper';
import LaunchRounded from '@mui/icons-material/LaunchRounded';
import { Link } from '@mui/docs/Link';
Copy link
Member Author

Choose a reason for hiding this comment

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

Link is not used in this file, this made eslint fail.

@@ -74,7 +74,7 @@
"test:regressions:run": "mocha --config test/regressions/.mocharc.js --delay 'test/regressions/**/*.test.js'",
"test:regressions:server": "serve test/regressions -p 5001",
"test:umd": "node packages/mui-material/test/umd/run.js",
"test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'",
"test:unit": "cross-env NODE_ENV=test BROWSERSLIST_IGNORE_OLD_DATA=true mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'",
Copy link
Member Author

@DiegoAndai DiegoAndai Nov 21, 2024

Choose a reason for hiding this comment

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

We're ok with browserslist being outdated in this branch, this flag is already in use for the builds:

"build": "cross-env BROWSERSLIST_IGNORE_OLD_DATA=true lerna run build --ignore docs",

@@ -54,10 +54,6 @@ function createDOM() {
}
global.window.Touch = Touch;

global.navigator = {
Copy link
Member Author

Choose a reason for hiding this comment

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

Cherry picked from #42344

@@ -6,7 +6,7 @@ describe('animate', () => {

before(function beforeHook() {
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
const isJSDOM = navigator.userAgent === 'node.js';
Copy link
Member Author

Choose a reason for hiding this comment

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

Cherry picked from #42344

@@ -46,7 +46,7 @@ function hasRightScrollButton(container) {

describe('<Tabs />', () => {
// tests mocking getBoundingClientRect prevent mocha to exit
const isJSDOM = navigator.userAgent === 'node.js';
Copy link
Member Author

Choose a reason for hiding this comment

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

Cherry picked from #42344

@DiegoAndai DiegoAndai requested a review from mnajdova November 21, 2024 14:00
@DiegoAndai DiegoAndai marked this pull request as ready for review November 21, 2024 14:00
Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

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

All changes makes sense 👌

@DiegoAndai DiegoAndai merged commit a66018b into mui:v5.x Nov 21, 2024
21 checks passed
@DiegoAndai DiegoAndai deleted the update-v5.x-core branch November 21, 2024 15:38
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.

4 participants