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

Check callback parameters bivariantly if they result from instantiation #56218

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

ahejlsberg
Copy link
Member

This PR implements the fix described here.

Fixes #51620.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Oct 25, 2023
@ahejlsberg
Copy link
Member Author

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

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 25, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 25, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 25, 2023

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

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 25, 2023

Heya @ahejlsberg, I've started to run the tsc-only perf test suite on this PR at aee645d. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

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

Here they are:

Compiler

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Angular - node (v18.15.0, x64)
Memory used 295,095k (± 0.01%) 295,193k (± 0.01%) +98k (+ 0.03%) 295,156k 295,270k p=0.005 n=6
Parse Time 2.63s (± 0.29%) 2.63s (± 0.31%) ~ 2.62s 2.64s p=0.729 n=6
Bind Time 0.84s (± 1.06%) 0.84s (± 1.23%) ~ 0.83s 0.85s p=0.541 n=6
Check Time 8.05s (± 0.35%) 8.09s (± 0.24%) ~ 8.06s 8.12s p=0.052 n=6
Emit Time 7.08s (± 0.39%) 7.08s (± 0.27%) ~ 7.06s 7.10s p=1.000 n=6
Total Time 18.60s (± 0.17%) 18.64s (± 0.14%) ~ 18.60s 18.67s p=0.054 n=6
Compiler-Unions - node (v18.15.0, x64)
Memory used 191,656k (± 1.24%) 192,202k (± 1.24%) +546k (+ 0.28%) 190,786k 196,579k p=0.045 n=6
Parse Time 1.35s (± 0.56%) 1.34s (± 1.20%) ~ 1.32s 1.36s p=0.279 n=6
Bind Time 0.73s (± 0.00%) 0.73s (± 0.00%) ~ 0.73s 0.73s p=1.000 n=6
Check Time 9.15s (± 0.25%) 9.21s (± 0.39%) +0.06s (+ 0.62%) 9.17s 9.25s p=0.011 n=6
Emit Time 2.63s (± 0.56%) 2.63s (± 0.61%) ~ 2.61s 2.65s p=1.000 n=6
Total Time 13.86s (± 0.23%) 13.90s (± 0.32%) ~ 13.85s 13.95s p=0.147 n=6
Monaco - node (v18.15.0, x64)
Memory used 347,363k (± 0.00%) 347,382k (± 0.00%) +19k (+ 0.01%) 347,361k 347,397k p=0.031 n=6
Parse Time 2.46s (± 0.44%) 2.45s (± 0.58%) ~ 2.43s 2.47s p=0.216 n=6
Bind Time 0.94s (± 0.43%) 0.94s (± 0.43%) ~ 0.94s 0.95s p=1.000 n=6
Check Time 6.91s (± 0.41%) 6.93s (± 0.40%) ~ 6.89s 6.96s p=0.224 n=6
Emit Time 4.04s (± 0.48%) 4.04s (± 0.43%) ~ 4.02s 4.06s p=1.000 n=6
Total Time 14.35s (± 0.23%) 14.36s (± 0.24%) ~ 14.31s 14.39s p=0.746 n=6
TFS - node (v18.15.0, x64)
Memory used 302,589k (± 0.01%) 302,613k (± 0.02%) ~ 302,572k 302,687k p=0.378 n=6
Parse Time 1.99s (± 0.88%) 2.01s (± 0.93%) +0.03s (+ 1.43%) 1.99s 2.04s p=0.036 n=6
Bind Time 1.00s (± 1.17%) 1.00s (± 0.83%) ~ 1.00s 1.02s p=0.547 n=6
Check Time 6.26s (± 0.52%) 6.26s (± 0.52%) ~ 6.22s 6.31s p=0.935 n=6
Emit Time 3.58s (± 0.18%) 3.57s (± 0.35%) ~ 3.55s 3.58s p=0.152 n=6
Total Time 12.83s (± 0.22%) 12.85s (± 0.44%) ~ 12.79s 12.93s p=0.571 n=6
material-ui - node (v18.15.0, x64)
Memory used 470,510k (± 0.01%) 470,739k (± 0.01%) +229k (+ 0.05%) 470,690k 470,765k p=0.005 n=6
Parse Time 2.57s (± 0.45%) 2.57s (± 0.64%) ~ 2.55s 2.60s p=0.681 n=6
Bind Time 0.99s (± 0.76%) 1.00s (± 0.82%) ~ 0.98s 1.00s p=0.206 n=6
Check Time 16.64s (± 0.47%) 16.66s (± 0.36%) ~ 16.59s 16.76s p=1.000 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 20.20s (± 0.39%) 20.23s (± 0.39%) ~ 20.13s 20.36s p=0.748 n=6
xstate - node (v18.15.0, x64)
Memory used 512,653k (± 0.02%) 512,597k (± 0.01%) ~ 512,551k 512,640k p=0.378 n=6
Parse Time 3.27s (± 0.32%) 3.27s (± 0.19%) ~ 3.26s 3.28s p=0.654 n=6
Bind Time 1.55s (± 0.53%) 1.55s (± 0.63%) ~ 1.54s 1.56s p=0.862 n=6
Check Time 2.84s (± 0.65%) 2.86s (± 0.88%) ~ 2.84s 2.90s p=0.090 n=6
Emit Time 0.08s (± 4.99%) 0.08s (± 0.00%) ~ 0.08s 0.08s p=0.405 n=6
Total Time 7.74s (± 0.15%) 7.76s (± 0.36%) ~ 7.73s 7.80s p=0.195 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Angular - node (v18.15.0, x64)
  • Compiler-Unions - node (v18.15.0, x64)
  • Monaco - node (v18.15.0, x64)
  • TFS - node (v18.15.0, x64)
  • material-ui - node (v18.15.0, x64)
  • xstate - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

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

There were infrastructure failures potentially unrelated to your change:

  • 3 instances of "Package install failed"
  • 1 instance of "Unknown failure"

Otherwise...

Everything looks good!

@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.

@typescript-bot
Copy link
Collaborator

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

Something interesting changed - please have a look.

Details

novuhq/novu

143 of 144 projects failed to build with the old tsc and were ignored

packages/notification-center-angular/projects/notification-center-angular/tsconfig.spec.json

@jakebailey
Copy link
Member

@typescript-bot pack this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 25, 2023

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

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 25, 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/158349/artifacts?artifactName=tgz&fileId=FA42913CBEB77CBB404E468255E16C4BCD9977D56309989D0E0BEAE6D7F6A3EF02&fileName=/typescript-5.3.0-insiders.20231025.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 ahejlsberg merged commit 8da01f3 into main Dec 1, 2023
19 checks passed
@ahejlsberg ahejlsberg deleted the fix51620 branch December 1, 2023 18:38
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
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Assignability of covariant types with bivariant methods now fails in certain intersection types
4 participants