fix(cli-integ): exclude TypeScript 7.x from the init-typescript-app matrix#1718
Closed
iankhou wants to merge 1 commit into
Closed
fix(cli-integ): exclude TypeScript 7.x from the init-typescript-app matrix#1718iankhou wants to merge 1 commit into
iankhou wants to merge 1 commit into
Conversation
…atrix
TypeScript 7.0.2 (the first stable release of the Go-based compiler) was
published on 2026-07-08 and immediately entered the dynamically-enumerated
version matrix of the init-typescript-app test. The test runs 'cdk synth'
through ts-node@^10, which reads its configuration through the ts.sys API
that no longer exists in TypeScript 7, so every enumeration since then
crashes with:
TypeError: Cannot read properties of undefined (reading 'fileExists')
at readConfig (.../ts-node/dist/configuration.js:91:33)
This fails the integ_init-templates jobs on every PR, regardless of content.
The failure reproduces standalone (npm i typescript@7.0 ts-node@^10 &&
npx ts-node x.ts) with no CDK involvement.
Bound the enumeration to '<7.0' until the init template's synth toolchain
supports TypeScript 7 (ts-node replacement or native type stripping); 3.9
through 6.0 remain covered, identical to the matrix before the release.
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1718 +/- ##
=======================================
Coverage 89.59% 89.59%
=======================================
Files 77 77
Lines 11758 11758
Branches 1651 1651
=======================================
Hits 10534 10534
Misses 1195 1195
Partials 29 29
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
TypeScript 7.0.2 — the first stable release of the Go-based compiler — was published to npm on 2026-07-08 at 15:55 UTC. The
init-typescript-appinteg test enumerates TypeScript minor versions dynamically from npm at runtime, so7.0immediately entered the test matrix on every PR.The test installs
typescript@7.0alongsidets-node@^10and runscdk synththrough ts-node — which is incompatible with TypeScript 7 (the Go compiler no longer exposes thets.sysAPI ts-node reads its configuration through). Every run since the release crashes:This fails the four
integ_init-templates (init-typescript-app, *)jobs on every PR, regardless of content (first observed on #1676; the last passing run started 26 minutes before the 7.0.2 publish). The crash reproduces standalone with no CDK involvement:Fix
Bound the version enumeration in
typescriptVersionsSyncto<7.0. The resulting matrix (3.9 through 6.0) is identical to what ran — and passed — before the release. Verified against npm that the fixed range excludes7.0and drops nothing else.Follow-up
Testing the init template against TypeScript 7 needs a synth toolchain that supports it (a ts-node replacement such as
tsx, or Node's native type stripping) — that's a template change, not a test-matrix change, so it's left out of this unblocking fix.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license