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: optimize ci time with some perks 😈 #2865

Merged
merged 19 commits into from Mar 27, 2024
Merged

ci: optimize ci time with some perks 😈 #2865

merged 19 commits into from Mar 27, 2024

Conversation

idoshamun
Copy link
Member

@idoshamun idoshamun commented Mar 26, 2024

image
  • I managed to reduce CI time by 73% to a ridicules time of 2.5min! ⚑
  • Thanks to @rebelchris I learned about the "Rerun failed tests" feature. So you can rerun only failed tests now if needed 🀩
  • Parallel support in case we get more tests per project, we can easily spool up more workers per project

The essence of the change is that each package's CI now runs independently. In addition since the shared package lint takes time, I moved it to its own process to run it in parallel with the tests.

It's about time we get a better feedback loop. Enjoy!

eslint timing breakdown:
image

Preview domain

https://split-tests.preview.app.daily.dev

@idoshamun idoshamun requested a review from a team as a code owner March 26, 2024 17:32
Copy link

vercel bot commented Mar 26, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
daily-webapp βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Mar 27, 2024 9:40am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
storybook ⬜️ Ignored (Inspect) Mar 27, 2024 9:40am

Copy link
Contributor

@rebelchris rebelchris left a comment

Choose a reason for hiding this comment

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

Nothing blocking, but guess we can go lower resource right?

.circleci/config.yml Show resolved Hide resolved
@rebelchris rebelchris requested a review from a team March 26, 2024 18:11
Copy link
Contributor

@nensidosari nensidosari left a comment

Choose a reason for hiding this comment

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

Looks great

Copy link
Contributor

@capJavert capJavert left a comment

Choose a reason for hiding this comment

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

Awesome! πŸš€

@idoshamun idoshamun merged commit 932be03 into main Mar 27, 2024
10 checks passed
@idoshamun idoshamun deleted the split-tests branch March 27, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants