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

fix: #909 - turbo run exit code always 0 #911

Merged
merged 3 commits into from
Mar 21, 2022

Conversation

ThibautMarechal
Copy link
Contributor

I will try to add a test for tomorrow, but I'm not a Go dev, so I might need some help at some point 🙂

@vercel
Copy link

vercel bot commented Mar 21, 2022

@ThibautMarechal is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Mar 21, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/vercel/turbo-site/EPj2SoTpBa1eeV2YmvJsswZx8JmC
✅ Preview: Failed

@gsoltis
Copy link
Contributor

gsoltis commented Mar 21, 2022

Marking this as ready for review, as I think this fixes a regression.

@gsoltis gsoltis marked this pull request as ready for review March 21, 2022 20:05
@jaredpalmer jaredpalmer merged commit e5fceb5 into vercel:main Mar 21, 2022
@ThibautMarechal ThibautMarechal deleted the bugfix/always-exit-0 branch March 21, 2022 20:07
kodiakhq bot pushed a commit that referenced this pull request Mar 23, 2022
)

Fixes #912 

In this PR:
 * Stop removing unreferenced packages from the package dependency graph before building the task graph.
 * Remove the implied `--include-dependencies` if `--scope` and `--since` are both set. It should no longer be necessary.
 * Remove the test for `--scope` and `--since` implying `--include-dependencies`
 * Add a new scheduler test that mimics the way `run` now behaves.
 * Add a debugging profile for doing a dry run against the kitchen sink example.

Future work includes being able to write a test in `run_test.go` to get the whole end-to-end graph build, but we don't quite have the infrastructure for that yet (also required for follow-on work to #911) 

Note that this is technically a breaking change. Previously, if `a` depends on `b`, and the `"test"` task depends on `"^build"` the following would be true:
 * `turbo run test --scope=a` would test `a` but not build `b`
 * `turbo run test --scope=a --include-dependencies` would build `b` and test `a` *AND* `b`.

With this change, `turbo run test --scope=a` will now build `b` and test `a`. The addition of tasks running for unselected packages is new. While this seems like more work being done, in practice I expect users to be able to move from the second example above to the first, ultimately resulting in less work being done: `b#test` will no longer need to run to get `a#test` to run.
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.

3 participants