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

Exclude parameters of non-inferrable signatures from inference #53756

Merged
merged 2 commits into from
Apr 14, 2023

Conversation

ahejlsberg
Copy link
Member

Fixes #53748.

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Apr 12, 2023
@ahejlsberg
Copy link
Member Author

@typescript-bot test this
@typescript-bot user test this inline
@typescript-bot run dt
@typescript-bot perf test faster
@typescript-bot test top100

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 12, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 12, 2023

Heya @ahejlsberg, I've started to run the extended test suite on this PR at 210023c. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 12, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 12, 2023

Heya @ahejlsberg, I've started to run the abridged perf test suite on this PR at 210023c. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 12, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

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

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Package install failed"

Otherwise...

Everything looks good!

@typescript-bot
Copy link
Collaborator

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

Here they are:

Comparison Report - main..53756

Metric main 53756 Delta Best Worst p-value
Angular - node (v16.17.1, x64)
Memory used 364,717k (± 0.01%) 364,716k (± 0.01%) ~ 364,686k 364,739k p=0.936 n=6
Parse Time 3.55s (± 1.00%) 3.54s (± 0.99%) ~ 3.50s 3.60s p=0.466 n=6
Bind Time 1.18s (± 1.13%) 1.18s (± 0.83%) ~ 1.17s 1.19s p=1.000 n=6
Check Time 9.53s (± 0.67%) 9.53s (± 0.25%) ~ 9.50s 9.56s p=0.630 n=6
Emit Time 7.99s (± 0.64%) 7.96s (± 0.39%) ~ 7.91s 7.99s p=0.373 n=6
Total Time 22.25s (± 0.51%) 22.20s (± 0.33%) ~ 22.13s 22.33s p=0.470 n=6
Compiler-Unions - node (v16.17.1, x64)
Memory used 192,527k (± 0.03%) 192,527k (± 0.02%) ~ 192,474k 192,590k p=0.689 n=6
Parse Time 1.59s (± 0.95%) 1.58s (± 1.33%) ~ 1.55s 1.60s p=0.324 n=6
Bind Time 0.83s (± 0.99%) 0.82s (± 1.09%) ~ 0.81s 0.83s p=0.270 n=6
Check Time 10.36s (± 0.72%) 10.33s (± 0.61%) ~ 10.25s 10.42s p=0.335 n=6
Emit Time 3.02s (± 1.18%) 3.01s (± 1.08%) ~ 2.97s 3.06s p=0.935 n=6
Total Time 15.80s (± 0.69%) 15.74s (± 0.58%) ~ 15.63s 15.88s p=0.469 n=6
Monaco - node (v16.17.1, x64)
Memory used 345,788k (± 0.00%) 345,769k (± 0.00%) -19k (- 0.01%) 345,760k 345,790k p=0.030 n=6
Parse Time 2.72s (± 0.60%) 2.72s (± 0.92%) ~ 2.70s 2.77s p=0.745 n=6
Bind Time 1.08s (± 0.48%) 1.09s (± 0.37%) ~ 1.08s 1.09s p=0.112 n=6
Check Time 7.82s (± 0.54%) 7.82s (± 0.53%) ~ 7.76s 7.89s p=0.686 n=6
Emit Time 4.50s (± 0.76%) 4.45s (± 0.77%) -0.05s (- 1.07%) 4.41s 4.51s p=0.043 n=6
Total Time 16.13s (± 0.44%) 16.08s (± 0.55%) ~ 16.02s 16.26s p=0.260 n=6
TFS - node (v16.17.1, x64)
Memory used 300,053k (± 0.01%) 300,049k (± 0.00%) ~ 300,033k 300,069k p=0.471 n=6
Parse Time 2.16s (± 0.35%) 2.17s (± 0.68%) ~ 2.15s 2.19s p=0.241 n=6
Bind Time 1.24s (± 0.88%) 1.24s (± 0.68%) ~ 1.23s 1.25s p=0.315 n=6
Check Time 7.22s (± 0.62%) 7.25s (± 0.43%) ~ 7.21s 7.29s p=0.571 n=6
Emit Time 4.33s (± 0.66%) 4.33s (± 1.43%) ~ 4.26s 4.41s p=0.936 n=6
Total Time 14.96s (± 0.37%) 14.98s (± 0.59%) ~ 14.89s 15.11s p=0.748 n=6
material-ui - node (v16.17.1, x64)
Memory used 479,490k (± 0.01%) 479,542k (± 0.01%) ~ 479,509k 479,636k p=0.521 n=6
Parse Time 3.24s (± 0.23%) 3.24s (± 0.39%) ~ 3.22s 3.25s p=0.676 n=6
Bind Time 0.96s (± 0.57%) 0.96s (± 0.54%) ~ 0.95s 0.96s p=0.640 n=6
Check Time 18.03s (± 0.86%) 18.02s (± 0.78%) ~ 17.86s 18.28s p=0.747 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 22.22s (± 0.73%) 22.22s (± 0.68%) ~ 22.04s 22.49s p=0.746 n=6
xstate - node (v16.17.1, x64)
Memory used 559,769k (± 0.02%) 559,727k (± 0.02%) ~ 559,585k 559,970k p=0.298 n=6
Parse Time 3.98s (± 0.30%) 3.99s (± 0.52%) ~ 3.97s 4.03s p=0.465 n=6
Bind Time 1.75s (± 0.56%) 1.75s (± 0.60%) ~ 1.73s 1.76s p=0.547 n=6
Check Time 3.06s (± 0.40%) 3.06s (± 0.34%) ~ 3.05s 3.08s p=0.103 n=6
Emit Time 0.09s (± 5.53%) 0.10s (± 5.34%) ~ 0.09s 0.10s p=0.311 n=6
Total Time 8.88s (± 0.09%) 8.90s (± 0.23%) ~ 8.87s 8.92s p=0.220 n=6
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
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 53756 6
Baseline main 6

Developer Information:

Download Benchmark

@typescript-bot
Copy link
Collaborator

Hey @ahejlsberg, it looks like the DT test run failed. Please check the log for more details.
You can check the log here.

@typescript-bot
Copy link
Collaborator

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

Everything looks good!

@jakebailey
Copy link
Member

@typescript-bot run dt

npm timeout :(

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 12, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, it looks like the DT test run failed. Please check the log for more details.
You can check the log here.

@alii
Copy link

alii commented Apr 13, 2023

Wow thank you! This was resolved so quickly 😄 I seem to remember there being a way to test a PR in the playground? How can I do that?

@typescript-bot playground please 🤓

@jakebailey
Copy link
Member

@typescript-bot pack this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 13, 2023

Heya @jakebailey, I've started to run the tarball bundle task on this PR at 210023c. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 13, 2023

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/152324/artifacts?artifactName=tgz&fileId=DD92FCB4F54911D57E16FB994EC6C39E58BB9C33BF4A01F647ECFC8CA2D6905202&fileName=/typescript-5.1.0-insiders.20230413.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/[email protected]".;

@ahejlsberg
Copy link
Member Author

@typescript-bot run dt

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 14, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

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

@ahejlsberg ahejlsberg merged commit e49db97 into main Apr 14, 2023
@ahejlsberg ahejlsberg deleted the fix53748 branch April 14, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot infer generics through n>=2 functions of an argument
5 participants