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

Add option --stopBuildOnErrors to tsbuild to get previous behavior of not building downstream projects if upstream has errors #59433

Merged
merged 5 commits into from
Aug 17, 2024

Conversation

sheetalkamat
Copy link
Member

#58854 removed the "error" as condition to block the downstream project build on errors.
Adds option --noDownstreamOnError to block the downstream project build on errors in upstream projects

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jul 26, 2024
@typescript-bot
Copy link
Collaborator

Looks like you're introducing a change to the public API surface area. If this includes breaking changes, please document them on our wiki's API Breaking Changes page.

Also, please make sure @DanielRosenwasser and @RyanCavanaugh are aware of the changes, just as a heads up.

@jakebailey
Copy link
Member

I was going to say "why not just noEmitOnError", but I guess it makes some sense to be able to emit all files no matter the type checking errors. But, I guess if noDownstreamOnError is enabled, you won't get the emit anyway... Not sure how I feel about that... You sort of want to emit everything but then only show the base errors?

I'm not sure what the right answer is here.

@DanielRosenwasser
Copy link
Member

I think "downstream" might be hard for developers to build an intuition around. I'd just call it something like

  • haltOnProjectErrors
  • stopOnProjectErrors
  • haltBuildOnErrors
  • stopBuildOnErrors

or something similar.

@jakebailey
Copy link
Member

The cut is early next week; what are we doing here? If I had to choose, I'd probably say --stopBuildOnErrors.

@sheetalkamat
Copy link
Member Author

But it’s not halt on build error .. it’s halt building dependencies .. so may be there are other projects that get built that are not in the tree ..

@jakebailey
Copy link
Member

That's true, yeah.

@DanielRosenwasser
Copy link
Member

I don't think the distinction is so important. --stopBuildOnErrors implies stopping something about --build as soon as an error is encountered.

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Aug 16, 2024

Also, to be clear, the cut is today. RC is scheduled for Tuesday.

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

LGTM code wise; if stopBuildOnErrors is the name we're doing with, the PR title should be updated just to ensure we don't confuse ourselves later.

@sheetalkamat sheetalkamat changed the title Add option --noDownstreamOnError to tsbuild to get previous behavior of not building downstream projects if upstream has errors Add option --stopBuildOnErrors to tsbuild to get previous behavior of not building downstream projects if upstream has errors Aug 17, 2024
@sheetalkamat sheetalkamat merged commit d06fb82 into main Aug 17, 2024
30 checks passed
@sheetalkamat sheetalkamat deleted the skipDownstreamOnError branch August 17, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants