Skip to content

Don't erase signature type parameters in signaturesRelatedTo - #48092

Closed
Anders Hejlsberg (ahejlsberg) wants to merge 7 commits into
mainfrom
fix48070
Closed

Don't erase signature type parameters in signaturesRelatedTo#48092
Anders Hejlsberg (ahejlsberg) wants to merge 7 commits into
mainfrom
fix48070

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

Fixes#48070.

@ahejlsberg

Copy link
Copy Markdown
MemberAuthor

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 2, 2022

Copy link
Copy Markdown
Contributor

Heya Anders Hejlsberg (@ahejlsberg), I've started to run the extended test suite on this PR at b46f196. You can monitor the build here.

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 2, 2022

Copy link
Copy Markdown
Contributor

Heya Anders Hejlsberg (@ahejlsberg), I've started to run the abridged perf test suite on this PR at b46f196. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 2, 2022

Copy link
Copy Markdown
Contributor

Heya Anders Hejlsberg (@ahejlsberg), I've started to run the diff-based community code test suite on this PR at b46f196. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 2, 2022

Copy link
Copy Markdown
Contributor

Heya Anders Hejlsberg (@ahejlsberg), I've started to run the parallelized Definitely Typed test suite on this PR at b46f196. You can monitor the build here.

@typescript-bot

Copy link
Copy Markdown
Contributor

Anders Hejlsberg (@ahejlsberg)
The results of the perf run you requested are in!

Here they are:

Comparison Report - main..48092

Metricmain48092DeltaBestWorst
Angular - node (v14.15.1, x64)
Memory used333,096k (± 0.00%)333,111k (± 0.01%)+16k (+ 0.00%)333,070k333,146k
Parse Time2.03s (± 0.54%)2.01s (± 0.39%)-0.02s (- 0.94%)1.99s2.03s
Bind Time0.89s (± 1.06%)0.88s (± 0.53%)-0.01s (- 1.12%)0.87s0.89s
Check Time5.53s (± 0.54%)5.51s (± 0.53%)-0.03s (- 0.49%)5.45s5.58s
Emit Time6.33s (± 0.50%)6.31s (± 0.75%)-0.02s (- 0.30%)6.22s6.42s
Total Time14.78s (± 0.30%)14.70s (± 0.41%)-0.08s (- 0.55%)14.60s14.87s
Compiler-Unions - node (v14.15.1, x64)
Memory used192,556k (± 0.50%)194,018k (± 0.61%)+1,462k (+ 0.76%)192,379k195,661k
Parse Time0.85s (± 0.70%)0.85s (± 0.58%)0.00s ( 0.00%)0.85s0.87s
Bind Time0.57s (± 0.87%)0.57s (± 1.34%)0.00s ( 0.00%)0.56s0.59s
Check Time7.41s (± 0.56%)7.39s (± 0.41%)-0.02s (- 0.30%)7.30s7.45s
Emit Time2.47s (± 0.47%)2.47s (± 1.04%)-0.00s (- 0.04%)2.41s2.55s
Total Time11.30s (± 0.48%)11.28s (± 0.22%)-0.02s (- 0.21%)11.25s11.35s
Monaco - node (v14.15.1, x64)
Memory used325,157k (± 0.00%)325,141k (± 0.00%)-16k (- 0.00%)325,122k325,194k
Parse Time1.57s (± 0.79%)1.56s (± 0.53%)-0.01s (- 0.57%)1.54s1.58s
Bind Time0.78s (± 1.23%)0.77s (± 0.68%)-0.01s (- 0.77%)0.76s0.78s
Check Time5.42s (± 0.64%)5.38s (± 0.47%)-0.04s (- 0.72%)5.33s5.43s
Emit Time3.33s (± 0.98%)3.30s (± 0.66%)-0.03s (- 0.81%)3.27s3.35s
Total Time11.10s (± 0.56%)11.02s (± 0.44%)-0.08s (- 0.72%)10.92s11.11s
TFS - node (v14.15.1, x64)
Memory used288,688k (± 0.01%)288,693k (± 0.01%)+5k (+ 0.00%)288,654k288,726k
Parse Time1.34s (± 1.47%)1.32s (± 1.10%)-0.02s (- 1.27%)1.30s1.37s
Bind Time0.73s (± 0.93%)0.73s (± 0.85%)-0.01s (- 0.68%)0.72s0.74s
Check Time5.09s (± 0.72%)5.07s (± 0.64%)-0.02s (- 0.35%)5.00s5.16s
Emit Time3.54s (± 1.78%)3.46s (± 2.05%)-0.08s (- 2.15%)3.35s3.61s
Total Time10.69s (± 0.79%)10.58s (± 0.97%)-0.12s (- 1.08%)10.38s10.86s
material-ui - node (v14.15.1, x64)
Memory used446,283k (± 0.07%)446,461k (± 0.06%)+178k (+ 0.04%)445,449k446,615k
Parse Time1.86s (± 0.40%)1.85s (± 0.42%)-0.01s (- 0.64%)1.83s1.86s
Bind Time0.70s (± 0.83%)0.69s (± 0.71%)-0.01s (- 1.28%)0.68s0.70s
Check Time12.95s (± 0.88%)12.85s (± 0.53%)-0.10s (- 0.74%)12.70s13.01s
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)0.00s ( NaN%)0.00s0.00s
Total Time15.51s (± 0.77%)15.40s (± 0.45%)-0.12s (- 0.75%)15.26s15.55s
xstate - node (v14.15.1, x64)
Memory used535,366k (± 0.00%)535,721k (± 0.00%)+356k (+ 0.07%)535,654k535,776k
Parse Time2.59s (± 0.73%)2.58s (± 0.33%)-0.01s (- 0.42%)2.57s2.61s
Bind Time1.16s (± 0.96%)1.16s (± 0.76%)-0.01s (- 0.69%)1.15s1.18s
Check Time1.50s (± 0.68%)1.49s (± 0.27%)-0.01s (- 0.53%)1.48s1.50s
Emit Time0.07s (± 4.66%)0.07s (± 3.14%)-0.00s (- 2.74%)0.07s0.08s
Total Time5.33s (± 0.35%)5.31s (± 0.20%)-0.03s (- 0.49%)5.28s5.33s
System
Machine Namets-ci-ubuntu
Platformlinux 4.4.0-210-generic
Architecturex64
Available Memory16 GB
Available Memory5 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v14.15.1, x64)
Scenarios
  • Angular - node (v14.15.1, x64)
  • Compiler-Unions - node (v14.15.1, x64)
  • Monaco - node (v14.15.1, x64)
  • TFS - node (v14.15.1, x64)
  • material-ui - node (v14.15.1, x64)
  • xstate - node (v14.15.1, x64)
BenchmarkNameIterations
Current4809210
Baselinemain10

Developer Information:

Download Benchmark

@typescript-bot

Copy link
Copy Markdown
Contributor

Anders Hejlsberg (@ahejlsberg)
Great news! no new errors were found between main..refs/pull/48092/merge

@ahejlsberg

Copy link
Copy Markdown
MemberAuthor

TypeScript Bot (@typescript-bot) run dt

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 15, 2022

Copy link
Copy Markdown
Contributor

Heya Anders Hejlsberg (@ahejlsberg), I've started to run the parallelized Definitely Typed test suite on this PR at b46f196. You can monitor the build here.

@ahejlsberg

Copy link
Copy Markdown
MemberAuthor

Hmm, an this appears to cause an OOM in babel__traverse on Definitely Typed. Plus a number of other somewhat inscrutable errors that probably are correct, but probably also of little value. Not sure we want to take this fix.

@ahejlsberg

Copy link
Copy Markdown
MemberAuthor

Ryan Cavanaugh (@RyanCavanaugh) Curious if you have an opinion here.

@RyanCavanaugh

Copy link
Copy Markdown
Member

The linked bug is a regression and also very surprising. It'd be nice if we could get this worked out

@andrewbranch

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) pack this

@typescript-bot

TypeScript Bot (typescript-bot) commented May 3, 2022

Copy link
Copy Markdown
Contributor

Heya Andrew Branch (@andrewbranch), I've started to run the tarball bundle task on this PR at b46f196. You can monitor the build here.

@andrewbranch

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) pack this

@typescript-bot

TypeScript Bot (typescript-bot) commented Sep 11, 2023

Copy link
Copy Markdown
Contributor

Heya Andrew Branch (@andrewbranch), I've started to run the tarball bundle task on this PR at 5d1e364. You can monitor the build here.

@typescript-bot

TypeScript Bot (typescript-bot) commented Sep 11, 2023

Copy link
Copy Markdown
Contributor

Hey Andrew Branch (@andrewbranch), 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/157626/artifacts?artifactName=tgz&fileId=8AE456DFBF777DAB343BE58ED5DA2B1D703C94E6262068ACFBBC5DD091EB14FC02&fileName=/typescript-5.0.0-insiders.20230911.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.0.0-pr-48092-16".;

@typescript-bot

Copy link
Copy Markdown
Contributor

With 6.0 out as the final release vehicle for this codebase, we're closing all PRs that don't fit the merge criteria for post-6.0 patches. If you think this was a mistake and this PR fits the post-6.0 patch criteria, please post to the 6.0 iteration issue with details (specifically, which PR and which patch criteria it satisfies).

Next steps for PRs:

  • For crash bugfixes or language service improvements, PRs are currently accepted at the typescript-go repo
  • Changes to type system behavior should wait until after 7.0, at which point mainline TypeScript development will resume in this repository with the Go codebase
  • Library file updates (lib.d.ts etc) continue to live in this repo or the DOM Generator repo as appropriate

@github-project-automationgithub-project-automationBot moved this from Waiting on reviewers to Done in PR BacklogMar 24, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Conditional type evaluation of type aliases produces different result than their equivalent substitution

5 participants

@ahejlsberg@typescript-bot@RyanCavanaugh@andrewbranch@sandersn