Skip to content

Conversation

@Andarist
Copy link
Contributor

It's a bug that I noticed when working on #55144

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jul 25, 2023
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@Andarist Andarist force-pushed the fix/shorthand-contextual-discrimination branch from f2d3e2c to 5dbbb6c Compare July 25, 2023 17:07
@sandersn sandersn requested review from gabritto and iisaduan August 4, 2023 23:32
@gabritto

This comment was marked as duplicate.

@gabritto
Copy link
Member

@typescript-bot test this
@typescript-bot run DT
@typescript-bot user test this
@typescript-bot test top100
@typescript-bot perf test this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Aug 14, 2023

Heya @gabritto, I've started to run the parallelized Definitely Typed test suite on this PR at 5dbbb6c. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Aug 14, 2023

Heya @gabritto, I've started to run the diff-based top-repos suite on this PR at 5dbbb6c. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Aug 14, 2023

Heya @gabritto, I've started to run the diff-based user code test suite on this PR at 5dbbb6c. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Aug 14, 2023

Heya @gabritto, I've started to run the regular perf test suite on this PR at 5dbbb6c. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

@gabritto Here are the results of running the user test suite comparing main and refs/pull/55151/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Unknown failure"
  • 1 instance of "Package install failed"

Otherwise...

Something interesting changed - please have a look.

Details

rxjs-src

/mnt/ts_downloads/rxjs-src/build.sh

  • [NEW] error TS2428: All declarations of 'WeakMap' must have identical type parameters.
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-55151/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
  • [MISSING] error TS2428: All declarations of 'WeakMap' must have identical type parameters.
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)

@typescript-bot
Copy link
Collaborator

@gabritto
The results of the perf run you requested are in!

Here they are:

Compiler

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Angular - node (v16.17.1, x64)
Memory used 300,337k (± 0.01%) 300,325k (± 0.01%) ~ 300,295k 300,363k p=0.422 n=6
Parse Time 3.03s (± 0.00%) 3.02s (± 0.49%) -0.01s (- 0.39%) 2.99s 3.03s p=0.027 n=6
Bind Time 0.93s (± 0.00%) 0.93s (± 0.00%) ~ 0.93s 0.93s p=1.000 n=6
Check Time 9.47s (± 0.20%) 9.47s (± 0.30%) ~ 9.43s 9.51s p=0.935 n=6
Emit Time 7.61s (± 0.16%) 7.63s (± 0.36%) ~ 7.59s 7.67s p=0.164 n=6
Total Time 21.05s (± 0.08%) 21.06s (± 0.27%) ~ 20.98s 21.14s p=0.872 n=6
Compiler-Unions - node (v16.17.1, x64)
Memory used 193,798k (± 0.01%) 193,814k (± 0.01%) ~ 193,789k 193,830k p=0.148 n=6
Parse Time 1.57s (± 1.25%) 1.57s (± 1.05%) ~ 1.55s 1.58s p=0.476 n=6
Bind Time 0.79s (± 0.00%) 0.79s (± 0.00%) ~ 0.79s 0.79s p=1.000 n=6
Check Time 9.89s (± 0.16%) 9.88s (± 0.46%) ~ 9.82s 9.94s p=0.514 n=6
Emit Time 2.73s (± 0.19%) 2.74s (± 0.30%) +0.01s (+ 0.43%) 2.74s 2.76s p=0.019 n=6
Total Time 14.99s (± 0.11%) 14.98s (± 0.42%) ~ 14.90s 15.07s p=0.686 n=6
Monaco - node (v16.17.1, x64)
Memory used 347,044k (± 0.00%) 347,055k (± 0.00%) ~ 347,036k 347,082k p=0.198 n=6
Parse Time 2.69s (± 0.30%) 2.69s (± 0.49%) ~ 2.68s 2.71s p=0.865 n=6
Bind Time 0.99s (± 0.00%) 0.99s (± 0.00%) ~ 0.99s 0.99s p=1.000 n=6
Check Time 7.92s (± 0.31%) 7.90s (± 0.15%) ~ 7.88s 7.91s p=0.318 n=6
Emit Time 4.26s (± 0.69%) 4.27s (± 0.27%) ~ 4.26s 4.29s p=0.324 n=6
Total Time 15.86s (± 0.17%) 15.85s (± 0.17%) ~ 15.82s 15.90s p=0.568 n=6
TFS - node (v16.17.1, x64)
Memory used 301,125k (± 0.01%) 301,127k (± 0.00%) ~ 301,112k 301,143k p=0.872 n=6
Parse Time 2.17s (± 0.45%) 2.17s (± 0.45%) ~ 2.16s 2.18s p=1.000 n=6
Bind Time 1.11s (± 0.57%) 1.11s (± 0.49%) ~ 1.11s 1.12s p=0.201 n=6
Check Time 7.21s (± 0.38%) 7.23s (± 0.27%) ~ 7.20s 7.25s p=0.418 n=6
Emit Time 3.97s (± 0.74%) 3.97s (± 0.44%) ~ 3.95s 4.00s p=0.512 n=6
Total Time 14.47s (± 0.28%) 14.48s (± 0.16%) ~ 14.45s 14.52s p=0.572 n=6
material-ui - node (v16.17.1, x64)
Memory used 479,381k (± 0.01%) 479,398k (± 0.01%) ~ 479,342k 479,462k p=0.810 n=6
Parse Time 3.15s (± 0.13%) 3.15s (± 0.33%) ~ 3.14s 3.17s p=0.924 n=6
Bind Time 0.91s (± 0.00%) 0.91s (± 0.00%) ~ 0.91s 0.91s p=1.000 n=6
Check Time 17.92s (± 0.22%) 17.88s (± 0.40%) ~ 17.80s 18.01s p=0.149 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 21.98s (± 0.19%) 21.95s (± 0.32%) ~ 21.85s 22.07s p=0.228 n=6
xstate - node (v16.17.1, x64)
Memory used 542,753k (± 0.00%) 542,752k (± 0.01%) ~ 542,712k 542,808k p=0.936 n=6
Parse Time 3.70s (± 0.14%) 3.70s (± 0.32%) ~ 3.68s 3.71s p=0.542 n=6
Bind Time 1.38s (± 4.67%) 1.42s (± 4.45%) ~ 1.34s 1.47s p=0.432 n=6
Check Time 3.27s (± 2.79%) 3.21s (± 2.15%) ~ 3.15s 3.30s p=0.126 n=6
Emit Time 0.08s (± 4.99%) 0.08s (± 0.00%) ~ 0.08s 0.08s p=0.405 n=6
Total Time 8.45s (± 0.45%) 8.42s (± 0.12%) ~ 8.40s 8.43s p=0.258 n=6
System info unknown
Hosts
  • node (v16.17.1, x64)
Scenarios
  • Angular - node (v16.17.1, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Monaco - node (v16.17.1, x64)
  • TFS - node (v16.17.1, x64)
  • material-ui - node (v16.17.1, x64)
  • xstate - node (v16.17.1, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

tsserver

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-UnionsTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,490ms (± 0.09%) 2,493ms (± 0.21%) ~ 2,486ms 2,498ms p=0.371 n=6
Req 2 - geterr 5,922ms (± 0.21%) 5,933ms (± 0.30%) ~ 5,915ms 5,956ms p=0.173 n=6
Req 3 - references 342ms (± 0.39%) 342ms (± 0.22%) ~ 341ms 343ms p=0.548 n=6
Req 4 - navto 278ms (± 1.01%) 277ms (± 0.82%) ~ 275ms 281ms p=0.870 n=6
Req 5 - completionInfo count 1,356 (± 0.00%) 1,356 (± 0.00%) ~ 1,356 1,356 p=1.000 n=6
Req 5 - completionInfo 86ms (± 6.93%) 79ms (± 3.71%) 🟩-7ms (- 8.11%) 76ms 82ms p=0.016 n=6
CompilerTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,595ms (± 0.67%) 2,598ms (± 0.89%) ~ 2,581ms 2,634ms p=0.873 n=6
Req 2 - geterr 4,712ms (± 0.26%) 4,715ms (± 0.24%) ~ 4,701ms 4,733ms p=0.810 n=6
Req 3 - references 350ms (± 0.26%) 350ms (± 0.28%) ~ 348ms 351ms p=0.931 n=6
Req 4 - navto 269ms (± 0.28%) 269ms (± 0.31%) ~ 267ms 269ms p=0.209 n=6
Req 5 - completionInfo count 1,518 (± 0.00%) 1,518 (± 0.00%) ~ 1,518 1,518 p=1.000 n=6
Req 5 - completionInfo 78ms (± 0.66%) 78ms (± 3.02%) ~ 73ms 79ms p=0.931 n=6
xstateTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,718ms (± 0.28%) 2,709ms (± 0.29%) ~ 2,699ms 2,718ms p=0.090 n=6
Req 2 - geterr 1,936ms (± 1.70%) 1,955ms (± 0.38%) ~ 1,943ms 1,964ms p=0.199 n=6
Req 3 - references 137ms (± 6.24%) 126ms (± 8.66%) ~ 113ms 142ms p=0.077 n=6
Req 4 - navto 353ms (± 0.35%) 352ms (± 0.12%) ~ 351ms 352ms p=0.218 n=6
Req 5 - completionInfo count 2,071 (± 0.00%) 2,071 (± 0.00%) ~ 2,071 2,071 p=1.000 n=6
Req 5 - completionInfo 323ms (± 2.48%) 321ms (± 2.47%) ~ 311ms 328ms p=0.466 n=6
System info unknown
Hosts
  • node (v16.17.1, x64)
Scenarios
  • CompilerTSServer - node (v16.17.1, x64)
  • Compiler-UnionsTSServer - node (v16.17.1, x64)
  • xstateTSServer - node (v16.17.1, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Startup

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
tsc-startup - node (v16.17.1, x64)
Execution time 155.53ms (± 0.15%) 155.42ms (± 0.20%) -0.11ms (- 0.07%) 154.14ms 161.29ms p=0.000 n=600
tsserver-startup - node (v16.17.1, x64)
Execution time 230.83ms (± 0.13%) 230.64ms (± 0.12%) -0.19ms (- 0.08%) 229.50ms 234.25ms p=0.000 n=600
tsserverlibrary-startup - node (v16.17.1, x64)
Execution time 234.61ms (± 0.15%) 236.00ms (± 0.13%) +1.38ms (+ 0.59%) 234.95ms 241.52ms p=0.000 n=600
typescript-startup - node (v16.17.1, x64)
Execution time 235.86ms (± 0.16%) 235.70ms (± 0.14%) -0.15ms (- 0.07%) 234.31ms 241.00ms p=0.000 n=600
System info unknown
Hosts
  • node (v16.17.1, x64)
Scenarios
  • tsc-startup - node (v16.17.1, x64)
  • tsserver-startup - node (v16.17.1, x64)
  • tsserverlibrary-startup - node (v16.17.1, x64)
  • typescript-startup - node (v16.17.1, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@gabritto Here are the results of running the top-repos suite comparing main and refs/pull/55151/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

Hey @gabritto, the results of running the DT tests are ready.
Everything looks the same!
You can check the log here.

@gabritto gabritto merged commit 8863e2f into microsoft:main Aug 15, 2023
snovader pushed a commit to EG-A-S/TypeScript that referenced this pull request Sep 23, 2023
@Andarist Andarist deleted the fix/shorthand-contextual-discrimination branch February 1, 2025 09:39
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants