Skip to content
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

Pass ignoreErrors=true to more resolveEntityName callers #61144

Merged
merged 3 commits into from
Feb 10, 2025

Conversation

jakebailey
Copy link
Member

Fixes #61008

In addition to the ones in getSymbolOfNameOrPropertyAccessExpression (which fix the above issue), I looked at other places we don't pass ignoreErrors=true to resolveEntityName and also fixed a pair which are only called via the public API of the TypeChecker.

There are a small handful of other ones I have not changed as I believe they are really there to report errors.

@jakebailey
Copy link
Member Author

@typescript-bot pack this
@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Feb 7, 2025

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

Command Status Results
pack this ✅ Started ✅ 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

typescript-bot commented Feb 7, 2025

Hey @jakebailey, 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/164752/artifacts?artifactName=tgz&fileId=0225747C8AD14ECDEA81F4DAC6BDCF17DA8E79769C2EF0DE9C4D25753BF0B36302&fileName=/typescript-5.8.0-insiders.20250207.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.8.0-pr-61144-2".;

@typescript-bot
Copy link
Collaborator

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

Everything looks good!

@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
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 196,646k (± 0.04%) 195,948k (± 0.79%) ~ 192,791k 196,715k p=0.575 n=6
Parse Time 1.60s (± 1.09%) 1.61s (± 0.78%) ~ 1.59s 1.63s p=0.440 n=6
Bind Time 0.89s (± 1.42%) 0.88s (± 1.55%) ~ 0.86s 0.90s p=0.408 n=6
Check Time 11.73s (± 0.66%) 11.71s (± 0.34%) ~ 11.66s 11.76s p=0.629 n=6
Emit Time 3.29s (± 0.72%) 3.37s (± 3.68%) ~ 3.25s 3.55s p=0.222 n=6
Total Time 17.52s (± 0.55%) 17.57s (± 0.82%) ~ 17.44s 17.77s p=0.629 n=6
angular-1 - node (v18.15.0, x64)
Errors 37 37 ~ ~ ~ p=1.000 n=6
Symbols 948,488 948,488 ~ ~ ~ p=1.000 n=6
Types 411,006 411,006 ~ ~ ~ p=1.000 n=6
Memory used 1,224,265k (± 0.01%) 1,224,338k (± 0.01%) ~ 1,224,252k 1,224,460k p=0.093 n=6
Parse Time 8.04s (± 0.77%) 8.04s (± 0.44%) ~ 7.99s 8.07s p=0.686 n=6
Bind Time 2.28s (± 0.53%) 2.28s (± 0.75%) ~ 2.26s 2.30s p=0.934 n=6
Check Time 37.94s (± 0.47%) 37.90s (± 0.57%) ~ 37.61s 38.21s p=0.810 n=6
Emit Time 18.26s (± 0.51%) 18.35s (± 0.29%) ~ 18.28s 18.42s p=0.126 n=6
Total Time 66.52s (± 0.22%) 66.57s (± 0.33%) ~ 66.33s 66.88s p=0.748 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,372,446 2,372,446 ~ ~ ~ p=1.000 n=6
Types 846,261 846,261 ~ ~ ~ p=1.000 n=6
Memory used 2,135,072k (± 0.01%) 2,135,008k (± 0.01%) ~ 2,134,888k 2,135,221k p=0.230 n=6
Parse Time 8.85s (± 1.82%) 8.84s (± 2.13%) ~ 8.73s 9.22s p=0.685 n=6
Bind Time 2.84s (± 7.10%) 2.86s (± 7.51%) ~ 2.42s 2.97s p=0.470 n=6
Check Time 87.83s (± 2.11%) 87.99s (± 2.04%) ~ 86.79s 91.62s p=0.336 n=6
Emit Time 0.20s (± 5.79%) 0.19s (± 4.22%) ~ 0.18s 0.20s p=0.131 n=6
Total Time 99.73s (± 1.81%) 99.88s (± 1.78%) ~ 98.63s 103.46s p=0.471 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,228,511 1,228,511 ~ ~ ~ p=1.000 n=6
Types 266,960 266,960 ~ ~ ~ p=1.000 n=6
Memory used 2,725,670k (±14.60%) 2,968,193k (± 9.99%) ~ 2,362,031k 3,090,325k p=0.298 n=6
Parse Time 6.64s (± 2.14%) 6.72s (± 0.88%) ~ 6.60s 6.76s p=1.000 n=6
Bind Time 2.14s (± 2.26%) 2.15s (± 1.57%) ~ 2.10s 2.20s p=0.872 n=6
Check Time 42.64s (± 0.52%) 42.66s (± 0.43%) ~ 42.37s 42.91s p=1.000 n=6
Emit Time 3.47s (± 3.49%) 3.43s (± 2.18%) ~ 3.34s 3.54s p=0.873 n=6
Total Time 54.91s (± 0.64%) 54.96s (± 0.47%) ~ 54.45s 55.18s 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,228,511 1,228,511 ~ ~ ~ p=1.000 n=6
Types 266,960 266,960 ~ ~ ~ p=1.000 n=6
Memory used 2,912,589k (±12.85%) 3,033,976k (± 9.76%) ~ 2,429,167k 3,155,698k p=0.173 n=6
Parse Time 6.91s (± 1.36%) 6.94s (± 1.06%) ~ 6.81s 7.01s p=0.575 n=6
Bind Time 2.13s (± 1.16%) 2.12s (± 1.14%) ~ 2.09s 2.15s p=0.520 n=6
Check Time 42.63s (± 0.35%) 42.76s (± 0.48%) ~ 42.40s 42.94s p=0.298 n=6
Emit Time 3.47s (± 1.41%) 3.43s (± 1.69%) ~ 3.38s 3.51s p=0.375 n=6
Total Time 55.16s (± 0.45%) 55.25s (± 0.54%) ~ 54.72s 55.49s p=0.575 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 262,817 262,817 ~ ~ ~ p=1.000 n=6
Types 106,833 106,833 ~ ~ ~ p=1.000 n=6
Memory used 440,521k (± 0.01%) 440,467k (± 0.02%) ~ 440,351k 440,574k p=0.298 n=6
Parse Time 3.55s (± 1.03%) 3.56s (± 1.10%) ~ 3.51s 3.61s p=0.748 n=6
Bind Time 1.31s (± 0.57%) 1.32s (± 0.88%) ~ 1.30s 1.33s p=0.097 n=6
Check Time 18.91s (± 0.31%) 18.98s (± 0.30%) +0.07s (+ 0.34%) 18.87s 19.04s p=0.045 n=6
Emit Time 1.53s (± 0.76%) 1.51s (± 0.54%) -0.02s (- 1.20%) 1.50s 1.52s p=0.016 n=6
Total Time 25.30s (± 0.36%) 25.37s (± 0.25%) ~ 25.26s 25.43s p=0.170 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 70 70 ~ ~ ~ p=1.000 n=6
Symbols 226,113 226,113 ~ ~ ~ p=1.000 n=6
Types 94,488 94,488 ~ ~ ~ p=1.000 n=6
Memory used 371,285k (± 0.01%) 371,270k (± 0.01%) ~ 371,206k 371,337k p=0.689 n=6
Parse Time 2.32s (± 0.85%) 2.32s (± 0.88%) ~ 2.30s 2.34s p=0.869 n=6
Bind Time 1.34s (± 1.68%) 1.35s (± 2.06%) ~ 1.32s 1.38s p=0.402 n=6
Check Time 13.68s (± 0.35%) 13.70s (± 0.37%) ~ 13.63s 13.78s p=0.465 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 17.33s (± 0.32%) 17.37s (± 0.31%) ~ 17.29s 17.42s p=0.373 n=6
vscode - node (v18.15.0, x64)
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 3,284,782 3,284,782 ~ ~ ~ p=1.000 n=6
Types 1,129,428 1,129,428 ~ ~ ~ p=1.000 n=6
Memory used 3,351,612k (± 0.01%) 3,351,455k (± 0.00%) ~ 3,351,333k 3,351,656k p=0.093 n=6
Parse Time 11.93s (± 0.35%) 11.96s (± 0.34%) ~ 11.90s 12.02s p=0.336 n=6
Bind Time 3.83s (± 0.55%) 3.82s (± 0.51%) ~ 3.79s 3.84s p=0.250 n=6
Check Time 75.54s (± 0.38%) 75.28s (± 0.47%) ~ 74.93s 75.86s p=0.230 n=6
Emit Time 23.38s (± 0.35%) 23.33s (± 0.30%) ~ 23.22s 23.41s p=0.574 n=6
Total Time 114.68s (± 0.34%) 114.40s (± 0.36%) ~ 113.97s 115.01s p=0.298 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 293,381 293,381 ~ ~ ~ p=1.000 n=6
Types 119,582 119,582 ~ ~ ~ p=1.000 n=6
Memory used 446,890k (± 0.02%) 446,919k (± 0.02%) ~ 446,843k 447,081k p=0.810 n=6
Parse Time 4.08s (± 0.77%) 4.07s (± 1.00%) ~ 4.03s 4.14s p=0.572 n=6
Bind Time 1.78s (± 0.94%) 1.79s (± 1.15%) ~ 1.76s 1.81s p=0.251 n=6
Check Time 18.74s (± 0.54%) 18.80s (± 0.27%) ~ 18.75s 18.86s p=0.261 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.59s (± 0.45%) 24.66s (± 0.36%) ~ 24.57s 24.80s p=0.521 n=6
xstate-main - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 555,375 555,375 ~ ~ ~ p=1.000 n=6
Types 186,146 186,146 ~ ~ ~ p=1.000 n=6
Memory used 494,024k (± 0.03%) 494,058k (± 0.01%) ~ 493,980k 494,138k p=0.689 n=6
Parse Time 3.42s (± 0.71%) 3.41s (± 0.78%) ~ 3.37s 3.45s p=0.743 n=6
Bind Time 1.20s (± 1.70%) 1.20s (± 1.05%) ~ 1.19s 1.22s p=1.000 n=6
Check Time 19.68s (± 1.34%) 19.57s (± 0.34%) ~ 19.51s 19.65s p=0.335 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.29s (± 1.09%) 24.18s (± 0.29%) ~ 24.10s 24.27s p=0.375 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/61144/merge:

Everything looks good!

@jakebailey jakebailey merged commit e1629e5 into microsoft:main Feb 10, 2025
32 checks passed
@jakebailey jakebailey deleted the fix-61008 branch February 10, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Memory leakage occurs in the getTypeAtLocation method in the latest version.
3 participants