Skip to content

Don't set parent on non-transient symbols in mergeSymbolTable #61560

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jakebailey
Copy link
Member

This is functionally equivalent to the change made in microsoft/typescript-go#775; this line is stomping on real binder-created AST symbols, which is bad.

@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Apr 9, 2025
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Apr 9, 2025
@jakebailey
Copy link
Member Author

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 9, 2025

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 @jakebailey, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

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

Everything looks good!

@typescript-bot
Copy link
Collaborator

@jakebailey
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 34 34 ~ ~ ~ p=1.000 n=6
Symbols 62,390 62,390 ~ ~ ~ p=1.000 n=6
Types 50,395 50,395 ~ ~ ~ p=1.000 n=6
Memory used 194,137k (± 0.97%) 193,691k (± 0.78%) ~ 192,906k 196,758k p=0.748 n=6
Parse Time 1.30s (± 0.84%) 1.31s (± 0.57%) ~ 1.30s 1.32s p=0.227 n=6
Bind Time 0.73s 0.73s ~ ~ ~ p=1.000 n=6
Check Time 9.74s (± 0.44%) 9.74s (± 0.39%) ~ 9.69s 9.80s p=0.936 n=6
Emit Time 2.73s (± 0.30%) 2.73s (± 1.01%) ~ 2.70s 2.77s p=0.805 n=6
Total Time 14.51s (± 0.37%) 14.51s (± 0.38%) ~ 14.42s 14.59s p=0.747 n=6
angular-1 - node (v18.15.0, x64)
Errors 56 56 ~ ~ ~ p=1.000 n=6
Symbols 948,670 948,670 ~ ~ ~ p=1.000 n=6
Types 410,947 410,947 ~ ~ ~ p=1.000 n=6
Memory used 1,224,316k (± 0.00%) 1,224,260k (± 0.00%) ~ 1,224,232k 1,224,317k p=0.092 n=6
Parse Time 6.64s (± 0.81%) 6.66s (± 0.47%) ~ 6.60s 6.68s p=0.142 n=6
Bind Time 1.89s (± 0.62%) 1.88s (± 0.62%) ~ 1.86s 1.89s p=0.187 n=6
Check Time 31.97s (± 0.22%) 31.96s (± 0.37%) ~ 31.83s 32.14s p=0.810 n=6
Emit Time 15.28s (± 0.53%) 15.25s (± 0.59%) ~ 15.14s 15.36s p=0.629 n=6
Total Time 55.78s (± 0.09%) 55.75s (± 0.27%) ~ 55.55s 55.96s p=0.810 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,462,748 2,462,748 ~ ~ ~ p=1.000 n=6
Types 893,580 893,580 ~ ~ ~ p=1.000 n=6
Memory used 2,312,764k (± 0.00%) 2,312,703k (± 0.00%) ~ 2,312,595k 2,312,774k p=0.261 n=6
Parse Time 9.10s (± 0.20%) 9.09s (± 0.20%) ~ 9.08s 9.12s p=0.243 n=6
Bind Time 2.29s (± 0.53%) 2.29s (± 0.64%) ~ 2.27s 2.30s p=0.867 n=6
Check Time 75.67s (± 0.48%) 75.79s (± 0.50%) ~ 75.32s 76.30s p=0.810 n=6
Emit Time 0.29s (± 1.41%) 0.29s ~ ~ ~ p=0.405 n=6
Total Time 87.36s (± 0.42%) 87.46s (± 0.44%) ~ 86.96s 87.99s p=0.810 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,226,719 1,226,719 ~ ~ ~ p=1.000 n=6
Types 266,996 266,996 ~ ~ ~ p=1.000 n=6
Memory used 2,967,290k (±10.02%) 2,846,187k (±13.21%) ~ 2,359,958k 3,089,705k p=1.000 n=6
Parse Time 6.72s (± 1.33%) 6.66s (± 1.60%) ~ 6.52s 6.78s p=0.230 n=6
Bind Time 2.15s (± 2.59%) 2.16s (± 0.94%) ~ 2.13s 2.19s p=0.748 n=6
Check Time 42.80s (± 0.23%) 42.77s (± 0.38%) ~ 42.54s 43.00s p=1.000 n=6
Emit Time 3.48s (± 2.87%) 3.39s (± 2.18%) ~ 3.32s 3.51s p=0.128 n=6
Total Time 55.15s (± 0.18%) 55.00s (± 0.38%) ~ 54.75s 55.37s p=0.128 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,226,719 1,226,719 ~ ~ ~ p=1.000 n=6
Types 266,996 266,996 ~ ~ ~ p=1.000 n=6
Memory used 2,424,447k (± 0.01%) 2,424,343k (± 0.02%) ~ 2,424,004k 2,424,842k p=0.810 n=6
Parse Time 5.47s (± 0.48%) 5.49s (± 0.45%) ~ 5.45s 5.51s p=0.335 n=6
Bind Time 1.78s (± 1.15%) 1.80s (± 1.26%) ~ 1.77s 1.82s p=0.252 n=6
Check Time 35.35s (± 0.23%) 35.35s (± 0.22%) ~ 35.26s 35.47s p=0.936 n=6
Emit Time 3.06s (± 1.22%) 3.06s (± 1.16%) ~ 3.01s 3.09s p=1.000 n=6
Total Time 45.69s (± 0.17%) 45.72s (± 0.17%) ~ 45.60s 45.80s p=0.748 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 262,674 262,674 ~ ~ ~ p=1.000 n=6
Types 106,849 106,849 ~ ~ ~ p=1.000 n=6
Memory used 440,427k (± 0.02%) 440,445k (± 0.02%) ~ 440,324k 440,508k p=0.630 n=6
Parse Time 3.53s (± 1.27%) 3.53s (± 0.86%) ~ 3.49s 3.58s p=0.935 n=6
Bind Time 1.31s (± 1.08%) 1.32s (± 0.91%) ~ 1.31s 1.34s p=0.139 n=6
Check Time 18.98s (± 0.55%) 18.95s (± 0.45%) ~ 18.80s 19.01s p=0.872 n=6
Emit Time 1.51s (± 0.68%) 1.52s (± 1.25%) ~ 1.49s 1.55s p=0.094 n=6
Total Time 25.32s (± 0.46%) 25.32s (± 0.44%) ~ 25.15s 25.41s p=0.936 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 71 71 ~ ~ ~ p=1.000 n=6
Symbols 225,981 225,981 ~ ~ ~ p=1.000 n=6
Types 94,356 94,356 ~ ~ ~ p=1.000 n=6
Memory used 371,236k (± 0.04%) 371,221k (± 0.02%) ~ 371,125k 371,333k p=0.575 n=6
Parse Time 2.88s (± 0.56%) 2.91s (± 0.73%) +0.03s (+ 1.04%) 2.88s 2.94s p=0.034 n=6
Bind Time 1.59s (± 0.65%) 1.61s (± 1.41%) ~ 1.58s 1.64s p=0.217 n=6
Check Time 16.52s (± 0.39%) 16.53s (± 0.30%) ~ 16.48s 16.62s p=0.936 n=6
Emit Time 0.00s (±244.70%) 0.00s ~ ~ ~ p=0.405 n=6
Total Time 21.00s (± 0.37%) 21.05s (± 0.30%) ~ 20.98s 21.15s p=0.170 n=6
vscode - node (v18.15.0, x64)
Errors 4 4 ~ ~ ~ p=1.000 n=6
Symbols 3,344,528 3,344,528 ~ ~ ~ p=1.000 n=6
Types 1,133,660 1,133,660 ~ ~ ~ p=1.000 n=6
Memory used 3,404,018k (± 0.01%) 3,403,860k (± 0.00%) ~ 3,403,629k 3,404,141k p=0.128 n=6
Parse Time 14.72s (± 0.62%) 14.73s (± 0.33%) ~ 14.67s 14.79s p=0.936 n=6
Bind Time 4.69s (± 0.60%) 4.74s (± 2.01%) ~ 4.68s 4.93s p=0.294 n=6
Check Time 92.41s (± 1.52%) 91.20s (± 0.45%) ~ 90.52s 91.67s p=0.054 n=6
Emit Time 29.61s (± 1.68%) 29.75s (± 2.23%) ~ 29.32s 31.04s p=0.936 n=6
Total Time 141.43s (± 0.87%) 140.40s (± 0.42%) ~ 139.85s 141.22s p=0.093 n=6
webpack - node (v18.15.0, x64)
Errors 2 2 ~ ~ ~ p=1.000 n=6
Symbols 312,525 312,525 ~ ~ ~ p=1.000 n=6
Types 137,826 137,826 ~ ~ ~ p=1.000 n=6
Memory used 467,643k (± 0.02%) 467,593k (± 0.03%) ~ 467,436k 467,760k p=0.378 n=6
Parse Time 5.14s (± 1.15%) 5.12s (± 1.13%) ~ 5.07s 5.23s p=0.683 n=6
Bind Time 2.27s (± 0.72%) 2.25s (± 1.42%) ~ 2.21s 2.30s p=0.126 n=6
Check Time 25.59s (± 0.20%) 25.51s (± 0.21%) -0.08s (- 0.32%) 25.44s 25.58s p=0.030 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 33.01s (± 0.28%) 32.89s (± 0.27%) ~ 32.78s 33.00s p=0.066 n=6
xstate-main - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 568,548 568,548 ~ ~ ~ p=1.000 n=6
Types 190,459 190,459 ~ ~ ~ p=1.000 n=6
Memory used 498,525k (± 0.01%) 498,465k (± 0.01%) ~ 498,414k 498,558k p=0.093 n=6
Parse Time 3.37s (± 0.83%) 3.36s (± 0.83%) ~ 3.31s 3.38s p=0.936 n=6
Bind Time 1.20s (± 0.86%) 1.21s (± 1.10%) ~ 1.19s 1.23s p=0.506 n=6
Check Time 20.00s (± 0.35%) 20.03s (± 0.31%) ~ 19.97s 20.11s p=0.296 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.57s (± 0.32%) 24.60s (± 0.30%) ~ 24.49s 24.70s p=0.470 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

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

Everything looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
2 participants