-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Move persistent deps tests to prysk #3566
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 persistent deps tests to prysk #3566
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 10 Ignored Deployments
|
🟢 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.
ca327b1
to
f973300
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.