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

Move Turborepo integration tests to their own workspace #4617

Merged
merged 11 commits into from
Apr 18, 2023
Merged

Conversation

mehulkar
Copy link
Contributor

@mehulkar mehulkar commented Apr 18, 2023

Moving into their own workspace so we can run them independently via Turbo (not Makefile), and potentially finding ways to test against examples, etc. Instead of:

Before:

cd cli && make integration-tests

After:

cd turborepo-integration-tests && pnpm test

Alternatively:

# global turbo
turbo run test --filter=turborepo-integration-tests
# via turbo
pnpm test -- --filter=turborepo-integration-tests

@vercel
Copy link

vercel bot commented Apr 18, 2023

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

Name Status Preview Comments Updated (UTC)
examples-basic-web 🔄 Building (Inspect) Apr 18, 2023 5:03pm
examples-gatsby-web 🔄 Building (Inspect) Apr 18, 2023 5:03pm
examples-svelte-web 🔄 Building (Inspect) Apr 18, 2023 5:03pm
examples-tailwind-web 🔄 Building (Inspect) Apr 18, 2023 5:03pm
7 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Apr 18, 2023 5:03pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Apr 18, 2023 5:03pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Apr 18, 2023 5:03pm
examples-native-web ⬜️ Ignored (Inspect) Apr 18, 2023 5:03pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Apr 18, 2023 5:03pm
examples-vite-web ⬜️ Ignored (Inspect) Apr 18, 2023 5:03pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview Apr 18, 2023 5:03pm

@github-actions
Copy link
Contributor

✅ This changes can build next-swc

@mehulkar mehulkar marked this pull request as ready for review April 18, 2023 06:54
@mehulkar mehulkar requested review from a team as code owners April 18, 2023 06:54
@@ -16,7 +16,8 @@
"turbo-prebuilt": "node turbow.js",
"docs": "pnpm -- turbo run dev --filter=docs --no-cache",
"run-example": "./scripts/run-example.sh",
"prepare": "husky install"
"prepare": "husky install",
"test": "pnpm -- turbo run test"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Following the pattern, but if we had global turbo in Github CI, we wouldn't need to use pnpm -- turbo

"extends": ["//"],
"pipeline": {
"test": {
"dependsOn": ["cli#build"],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is here for completeness, but in the general case, we're building a local turbo before we run the test task, so turbo is already built. I can remove this if people have strong opinions.

@github-actions
Copy link
Contributor

Benchmark for f1443e1

Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9521.62µs ± 42.47µs 9756.18µs ± 21.20µs +2.46% +1.12%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9521.62µs ± 42.47µs 9756.18µs ± 21.20µs +2.46% +1.12%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8641.51µs ± 53.67µs 8810.39µs ± 60.64µs +1.95%
bench_startup/Turbopack CSR/1000 modules 889.39ms ± 1.11ms 894.80ms ± 3.49ms +0.61%

@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust benchmark tests (linux)

See workflow summary for details

@mehulkar mehulkar enabled auto-merge (squash) April 18, 2023 17:28
@mehulkar
Copy link
Contributor Author

Merging this as all relevant checkes have passed. The remaining checks are Turbopack Rust testing and Turbopack benchmarking, which are very slow and also unaffected by this PR. They are triggered because test.yml changed

@mehulkar mehulkar disabled auto-merge April 18, 2023 18:02
@mehulkar mehulkar merged commit a24301d into main Apr 18, 2023
@mehulkar mehulkar deleted the mk/tests branch April 18, 2023 18:03
NicholasLYang pushed a commit to NicholasLYang/turbo that referenced this pull request Apr 21, 2023
This enables us to remove the bespoke turbo task to run these
tests, and also reduces our dependency on Makefile. Further,
we can extract the helpers into their own workspace after this and
use them for examples_tests so we can wire up dependencies even
more accurately The Turbo Way.
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