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] Move TypeScript tests into separate job #16405

Merged
merged 3 commits into from
Jun 28, 2019

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Jun 28, 2019

As of right now test_static is the longest running job with typescript using up most of the time. This time will only go up with increasing type coverage.

I moved it into a separate job. To not starve the available parallel jobs I removed the material-ui-x jon which only had redundant tests. With the exception of @material-ui/icons test:built-typings all tests are already covered by test:coverage. At least it appears that way from the glob pattern packages/**/*.test.js but maybe I'm missing something.

@material-ui/icons test:built-typing was moved into test_unit.

To be mergable someone with repo admin access needs to remove test_material-ui-x from the required checks and replace it with test_types.

Edit: Looks good though test_types is still the slowest. Maybe we need to take a look into composite projects for typescript but this is a good enough start.

@eps1lon eps1lon added the test label Jun 28, 2019
@mui-pr-bot
Copy link

mui-pr-bot commented Jun 28, 2019

No bundle size changes comparing 5fb2c56...c53be9a

Generated by 🚫 dangerJS against c53be9a

@eps1lon eps1lon marked this pull request as ready for review June 28, 2019 07:58
@eps1lon eps1lon requested a review from oliviertassinari June 28, 2019 07:58
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

I removed the material-ui-x jon which only had redundant tests.

@eps1lon Yes, you are right, they are redundant tests.

Any specific reason for going down the path of running all the tests vs only running the tests of the packages that changed? Hum, all these tests took 49s to run on this build, splitting them would probably be not a good usage of our time. I guess I have answered my own question.

@eps1lon
Copy link
Member Author

eps1lon commented Jun 28, 2019

Jest has this built-in and would make sense for PRs i.e. only run changed on PRs but full suite on master. Anything else would require a lot of work.

@eps1lon
Copy link
Member Author

eps1lon commented Jun 28, 2019

@oliviertassinari could you update the required checks for the repo? I don't have permissions.

@oliviertassinari
Copy link
Member

Sure!

@eps1lon eps1lon merged commit b31810d into mui:master Jun 28, 2019
@eps1lon eps1lon deleted the ci/load-balance branch June 28, 2019 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants