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: split CLI/Node tests #3096

Merged
merged 4 commits into from
Dec 3, 2024
Merged

Conversation

bodinsamuel
Copy link
Collaborator

@bodinsamuel bodinsamuel commented Dec 2, 2024

Changes

Fixes https://linear.app/nango/issue/NAN-2181/ci-split-all-cli-node-client-out-of-main-tests-suite

  • Split CLI and node client tests and execute in a dedicated matrix
    They run 6 tests (Node 18, 20, 22 x windows or ubuntu). It's a lot but seems relatively fast. Alternatively we could make windows matrix only execute on master.
    We could further optimize this and run them only types or node or cli has changed but it's a pain to create this kind of logic.

  • Integration and regular tests only run on Ubuntu + .nvmrc
    This doesn't save much time since the matrix was running in parallel but reduce potential for flaky tests

Copy link

linear bot commented Dec 2, 2024

@bodinsamuel bodinsamuel changed the title ci: simplify matrix ci: split CLI/Node tests Dec 2, 2024
@bodinsamuel bodinsamuel marked this pull request as ready for review December 2, 2024 21:26
@bodinsamuel bodinsamuel requested a review from a team December 2, 2024 21:26
Copy link
Collaborator

@TBonnin TBonnin left a comment

Choose a reason for hiding this comment

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

Thank you very much for doing this. Did you time the speed gain?

.github/workflows/tests.yaml Outdated Show resolved Hide resolved
@bodinsamuel
Copy link
Collaborator Author

Thank you very much for doing this. Did you time the speed gain?

I don't think there is much speed gain here since stuff were running in parallel. Windows still takes a long time.

@bodinsamuel bodinsamuel merged commit 5bd57b6 into master Dec 3, 2024
22 checks passed
@bodinsamuel bodinsamuel deleted the sam/24_12_02/ci/simplification branch December 3, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants