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

Capture engine/run unit tests with prysk #3592

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

Conversation

mehulkar
Copy link
Contributor

@mehulkar mehulkar commented Feb 2, 2023

This converts more unit tests to integration tests. The purpose of this change is to make it easier to land #3562, which breaks all these unit tests, and it's a lot of unnecessary work to fix as unit tests. Additionally, because we're lazy loading task definitions in that PR, these unit tests would need access to a file system, breaking their "unit" nature, anyway.

  • These are not as 1:1 as the previous PR, but attempts to capture the scenarios in spirit.
  • Asserted with --graph, because that's what the underlying tests were doing also. I could execute, but parallel execution makes it a bit more challenging to assert against logs.
  • Combine with existing topological-deps integration tests.

Previous similar work:

Combine with existing Topological Deps integration tests.
@vercel
Copy link

vercel bot commented Feb 2, 2023

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

Name Status Preview Comments Updated
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 7:34PM (UTC)
examples-cra-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 7:34PM (UTC)
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 7:34PM (UTC)
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 7:34PM (UTC)
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 7:34PM (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 7:34PM (UTC)
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 7:34PM (UTC)
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 7:34PM (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 7:34PM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Feb 2, 2023 at 7:34PM (UTC)

@mehulkar mehulkar marked this pull request as ready for review February 2, 2023 01:53
@mehulkar mehulkar requested a review from a team as a code owner February 2, 2023 01:53
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

🟢 CI successful 🟢

Thanks

@mehulkar mehulkar changed the title Capture engine preparation unit tests with prysk Capture engine/run unit tests with prysk Feb 2, 2023
@@ -24,3 +24,19 @@ Check my-app#build output
Cached: 0 cached, 2 total
Time:\s*[\.0-9]+m?s (re)



Graph
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the goal of this test? I'm not really that well versed in this part of the codebase.

Copy link
Contributor Author

@mehulkar mehulkar Feb 2, 2023

Choose a reason for hiding this comment

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

This is merged in from here: https://github.com/vercel/turbo/blob/main/cli/integration_tests/topological_deps/graph.t
The underlying config is:

{
  "$schema": "https://turbo.build/schema.json",
  "pipeline": {
    "build": {
      "dependsOn": ["^build"]
    },
    "//#build": {
      "dependsOn": []
    }
  }
}

So I think the idea is to validate that the task graph is generated correctly

@mehulkar mehulkar enabled auto-merge (squash) February 2, 2023 19:46
@mehulkar mehulkar merged commit ccd8300 into main Feb 2, 2023
@mehulkar mehulkar deleted the mehulkar/turbo-715-convert-engine-tests-to-integration branch February 2, 2023 19:55
@mehulkar mehulkar mentioned this pull request Feb 6, 2023
5 tasks
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