GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Compute the exit status of `tsc -b` for the whole build by unalivin · Pull Request #65719 · microsoft/TypeScript

Conversation

@unalivin

@unalivin Unalivin (unalivin) commented Nov 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Fixes #65668.

tsc -b exits with 2 (DiagnosticsPresent_OutputsGenerated) when a project has a type error. TypeScript 6 exits with 1 (DiagnosticsPresent_OutputsSkipped) for the same project, while tsc -p exits with 2 in both:

echo '{}' > tsconfig.json
echo 'export const count: number = "zero";' > index.ts
tsc -b; echo $?    # 1 with TypeScript 6.0.3, 2 before this change

Build mode used the largest exit status of the individual projects. For the case above that gave 1 until 9222c13 fixed the swapped exit status constants, and 2 afterwards. TypeScript 6 doesn't decide this per project: a build is DiagnosticsPresent_OutputsGenerated only if at least one project was built without diagnostics, and DiagnosticsPresent_OutputsSkipped otherwise.

This does the same. Each build task now remembers whether it reported diagnostics, and the orchestrator counts the projects that were built without any. A project that had nothing to do isn't counted, which matches TypeScript 6. When the build ends with one of the two diagnostics statuses, it becomes DiagnosticsPresent_OutputsGenerated if that count is above zero and DiagnosticsPresent_OutputsSkipped otherwise. Every other status is left alone, and tsc -p doesn't go through this code.

Tests

New TestBuildExitStatusForTypeErrors in tscbuild_test.go:

  • --build with a type error gives OutputsSkipped
  • --project with the same error still gives OutputsGenerated
  • a clean --build succeeds
  • one good and one failing project gives OutputsGenerated
  • the mixed-project test runs with noEmitOnError both false and true on the failing project
  • every project failing gives OutputsSkipped

Two expectations in contentmapper_watch_test.go that run in build mode now expect OutputsSkipped as well.

The rest of the diff is baselines: 150 files (108 under tsbuild, 15 under tsbuildWatch, 27 under tsc) where only the ExitStatus:: line changes from DiagnosticsPresent_OutputsGenerated to DiagnosticsPresent_OutputsSkipped. Every one of those lines belongs to a --build command, so no tsc -p baseline moved. go test ./internal/execute/... passes with them.

Compared with TypeScript 6.0.3

I ran [email protected] and a compiler built from this branch on ten small projects and compared the exit codes. They were the same in all ten:

  • a project with a type error, with -b and with -p
  • a clean project
  • one good and one failing project
  • every project failing
  • a project that depends on a failing one
  • an up to date project that then gets an error
  • a second incremental -b run after an error
  • -b --noEmit with an error
  • a config file error

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Your Name
Compute the exit status of tsc -b for the whole build
ba1139c
Build mode reported the largest exit status of any single project. For a
build whose only project has a type error that gives
DiagnosticsPresent_OutputsGenerated (2), where TypeScript 6 gives
DiagnosticsPresent_OutputsSkipped (1). The old numbering happened to
produce 1 here until 9222c13 fixed the swapped constants. The rule
TypeScript 6 uses for the build as a whole was never ported, so the
result changed with the constants.

TypeScript 6 reports OutputsGenerated for a build only if at least one
project was built without diagnostics. Do the same: record whether each
task reported diagnostics, count the projects that were built without
any, and when the build ends with a diagnostics status, choose between
OutputsGenerated and OutputsSkipped based on that count. Other statuses
and tsc -p are not affected.

The build mode baselines now record OutputsSkipped where no project was
built cleanly, and the two content mapper expectations that run in build
mode follow.

Fixes microsoft#65668
Copilot AI balanced review requested due to automatic review settings November 28, 2026 16:33
@github-project-automation github-project-automation Bot added this to PR Backlog Nov 28, 2026
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Nov 28, 2026
@typescript-automation typescript-automation Bot added the For Backlog Bug PRs that fix a backlog bug label Nov 28, 2026
Copilot started reviewing on behalf of Unalivin (unalivin) November 28, 2026 16:34
View session
@unalivin

Unalivin (unalivin) commented Nov 28, 2026

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot AI reviewed Nov 28, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

🟢 Approval recommended

No active review issues are reported for the build-wide exit-status change.

No open issues 🎉

What changed in this PR

This PR addresses #65668 by computing tsc -b exit status across the whole build, restoring TypeScript 6 behavior while leaving tsc -p unchanged.

Changes:

  • Tracks diagnostics per build task and counts projects completed without diagnostics.
  • Selects the build’s diagnostic exit status based on whether any project completed successfully.
  • Adds exit-status regression tests and updates build-mode expectations and baselines.
File Description
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​target-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​source-edit-after-changing-stripInternal-incremental.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​rewriteRelativeImportExtensions-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​resolvePackageJsonImports-unset-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​resolvePackageJsonImports-unset-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​resolvePackageJsonImports-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​resolvePackageJsonImports-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​reactNamespace-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​preserveConstEnums-namespace-order-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​preserveConstEnums-namespace-merge-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​paths-unset-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​paths-unset-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​paths-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​paths-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​noLib-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​moduleResolution-unset-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​moduleResolution-unset-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​moduleResolution-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​moduleResolution-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​moduleDetection-ambient-module-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​module-top-level-await-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​module-import-attributes-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​module-import-attributes-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​inherited-paths-base-second-to-first-incremental.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​inherited-paths-base-first-to-second-incremental.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​importHelpers-incremental-direction-0.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsc/​compilerOptionChanges/​allowArbitraryExtensions-incremental-direction-1.js Updates forced-build exit status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​sample/​skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js Updates watch-build error status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​sample/​skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js Updates watch-build error status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​programUpdates/​works-when-noUnusedParameters-changes-to-false.js Updates watch-build error status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​noEmit/​syntax-errors.js Updates syntax-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​noEmit/​syntax-errors-with-incremental.js Updates incremental syntax-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​noEmit/​syntax-errors-with-incremental-as-modules.js Updates module syntax-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​noEmit/​semantic-errors.js Updates semantic-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​noEmit/​semantic-errors-with-incremental.js Updates incremental semantic-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​noEmit/​semantic-errors-with-incremental-as-modules.js Updates module semantic-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​noEmit/​dts-errors.js Updates declaration-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​noEmit/​dts-errors-with-incremental.js Updates incremental declaration-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​noEmit/​dts-errors-with-incremental-as-modules.js Updates module declaration-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​moduleResolution/​build-mode-watches-missing-package-json-lookups.js Updates resolution-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​demo/​updates-with-bad-reference.js Updates bad-reference watch status.
tsc/​testdata/​baselines/​reference/​tsbuildWatch/​configFileErrors/​reports-syntax-errors-in-config-file.js Updates config-error watch status.
tsc/​testdata/​baselines/​reference/​tsbuild/​sample/​when-target-option-changes.js Updates target-change build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​sample/​skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors.js Updates stopped-build exit statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​sample/​skips-builds-downstream-projects-if-upstream-projects-have-errors-with-stopBuildOnErrors-when-test-does-not-reference-core.js Updates stopped-build exit statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​sample/​reports-error-if-input-file-is-missing.js Updates missing-input build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​sample/​reports-error-if-input-file-is-missing-with-force.js Updates missing-input forced-build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​resolveJsonModule/​sourcemap-non-composite.js Updates JSON-module build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​resolveJsonModule/​include-only.js Updates JSON-module build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​resolveJsonModule/​include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js Updates JSON-module build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​resolveJsonModule/​include-only-non-composite.js Updates JSON-module build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​resolveJsonModule/​include-of-json-along-with-other-include-non-composite.js Updates JSON-module build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​resolveJsonModule/​include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js Updates JSON-module build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​resolveJsonModule/​include-and-files-non-composite.js Updates JSON-module build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​resolveJsonModule/​importing-json-module-from-project-reference.js Updates referenced JSON-module build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​resolveJsonModule/​files-containing-json-file-non-composite.js Updates JSON-module build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​projectReferenceWithRootDirInParent/​reports-error-for-same-tsbuildinfo-file.js Updates repeated-build error status.
tsc/​testdata/​baselines/​reference/​tsbuild/​outputPaths/​when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js Updates root-directory error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​outputPaths/​when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js Updates composite root-directory error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​outputPaths/​when-rootDir-is-not-specified.js Updates output-path error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​syntax-errors.js Updates syntax-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​syntax-errors-with-incremental.js Updates incremental syntax-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​syntax-errors-with-incremental-as-modules.js Updates module syntax-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​semantic-errors.js Updates semantic-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​semantic-errors-with-incremental.js Updates incremental semantic-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​semantic-errors-with-incremental-as-modules.js Updates module semantic-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​dts-errors.js Updates declaration-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​dts-errors-with-incremental.js Updates incremental declaration-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​dts-errors-with-incremental-as-modules.js Updates module declaration-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​dts-errors-with-declaration-enable-changes.js Updates declaration-option error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​dts-errors-with-declaration-enable-changes-with-multiple-files.js Updates multifile declaration-error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​dts-errors-with-declaration-enable-changes-with-incremental.js Updates incremental declaration-option error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​dts-errors-with-declaration-enable-changes-with-incremental-as-modules.js Updates module declaration-option error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​changes-with-initial-noEmit-incremental.js Updates incremental emit-transition error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​changes-with-initial-noEmit-incremental-declaration.js Updates declaration emit-transition error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​changes-with-initial-noEmit-composite.js Updates composite emit-transition error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​changes-incremental.js Updates incremental emit-transition error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​changes-incremental-declaration.js Updates declaration emit-transition error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noEmit/​changes-composite.js Updates composite emit-transition error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noCheck/​syntax-errors.js Updates syntax-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noCheck/​syntax-errors-with-incremental.js Updates incremental syntax-error build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noCheck/​semantic-errors.js Updates checked-build semantic-error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noCheck/​semantic-errors-with-incremental.js Updates incremental semantic-error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noCheck/​dts-errors.js Updates checked-build error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​noCheck/​dts-errors-with-incremental.js Updates incremental checked-build error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​moduleResolution/​type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js Updates type-resolution build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​javascriptProjectEmit/​loads-js-based-projects-and-emits-them-correctly.js Updates JavaScript-project build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​inferredTypeFromTransitiveModule/​reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js Updates transitive-type error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​inferredTypeFromTransitiveModule/​inferred-type-from-transitive-module.js Updates transitive-type error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​inferredTypeFromTransitiveModule/​inferred-type-from-transitive-module-with-isolatedModules.js Updates isolated-module error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​incremental/​reverse-mapped-declaration-consumption.js Updates repeated-build error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​fileDelete/​deleted-file-without-composite.js Updates deleted-file build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​exactOptionalPropertyTypes/​declaration-emit-when-exactOptionalPropertyTypes-changes-from-false-to-true.js Updates repeated-build error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​emitDeclarationOnly/​only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js Updates declaration-only build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​emitDeclarationOnly/​only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js Updates circular-import build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​emitDeclarationOnly/​only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js Updates declaration-map build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​dependencyUpdate/​rebuilds-when-missing-dependency-package-json-is-added.js Updates dependency-addition error status.
tsc/​testdata/​baselines/​reference/​tsbuild/​dependencyUpdate/​rebuilds-when-dependency-package-json-redirects-to-a-different-declaration-file.js Updates dependency-redirection error status.
tsc/​testdata/​baselines/​reference/​tsbuild/​dependencyUpdate/​rebuilds-when-dependency-in-node_modules-is-updated.js Updates dependency-change error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​dependencyUpdate/​rebuilds-when-absolute-non-root-dependency-is-updated.js Updates external-dependency error status.
tsc/​testdata/​baselines/​reference/​tsbuild/​dependencyUpdate/​rebuilds-transitive-dependents-when-dependency-update-batch-includes-a-global-scope-change.js Updates global-change rebuild statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​dependencyUpdate/​rebuilds-transitive-dependents-when-dependency-update-batch-has-no-global-scope-change.js Updates transitive-dependency error status.
tsc/​testdata/​baselines/​reference/​tsbuild/​dependencyUpdate/​rebuilds-files-using-globals-when-global-scope-dependency-is-updated.js Updates global-dependency error status.
tsc/​testdata/​baselines/​reference/​tsbuild/​demo/​in-master-branch-with-everything-setup-correctly-and-reports-no-error.js Updates demo build error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​demo/​in-circular-is-set-in-the-reference.js Updates circular-reference build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​demo/​in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js Updates bad-reference build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​contentMapperOptionDiagnostics/​rebuild-to-report-mapper-option-diagnostics.js Updates mapper-diagnostic build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​configFileErrors/​when-tsconfig-extends-the-missing-file.js Updates missing-config build status.
tsc/​testdata/​baselines/​reference/​tsbuild/​configFileErrors/​reports-syntax-errors-in-config-file.js Updates config-syntax error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​target-build-direction-1.js Updates target-option error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​target-build-direction-0.js Updates target-option error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​source-edit-after-changing-stripInternal-build.js Updates post-option-edit error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​rewriteRelativeImportExtensions-build-direction-1.js Updates import-extension error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​rewriteRelativeImportExtensions-build-direction-0.js Updates import-extension error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​resolvePackageJsonImports-unset-build-direction-1.js Updates package-import error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​resolvePackageJsonImports-unset-build-direction-0.js Updates package-import error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​resolvePackageJsonImports-build-direction-1.js Updates package-import error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​resolvePackageJsonImports-build-direction-0.js Updates package-import error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​reactNamespace-build-direction-1.js Updates JSX namespace error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​reactNamespace-build-direction-0.js Updates JSX namespace error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​preserveConstEnums-namespace-order-build-direction-1.js Updates namespace-order error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​preserveConstEnums-namespace-order-build-direction-0.js Updates namespace-order error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​preserveConstEnums-namespace-merge-build-direction-1.js Updates namespace-merge error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​preserveConstEnums-namespace-merge-build-direction-0.js Updates namespace-merge error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​paths-unset-build-direction-1.js Updates path-mapping error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​paths-unset-build-direction-0.js Updates path-mapping error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​paths-build-direction-1.js Updates path-mapping error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​paths-build-direction-0.js Updates path-mapping error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​noLib-build-direction-1.js Updates library-option error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​noLib-build-direction-0.js Updates library-option error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​moduleResolution-unset-build-direction-1.js Updates module-resolution error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​moduleResolution-unset-build-direction-0.js Updates module-resolution error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​moduleResolution-build-direction-1.js Updates module-resolution error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​moduleResolution-build-direction-0.js Updates module-resolution error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​moduleDetection-ambient-module-build-direction-1.js Updates ambient-module error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​moduleDetection-ambient-module-build-direction-0.js Updates ambient-module error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​module-top-level-await-build-direction-1.js Updates top-level-await error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​module-top-level-await-build-direction-0.js Updates top-level-await error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​module-import-attributes-build-direction-1.js Updates import-attribute error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​module-import-attributes-build-direction-0.js Updates import-attribute error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​inherited-paths-base-second-to-first-build.js Updates inherited-path error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​inherited-paths-base-first-to-second-build.js Updates inherited-path error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​importHelpers-build-direction-1.js Updates helper-import error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​importHelpers-build-direction-0.js Updates helper-import error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​allowArbitraryExtensions-build-direction-1.js Updates arbitrary-extension error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​compilerOptionChanges/​allowArbitraryExtensions-build-direction-0.js Updates arbitrary-extension error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​commandLine/​emitDeclarationOnly-on-commandline-with-declaration.js Updates repeated declaration-only build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​commandLine/​emitDeclarationOnly-on-commandline-with-declaration-and-incremental.js Updates incremental declaration-only build statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​commandLine/​emitDeclarationOnly-false-on-commandline-with-declaration.js Updates emit-option build error statuses.
tsc/​testdata/​baselines/​reference/​tsbuild/​commandLine/​emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental.js Updates incremental emit-option error statuses.
tsc/​internal/​execute/​tsctests/​tscbuild_test.go Adds five exit-status regression cases.
tsc/​internal/​execute/​tsctests/​contentmapper_watch_test.go Adjusts build-mode diagnostic expectations.
tsc/​internal/​execute/​build/​orchestrator.go Computes diagnostic exit status for the whole build.
tsc/​internal/​execute/​build/​buildtask.go Tracks task diagnostics and counts successful projects.

Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@unalivin
Unalivin (unalivin) requested a max review from Copilot November 28, 2026 18:30
Copilot started reviewing on behalf of Unalivin (unalivin) November 28, 2026 18:31
View session
Copilot AI reviewed Nov 28, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

🟡 Changes recommended

The mixed-project test leaves a coverage gap for the new 1-to-2 status aggregation path when another project builds successfully.

1 open issue
  • Low severity Test noEmitOnError aggregation when another project builds cleanly · New

Review effort: Max

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tsc/internal/execute/tsctests/tscbuild_test.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Your Name
Test noEmitOnError aggregation with a clean sibling project
a573f67
Run the mixed good/bad project build test with noEmitOnError both false and true on the failing project. With noEmitOnError the failing project reports DiagnosticsPresent_OutputsSkipped on its own, so the test now covers the aggregation path that turns the build status into DiagnosticsPresent_OutputsGenerated when another project builds cleanly.
@unalivin

Unalivin (unalivin) commented Nov 28, 2026

Copy link
Copy Markdown
Author

Pushed a573f67 covering the noEmitOnError=false/true cases for the mixed good/bad project test. Tests under tsc/internal/execute pass locally. The workflows need maintainer approval to run.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@unalivin
Unalivin (unalivin) requested a max review from Copilot November 28, 2026 20:02
Copilot started reviewing on behalf of Unalivin (unalivin) November 28, 2026 20:04
View session
Copilot AI reviewed Nov 28, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

🔵 Needs a closer look

Changing common failing tsc -b builds from exit code 2 to 1 and altering API build status requires a maintainer decision on compatibility.

No open issues 🎉

1 resolved since last review
  • Low severity Test noEmitOnError aggregation when another project builds cleanly

Review effort: Max

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

At least 1 approving review is required to merge this pull request.

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

PR Backlog
Status: Not started

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

TypeScript 7 changed the tsc -b exit code for a type error from 1 to 2

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@unalivin
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.