Skip to content

Fixed crash on circular local type arguments when outer ones are present too #59089

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

Merged

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented Jul 1, 2024

fixes #59062

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jul 1, 2024
@andrewbranch
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 1, 2024

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

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

@typescript-bot
Copy link
Collaborator

Hey @andrewbranch, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

@andrewbranch Here are the results of running the user tests with tsc comparing main and refs/pull/59089/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

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

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - node (v18.15.0, x64)
Errors 30 30 ~ ~ ~ p=1.000 n=6
Symbols 62,153 62,153 ~ ~ ~ p=1.000 n=6
Types 50,242 50,242 ~ ~ ~ p=1.000 n=6
Memory used 193,258k (± 0.85%) 193,405k (± 0.94%) ~ 192,108k 195,736k p=0.936 n=6
Parse Time 1.31s (± 0.31%) 1.30s (± 0.64%) ~ 1.29s 1.31s p=0.115 n=6
Bind Time 0.71s 0.71s ~ ~ ~ p=1.000 n=6
Check Time 9.46s (± 0.30%) 9.41s (± 0.46%) ~ 9.35s 9.47s p=0.078 n=6
Emit Time 2.75s (± 0.50%) 2.76s (± 0.69%) ~ 2.73s 2.78s p=0.510 n=6
Total Time 14.23s (± 0.19%) 14.18s (± 0.28%) ~ 14.15s 14.25s p=0.089 n=6
angular-1 - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 944,114 944,114 ~ ~ ~ p=1.000 n=6
Types 407,050 407,050 ~ ~ ~ p=1.000 n=6
Memory used 1,218,369k (± 0.00%) 1,218,368k (± 0.00%) ~ 1,218,311k 1,218,399k p=0.936 n=6
Parse Time 6.66s (± 0.89%) 6.63s (± 0.40%) ~ 6.59s 6.66s p=0.228 n=6
Bind Time 1.87s (± 0.65%) 1.86s (± 0.68%) ~ 1.85s 1.88s p=0.362 n=6
Check Time 30.63s (± 0.25%) 30.55s (± 0.15%) ~ 30.49s 30.61s p=0.171 n=6
Emit Time 13.55s (± 0.31%) 13.58s (± 0.18%) ~ 13.53s 13.60s p=0.169 n=6
Total Time 52.70s (± 0.17%) 52.62s (± 0.13%) ~ 52.50s 52.69s p=0.228 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,136,980 2,136,980 ~ ~ ~ p=1.000 n=6
Types 929,117 929,117 ~ ~ ~ p=1.000 n=6
Memory used 2,117,697k (± 0.00%) 2,117,788k (± 0.00%) ~ 2,117,719k 2,117,914k p=0.066 n=6
Parse Time 6.63s (± 0.30%) 6.63s (± 0.21%) ~ 6.61s 6.65s p=1.000 n=6
Bind Time 2.32s (± 0.59%) 2.31s (± 0.45%) ~ 2.30s 2.33s p=0.680 n=6
Check Time 70.79s (± 0.41%) 70.88s (± 0.53%) ~ 70.36s 71.40s p=0.748 n=6
Emit Time 0.14s (± 5.97%) 0.14s (± 3.77%) ~ 0.13s 0.14s p=0.929 n=6
Total Time 79.87s (± 0.36%) 79.96s (± 0.47%) ~ 79.47s 80.50s p=0.810 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,225,260 1,225,262 +2 (+ 0.00%) ~ ~ p=0.001 n=6
Types 261,341 261,341 ~ ~ ~ p=1.000 n=6
Memory used 2,340,954k (± 0.07%) 2,340,239k (± 0.03%) ~ 2,338,924k 2,340,811k p=0.575 n=6
Parse Time 5.03s (± 1.01%) 5.01s (± 0.79%) ~ 4.94s 5.06s p=0.470 n=6
Bind Time 1.90s (± 0.29%) 1.93s (± 2.00%) +0.04s (+ 1.93%) 1.89s 2.00s p=0.032 n=6
Check Time 34.27s (± 0.61%) 34.29s (± 0.20%) ~ 34.22s 34.39s p=1.000 n=6
Emit Time 2.60s (± 3.62%) 2.64s (± 6.49%) ~ 2.48s 2.90s p=0.810 n=6
Total Time 43.82s (± 0.69%) 43.87s (± 0.31%) ~ 43.68s 44.03s p=0.936 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,225,260 1,225,262 +2 (+ 0.00%) ~ ~ p=0.001 n=6
Types 261,341 261,341 ~ ~ ~ p=1.000 n=6
Memory used 2,414,882k (± 0.04%) 2,414,399k (± 0.02%) ~ 2,413,304k 2,415,075k p=0.378 n=6
Parse Time 6.29s (± 0.84%) 6.23s (± 0.50%) ~ 6.19s 6.27s p=0.066 n=6
Bind Time 2.02s (± 0.85%) 2.02s (± 0.93%) ~ 1.99s 2.04s p=0.871 n=6
Check Time 40.81s (± 0.46%) 40.83s (± 0.55%) ~ 40.61s 41.17s p=0.936 n=6
Emit Time 3.14s (± 2.77%) 3.17s (± 2.94%) ~ 3.04s 3.28s p=0.573 n=6
Total Time 52.26s (± 0.55%) 52.27s (± 0.62%) ~ 51.94s 52.72s p=0.936 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 258,194 258,196 +2 (+ 0.00%) ~ ~ p=0.001 n=6
Types 104,737 104,737 ~ ~ ~ p=1.000 n=6
Memory used 427,435k (± 0.01%) 427,476k (± 0.01%) ~ 427,432k 427,515k p=0.066 n=6
Parse Time 4.10s (± 1.08%) 4.08s (± 1.00%) ~ 4.03s 4.15s p=0.745 n=6
Bind Time 1.61s (± 1.34%) 1.63s (± 1.42%) ~ 1.59s 1.65s p=0.370 n=6
Check Time 21.98s (± 0.27%) 22.00s (± 0.62%) ~ 21.83s 22.18s p=0.936 n=6
Emit Time 1.55s (± 1.45%) 1.55s (± 1.18%) ~ 1.52s 1.57s p=1.000 n=6
Total Time 29.25s (± 0.40%) 29.26s (± 0.47%) ~ 29.12s 29.46s p=1.000 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 35 35 ~ ~ ~ p=1.000 n=6
Symbols 224,565 224,565 ~ ~ ~ p=1.000 n=6
Types 93,734 93,734 ~ ~ ~ p=1.000 n=6
Memory used 369,497k (± 0.02%) 369,556k (± 0.04%) ~ 369,365k 369,779k p=0.575 n=6
Parse Time 2.76s (± 1.14%) 2.77s (± 1.47%) ~ 2.74s 2.85s p=0.687 n=6
Bind Time 1.58s (± 0.52%) 1.58s (± 0.40%) ~ 1.57s 1.59s p=0.432 n=6
Check Time 15.48s (± 0.13%) 15.48s (± 0.14%) ~ 15.46s 15.52s p=0.567 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 19.82s (± 0.24%) 19.83s (± 0.30%) ~ 19.79s 19.95s p=0.687 n=6
vscode - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,879,975 2,879,975 ~ ~ ~ p=1.000 n=6
Types 975,327 975,327 ~ ~ ~ p=1.000 n=6
Memory used 3,042,850k (± 0.00%) 3,042,827k (± 0.00%) ~ 3,042,769k 3,042,878k p=0.378 n=6
Parse Time 13.68s (± 0.18%) 13.73s (± 0.45%) ~ 13.67s 13.82s p=0.106 n=6
Bind Time 4.27s (± 2.82%) 4.27s (± 2.82%) ~ 4.18s 4.43s p=0.685 n=6
Check Time 74.55s (± 1.62%) 74.49s (± 2.15%) ~ 73.15s 77.23s p=0.873 n=6
Emit Time 23.15s (± 5.32%) 23.31s (± 7.27%) ~ 20.52s 24.49s p=0.471 n=6
Total Time 115.64s (± 0.26%) 115.79s (± 0.43%) ~ 115.31s 116.47s p=0.688 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 267,117 267,117 ~ ~ ~ p=1.000 n=6
Types 108,775 108,775 ~ ~ ~ p=1.000 n=6
Memory used 411,555k (± 0.02%) 411,575k (± 0.01%) ~ 411,518k 411,676k p=0.423 n=6
Parse Time 4.69s (± 0.42%) 4.69s (± 0.43%) ~ 4.67s 4.73s p=0.560 n=6
Bind Time 2.06s (± 0.73%) 2.08s (± 0.68%) ~ 2.06s 2.10s p=0.097 n=6
Check Time 20.67s (± 0.39%) 20.75s (± 0.51%) ~ 20.59s 20.87s p=0.230 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 27.43s (± 0.29%) 27.53s (± 0.45%) ~ 27.35s 27.70s p=0.199 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 525,251 525,251 ~ ~ ~ p=1.000 n=6
Types 178,574 178,574 ~ ~ ~ p=1.000 n=6
Memory used 462,894k (± 0.06%) 462,799k (± 0.08%) ~ 462,349k 463,160k p=0.810 n=6
Parse Time 3.19s (± 0.38%) 3.17s (± 0.93%) ~ 3.15s 3.22s p=0.224 n=6
Bind Time 1.17s (± 0.44%) 1.17s (± 0.84%) ~ 1.15s 1.18s p=0.386 n=6
Check Time 17.90s (± 0.48%) 17.96s (± 0.56%) ~ 17.84s 18.11s p=0.377 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 22.27s (± 0.39%) 22.31s (± 0.51%) ~ 22.16s 22.44s p=0.378 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)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@andrewbranch Here are the results of running the top 400 repos with tsc comparing main and refs/pull/59089/merge:

Everything looks good!

@andrewbranch andrewbranch requested review from sandersn and gabritto July 1, 2024 23:14
@DanielRosenwasser
Copy link
Member

Approved, though I'd also like the nits from Jake fixed up.

@Andarist
Copy link
Contributor Author

thanks @gabritto !

@gabritto gabritto merged commit ec446b6 into microsoft:main Jul 15, 2024
29 checks passed
@Andarist Andarist deleted the fix/circular-type-args-local-outer-crash branch July 15, 2024 22:01
@sandersn sandersn removed this from PR Backlog Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getTypeListId crashes with TypeError: Cannot read properties of undefined (reading 'id')
6 participants