Skip to content

Revert PR 55371 - #58702

Merged
Gabriela Araujo Britto (gabritto) merged 2 commits into
mainfrom
gabritto/revert55371
May 30, 2024
Merged

Revert PR 55371#58702
Gabriela Araujo Britto (gabritto) merged 2 commits into
mainfrom
gabritto/revert55371

Conversation

@gabritto

Copy link
Copy Markdown
Member

Fixes#58687.
Reverts #55371.

@gabritto

Copy link
Copy Markdown
MemberAuthor

TypeScript Bot (@typescript-bot) test it

@typescript-bot

TypeScript Bot (typescript-bot) commented May 29, 2024

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

CommandStatusResults
test top400✅ Started✅ Results
user test this✅ Started✅ Results
run dt✅ Started✅ Results
perf test this faster✅ Started👀 Results

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Gabriela Araujo Britto (@gabritto), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the user tests comparing main and refs/pull/58702/merge:

Everything looks good!

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
MetricbaselineprDeltaBestWorstp-value
Compiler-Unions - node (v18.15.0, x64)
Errors3030~~~p=1.000 n=6
Symbols62,15362,153~~~p=1.000 n=6
Types50,24250,242~~~p=1.000 n=6
Memory used192,871k (± 0.74%)193,059k (± 0.69%)~192,259k195,764kp=0.173 n=6
Parse Time1.30s (± 0.80%)1.31s (± 1.04%)~1.29s1.32sp=0.804 n=6
Bind Time0.72s0.72s~~~p=1.000 n=6
Check Time9.54s (± 0.18%)9.54s (± 0.40%)~9.49s9.60sp=0.806 n=6
Emit Time2.64s (± 0.50%)2.63s (± 0.65%)~2.61s2.65sp=0.286 n=6
Total Time14.20s (± 0.24%)14.20s (± 0.39%)~14.11s14.26sp=1.000 n=6
angular-1 - node (v18.15.0, x64)
Errors55~~~p=1.000 n=6
Symbols944,105944,105~~~p=1.000 n=6
Types407,032407,032~~~p=1.000 n=6
Memory used1,222,105k (± 0.00%)1,222,106k (± 0.00%)~1,222,060k1,222,146kp=0.872 n=6
Parse Time6.82s (± 0.74%)6.81s (± 0.77%)~6.74s6.87sp=1.000 n=6
Bind Time1.88s (± 0.43%)1.88s (± 0.56%)~1.86s1.89sp=0.181 n=6
Check Time31.39s (± 0.39%)31.28s (± 0.55%)~31.05s31.54sp=0.297 n=6
Emit Time14.78s (± 0.20%)14.77s (± 0.28%)~14.69s14.80sp=1.000 n=6
Total Time54.88s (± 0.25%)54.74s (± 0.33%)~54.53s54.98sp=0.230 n=6
mui-docs - node (v18.15.0, x64)
Errors55~~~p=1.000 n=6
Symbols2,053,0112,053,011~~~p=1.000 n=6
Types899,367899,368+1 (+ 0.00%)~~p=0.001 n=6
Memory used2,065,938k (± 0.01%)2,065,881k (± 0.01%)~2,065,643k2,065,970kp=0.128 n=6
Parse Time8.11s (± 0.36%)8.10s (± 0.12%)~8.09s8.11sp=0.620 n=6
Bind Time2.73s (± 0.46%)2.74s (± 1.02%)~2.72s2.78sp=0.452 n=6
Check Time82.22s (± 0.25%)81.53s (± 1.16%)-0.68s (- 0.83%)79.62s82.03sp=0.016 n=6
Emit Time0.16s (± 2.52%)0.17s (± 3.32%)~0.16s0.17sp=0.282 n=6
Total Time93.22s (± 0.20%)92.54s (± 1.00%)-0.67s (- 0.72%)90.66s93.02sp=0.013 n=6
self-build-src - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,226,2901,226,288-2 (- 0.00%)~~p=0.001 n=6
Types260,834260,837+3 (+ 0.00%)~~p=0.001 n=6
Memory used2,342,594k (± 0.04%)2,342,915k (± 0.05%)~2,341,631k2,344,408kp=0.810 n=6
Parse Time4.99s (± 1.57%)4.98s (± 1.10%)~4.92s5.05sp=0.872 n=6
Bind Time1.91s (± 0.43%)1.89s (± 0.86%)~1.87s1.91sp=0.184 n=6
Check Time33.87s (± 0.40%)33.89s (± 0.53%)~33.68s34.11sp=0.810 n=6
Emit Time2.59s (± 2.79%)2.63s (± 3.90%)~2.45s2.73sp=0.423 n=6
Total Time43.37s (± 0.58%)43.41s (± 0.52%)~43.10s43.74sp=0.810 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,226,2901,226,288-2 (- 0.00%)~~p=0.001 n=6
Types260,834260,837+3 (+ 0.00%)~~p=0.001 n=6
Memory used2,418,980k (± 0.02%)2,419,032k (± 0.04%)~2,417,358k2,420,033kp=0.689 n=6
Parse Time5.17s (± 1.69%)5.17s (± 0.80%)~5.13s5.25sp=0.936 n=6
Bind Time1.70s (± 0.44%)1.70s (± 0.49%)~1.69s1.71sp=0.432 n=6
Check Time34.34s (± 0.22%)34.27s (± 0.36%)~34.07s34.40sp=0.521 n=6
Emit Time2.62s (± 2.52%)2.60s (± 2.90%)~2.52s2.69sp=0.630 n=6
Total Time43.84s (± 0.45%)43.77s (± 0.34%)~43.63s44.03sp=0.471 n=6
self-compiler - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols257,977257,975-2 (- 0.00%)~~p=0.001 n=6
Types104,898104,900+2 (+ 0.00%)~~p=0.001 n=6
Memory used426,895k (± 0.01%)426,873k (± 0.01%)~426,810k426,902kp=0.298 n=6
Parse Time3.32s (± 0.59%)3.33s (± 0.92%)~3.30s3.38sp=0.935 n=6
Bind Time1.32s (± 1.14%)1.32s (± 1.14%)~1.29s1.33sp=1.000 n=6
Check Time18.05s (± 0.36%)18.01s (± 0.46%)~17.92s18.11sp=0.422 n=6
Emit Time1.33s (± 1.13%)1.33s (± 1.31%)~1.32s1.36sp=0.511 n=6
Total Time24.02s (± 0.40%)23.99s (± 0.42%)~23.89s24.14sp=0.630 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors3535~~~p=1.000 n=6
Symbols224,565224,565~~~p=1.000 n=6
Types93,73493,734~~~p=1.000 n=6
Memory used369,804k (± 0.03%)369,867k (± 0.03%)~369,749k370,051kp=0.378 n=6
Parse Time3.54s (± 0.50%)3.52s (± 0.99%)~3.47s3.55sp=0.286 n=6
Bind Time1.93s (± 1.02%)1.94s (± 0.62%)~1.92s1.95sp=0.415 n=6
Check Time19.38s (± 0.33%)19.36s (± 0.16%)~19.30s19.38sp=0.292 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time24.84s (± 0.24%)24.81s (± 0.20%)~24.73s24.86sp=0.684 n=6
vscode - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols2,840,7992,840,799~~~p=1.000 n=6
Types962,729962,729~~~p=1.000 n=6
Memory used3,014,042k (± 0.00%)3,014,027k (± 0.00%)~3,013,963k3,014,079kp=0.378 n=6
Parse Time13.82s (± 0.27%)13.82s (± 0.27%)~13.77s13.87sp=1.000 n=6
Bind Time4.33s (± 1.85%)4.20s (± 2.21%)~4.15s4.39sp=0.105 n=6
Check Time73.27s (± 0.23%)73.41s (± 0.34%)~73.10s73.83sp=0.229 n=6
Emit Time23.47s (± 0.51%)23.53s (± 0.58%)~23.31s23.70sp=0.630 n=6
Total Time114.89s (± 0.18%)114.95s (± 0.19%)~114.64s115.23sp=0.630 n=6
webpack - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols266,048266,048~~~p=1.000 n=6
Types108,470108,470~~~p=1.000 n=6
Memory used410,858k (± 0.02%)410,899k (± 0.02%)~410,861k411,028kp=0.471 n=6
Parse Time4.78s (± 0.98%)4.79s (± 0.74%)~4.75s4.85sp=1.000 n=6
Bind Time2.07s (± 1.18%)2.06s (± 0.66%)~2.04s2.08sp=0.461 n=6
Check Time21.04s (± 0.22%)21.06s (± 0.29%)~20.98s21.16sp=0.517 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time27.88s (± 0.26%)27.91s (± 0.22%)~27.81s27.99sp=0.574 n=6
xstate-main - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols535,743535,743~~~p=1.000 n=6
Types182,738182,741+3 (+ 0.00%)~~p=0.001 n=6
Memory used470,396k (± 0.01%)470,388k (± 0.00%)~470,345k470,410kp=0.810 n=6
Parse Time3.95s (± 0.46%)3.96s (± 0.36%)~3.94s3.98sp=0.324 n=6
Bind Time1.49s (± 0.95%)1.48s (± 0.79%)~1.47s1.50sp=0.325 n=6
Check Time22.70s (± 0.30%)22.64s (± 0.27%)~22.56s22.70sp=0.092 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time28.14s (± 0.31%)28.08s (± 0.22%)~28.00s28.15sp=0.257 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
BenchmarkNameIterations
Currentpr6
Baselinebaseline6

Developer Information:

Download Benchmarks

@gabritto
Gabriela Araujo Britto (gabritto) marked this pull request as ready for review May 29, 2024 19:37
@gabritto
Gabriela Araujo Britto (gabritto) marked this pull request as draft May 29, 2024 19:42
@gabritto

Copy link
Copy Markdown
MemberAuthor

TypeScript Bot (@typescript-bot) pack this

@typescript-bot

TypeScript Bot (typescript-bot) commented May 29, 2024

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

CommandStatusResults
pack this✅ Started✅ Results

@typescript-bot

TypeScript Bot (typescript-bot) commented May 29, 2024

Copy link
Copy Markdown
Contributor

Hey Gabriela Araujo Britto (@gabritto), I've packed this into an installable tgz. You can install it for testing by referencing it in your package.json like so:

{
"devDependencies": {
"typescript": "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/161979/artifacts?artifactName=tgz&fileId=1BFA18BBC6DA0A2A9A0BB31A899B882DF274F7A83CD3BA53C4D866A4F3E3280A02&fileName=/typescript-5.5.0-insiders.20240529.tgz"
}
}

and then running npm install.


There is also a playground for this build and an npm module you can use via "typescript": "npm:@typescript-deploys/pr-build@5.5.0-pr-58702-7".;

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the top 400 repos comparing main and refs/pull/58702/merge:

Everything looks good!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd add an extra test case to the original test file here based on Anders' comment in the other PR:

declarefunctionbar<Textendsstring>(x: `${T}`): T;functionbaz<Uextendsstring>(x: `${U}`){returnbar(x);}

!!! error TS2322: Type '"a"' is not assignable to type '`${T2}`'.

function f3<T3 extends "a" | "b">(x: T3) {
const test1: `${T3}` = x

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it could be nice to add comments to both of those assignments to explain the error, like:

Suggested change
const test1: `${T3}` = x
const test1: `${T3}` = x; // error, T3 could be instantiated with a string enum

@gabritto
Gabriela Araujo Britto (gabritto) marked this pull request as ready for review May 30, 2024 16:38
@gabritto
Gabriela Araujo Britto (gabritto) deleted the gabritto/revert55371 branch May 30, 2024 16:53
Jonathan Skeate (skeate) added a commit to skeate/TypeScript that referenced this pull request Jun 1, 2024
* upstream/main: (37 commits)
Added NoTruncation flag to completions (microsoft#58719)
Clone node to remove location even when it has been modified if needed (microsoft#58706)
Properly account for `this` argument in intersection apparent type caching (microsoft#58677)
Fix: Include Values of Script Extensions for Unicode Property Value Expressions in Regular Expressions (microsoft#58615)
In `reScanSlashToken` use `charCodeChecked` not `codePointChecked` (microsoft#58727)
Shorten error spans for errors reported on constructor declarations (microsoft#58061)
Mark file as skips typechecking if it contains ts-nocheck (microsoft#58593)
Fixed an issue with broken `await using` declarations in `for of` loops (microsoft#56466)
Do not expand type references in keyof and index access (microsoft#58715)
Improve the performance of isolatedDeclarations quickfix (microsoft#58722)
Unwrap `NoInfer` types when narrowing (microsoft#58292)
Recover from type reuse errors by falling back to inferred type printing (microsoft#58720)
Fixing self import (microsoft#58718)
Enable JS emit for noCheck and noCheck for transpileModule (microsoft#58364)
Revert PR 55371 (microsoft#58702)
Update dependencies (microsoft#58639)
Fix baselines after PR 58621 (microsoft#58705)
Do not infer `yield*` type from contextual `TReturn` (microsoft#58621)
`await using` normative changes (microsoft#58624)
Handling statements from a known source file (microsoft#58679)
...
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Milestone BugPRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Template literal type reduction is inconsistent (regression in 5.5-beta)

4 participants

@gabritto@typescript-bot@ahejlsberg@Andarist