-
Notifications
You must be signed in to change notification settings - Fork 23
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(jest): split jest tests to run in multiple shards #3912
Conversation
🦋 Changeset detectedLatest commit: 9381e58 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Is it possible to hide these shards? It's getting a bit crowded in the checks window |
No idea. I haven't found any docs about it, but I can try random things and see if it works 🤷🏻♀️ |
I suppose it's only cluttered for now, we're approaching KAIO, so it'll slim significantly |
Why
KDS-1641
We write a lot more tests nowadays (which is great!), so it takes much longer to run them in CI, leading to potential timeouts (we currently set GH Actions to time out at 10 minutes).
Eg. https://github.com/cultureamp/kaizen-design-system/actions/runs/5663799519
Using shards(https://jestjs.io/docs/cli#--shard ) we can run multiple GH jobs in parallel, which should save time.
What