这是indexloc提供的服务,不要输入任何密码
Skip to content

create-turbo: Add tests to assert package installation works #1698

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

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

mehulkar
Copy link
Contributor

@mehulkar mehulkar commented Aug 15, 2022

Add --runInBand to speed up CI. npm installation tests are timing out
in CI, possibly becuase of lack of hardware resources. runInBand
can improve performance by running tests in serial. There may also be an
issue where tests are using the same directory to write node_modules and
when running in parallel are erroring out. This doesn't reproduce
locally, so it's possible that Jest only parallelizes in CI or non-TTY
environments?

@vercel
Copy link

vercel bot commented Aug 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
turbo-site ⬜️ Ignored (Inspect) Aug 17, 2022 at 0:30AM (UTC)

Add --runInBand to speed up CI. npm installation tests are timing out
in CI, possibly becuase of lack of hardware resources. runInBand
can improve performance by running tests in serial. There may also be an
issue where tests are using the same directory to write node_modules and
when running in parallel are erroring out. This doesn't reproduce
locally, so it's possible that Jest only parallelizes in CI or non-TTY
environments?
@mehulkar mehulkar marked this pull request as ready for review August 17, 2022 01:14
Copy link
Member

@tknickman tknickman left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

// since we are spawning a process to call turbo CLI and that can take some time
// This may be overriden in individual tests with a third param to the `it` block. E.g.:
// it('', () => {}, <override ms>)
jest.setTimeout(10_000);
Copy link
Member

Choose a reason for hiding this comment

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

Woah TIL about _ as a numeric separator. Cool!

@tknickman tknickman merged commit 89c1f15 into main Aug 17, 2022
@kodiakhq kodiakhq bot deleted the mk/add-install-tests branch August 17, 2022 14:11
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