Skip to content

Conversation

mehulkar
Copy link
Contributor

@mehulkar mehulkar commented Feb 1, 2023

These tests make heavy use of the internals of setting up a TaskGraph. In #3562, this is changing significantly. Instead of rewriting unit tests here that again touch the internals, I'm updating these tests to integration tests. This also means that we can continue using these as validation as we move to Rust.

I considered writing these tests with tasks in all one monorepo, but it ends up being a lot more confusing to read the tests that way, and I didn't want to spend that much time on this. There may be a future in which it's useful to generate monorepos with conditions to reduce the amount of boilerplate.

@mehulkar mehulkar changed the title WIP of moving persistent deps tests to prysk Move persistent deps tests to prysk Feb 1, 2023
@vercel
Copy link
Contributor

vercel bot commented Feb 1, 2023

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

10 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Feb 1, 2023 at 5:37PM (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Feb 1, 2023 at 5:37PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Feb 1, 2023 at 5:37PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Feb 1, 2023 at 5:37PM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Feb 1, 2023 at 5:37PM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Feb 1, 2023 at 5:37PM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Feb 1, 2023 at 5:37PM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 5:37PM (UTC)
examples-vite-web ⬜️ Ignored (Inspect) Feb 1, 2023 at 5:37PM (UTC)
turbo-site ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 5:37PM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2023

🟢 CI successful 🟢

Thanks

These tests make heavy use of the internals of setting up a TaskGraph.
We want to rework how that happens to support lazily loading task
definitions. Instead of rewriting all these unit tests, this commit
updates the tests to integration tests, so we don't have to worry about
the internals. This will also make the tests resilient to the Rust port.
@mehulkar mehulkar force-pushed the mehulkar/turbo-750-convert-persistent-tasks-tests-to branch from ca327b1 to f973300 Compare February 1, 2023 01:04
@mehulkar mehulkar marked this pull request as ready for review February 1, 2023 16:55
@mehulkar mehulkar requested a review from a team as a code owner February 1, 2023 16:55
@mehulkar mehulkar enabled auto-merge (squash) February 1, 2023 18:36
Copy link
Contributor

@chris-olszewski chris-olszewski left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +1 to +15
# Setup
$ . ${TESTDIR}/../setup.sh
$ . ${TESTDIR}/setup.sh $(pwd) 1-topological

// Workspace Graph
// - app-a depends on pkg-a
//
// Make this Task Graph:
// dev
// └── ^dev
//
// With this workspace graph, that means:
//
// app-a#dev
// └── pkg-a#dev
Copy link
Contributor

Choose a reason for hiding this comment

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

Not that it's blocking, but is there a reason for the leading # and // used for the comments in the cram file? IMO it adds a fair bit of noise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really. I guess it helps if you don't have syntax highlighting for the files, but I think it was mostly just a habit thing from me.

The discrepancy of # and // is because I was copy pasting comments from Go and I guess I didn't make all of them consistent.

@mehulkar mehulkar merged commit c7a19b8 into main Feb 1, 2023
@mehulkar mehulkar deleted the mehulkar/turbo-750-convert-persistent-tasks-tests-to branch February 1, 2023 21:07
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