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

Fix constraints of nested homomorphic mapped type instantiations #58098

Merged
merged 5 commits into from Apr 8, 2024

Conversation

ahejlsberg
Copy link
Member

Fixes #58060.

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

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 6, 2024

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 @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 user tests comparing main and refs/pull/58098/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

@ahejlsberg
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
Angular - node (v18.15.0, x64)
Memory used 295,766k (± 0.01%) 295,774k (± 0.01%) ~ 295,741k 295,849k p=0.630 n=6
Parse Time 2.65s (± 0.31%) 2.66s (± 0.58%) ~ 2.63s 2.67s p=0.154 n=6
Bind Time 0.82s (± 1.62%) 0.82s (± 1.50%) ~ 0.81s 0.84s p=0.389 n=6
Check Time 8.20s (± 0.37%) 8.21s (± 0.36%) ~ 8.18s 8.25s p=0.567 n=6
Emit Time 7.04s (± 0.17%) 7.04s (± 0.17%) ~ 7.03s 7.06s p=0.677 n=6
Total Time 18.72s (± 0.22%) 18.73s (± 0.13%) ~ 18.69s 18.76s p=0.871 n=6
Compiler-Unions - node (v18.15.0, x64)
Memory used 193,465k (± 1.03%) 192,851k (± 0.96%) ~ 191,610k 195,354k p=0.521 n=6
Parse Time 1.36s (± 1.08%) 1.36s (± 0.80%) ~ 1.35s 1.38s p=0.803 n=6
Bind Time 0.72s (± 0.00%) 0.72s (± 0.00%) ~ 0.72s 0.72s p=1.000 n=6
Check Time 9.39s (± 0.09%) 9.40s (± 0.28%) ~ 9.38s 9.45s p=0.682 n=6
Emit Time 2.63s (± 0.40%) 2.61s (± 0.66%) ~ 2.59s 2.63s p=0.217 n=6
Total Time 14.09s (± 0.15%) 14.09s (± 0.23%) ~ 14.06s 14.15s p=0.685 n=6
Monaco - node (v18.15.0, x64)
Memory used 347,684k (± 0.00%) 347,675k (± 0.01%) ~ 347,650k 347,713k p=0.378 n=6
Parse Time 2.48s (± 0.57%) 2.49s (± 0.47%) ~ 2.47s 2.50s p=0.325 n=6
Bind Time 0.89s (± 0.58%) 0.89s (± 0.46%) ~ 0.89s 0.90s p=0.595 n=6
Check Time 6.94s (± 0.54%) 6.96s (± 0.52%) ~ 6.91s 7.00s p=0.627 n=6
Emit Time 4.06s (± 0.58%) 4.07s (± 0.42%) ~ 4.05s 4.09s p=0.515 n=6
Total Time 14.38s (± 0.38%) 14.40s (± 0.39%) ~ 14.34s 14.48s p=0.294 n=6
TFS - node (v18.15.0, x64)
Memory used 302,560k (± 0.01%) 302,545k (± 0.01%) ~ 302,527k 302,574k p=0.199 n=6
Parse Time 2.96s (± 0.78%) 2.96s (± 0.94%) ~ 2.94s 3.01s p=0.808 n=6
Bind Time 1.44s (± 0.92%) 1.43s (± 0.93%) ~ 1.41s 1.45s p=0.498 n=6
Check Time 9.18s (± 0.47%) 9.15s (± 0.20%) ~ 9.13s 9.18s p=0.148 n=6
Emit Time 5.30s (± 0.82%) 5.30s (± 0.58%) ~ 5.25s 5.33s p=0.746 n=6
Total Time 18.89s (± 0.48%) 18.85s (± 0.21%) ~ 18.81s 18.92s p=0.336 n=6
material-ui - node (v18.15.0, x64)
Memory used 510,517k (± 0.00%) 510,509k (± 0.01%) ~ 510,449k 510,558k p=0.936 n=6
Parse Time 2.66s (± 0.24%) 2.67s (± 0.39%) ~ 2.66s 2.68s p=0.293 n=6
Bind Time 0.99s (± 0.99%) 0.99s (± 0.52%) ~ 0.98s 0.99s p=0.386 n=6
Check Time 17.15s (± 0.24%) 17.22s (± 0.32%) ~ 17.15s 17.28s p=0.076 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 20.81s (± 0.23%) 20.87s (± 0.31%) ~ 20.79s 20.94s p=0.260 n=6
mui-docs - node (v18.15.0, x64)
Memory used 1,743,829k (± 0.00%) 1,743,873k (± 0.00%) +44k (+ 0.00%) 1,743,818k 1,743,911k p=0.045 n=6
Parse Time 9.65s (± 0.75%) 9.65s (± 0.52%) ~ 9.57s 9.70s p=0.873 n=6
Bind Time 3.40s (± 0.71%) 3.40s (± 0.99%) ~ 3.36s 3.44s p=0.746 n=6
Check Time 81.16s (± 0.26%) 81.35s (± 0.38%) ~ 80.93s 81.65s p=0.230 n=6
Emit Time 0.19s (± 2.13%) 0.19s (± 0.00%) ~ 0.19s 0.19s p=0.405 n=6
Total Time 94.42s (± 0.27%) 94.59s (± 0.32%) ~ 94.22s 94.96s p=0.378 n=6
self-build-src - node (v18.15.0, x64)
Memory used 2,299,594k (± 0.04%) 2,299,470k (± 0.02%) ~ 2,298,906k 2,299,854k p=0.810 n=6
Parse Time 7.41s (± 0.95%) 7.43s (± 0.46%) ~ 7.38s 7.48s p=0.520 n=6
Bind Time 2.70s (± 0.83%) 2.73s (± 0.77%) ~ 2.70s 2.75s p=0.109 n=6
Check Time 48.74s (± 0.52%) 48.62s (± 0.42%) ~ 48.29s 48.93s p=0.521 n=6
Emit Time 3.86s (± 2.64%) 3.78s (± 2.59%) ~ 3.65s 3.89s p=0.173 n=6
Total Time 62.74s (± 0.57%) 62.58s (± 0.28%) ~ 62.37s 62.81s p=0.689 n=6
self-build-src-public-api - node (v18.15.0, x64)
Memory used 2,373,596k (± 0.03%) 2,374,419k (± 0.03%) ~ 2,373,237k 2,375,150k p=0.093 n=6
Parse Time 6.20s (± 0.96%) 6.19s (± 1.45%) ~ 6.07s 6.30s p=0.936 n=6
Bind Time 2.03s (± 0.31%) 2.04s (± 0.80%) ~ 2.02s 2.06s p=0.212 n=6
Check Time 39.93s (± 0.59%) 39.79s (± 0.31%) ~ 39.55s 39.88s p=0.810 n=6
Emit Time 3.21s (± 1.78%) 3.12s (± 2.59%) ~ 3.06s 3.28s p=0.128 n=6
Total Time 51.37s (± 0.49%) 51.14s (± 0.41%) ~ 50.90s 51.49s p=0.093 n=6
self-compiler - node (v18.15.0, x64)
Memory used 418,079k (± 0.01%) 418,088k (± 0.01%) ~ 418,069k 418,147k p=0.471 n=6
Parse Time 4.13s (± 0.25%) 4.13s (± 0.37%) ~ 4.12s 4.16s p=0.397 n=6
Bind Time 1.60s (± 1.23%) 1.58s (± 1.46%) ~ 1.55s 1.61s p=0.123 n=6
Check Time 21.97s (± 0.40%) 21.96s (± 0.33%) ~ 21.87s 22.06s p=1.000 n=6
Emit Time 1.70s (± 1.69%) 1.72s (± 1.62%) ~ 1.69s 1.76s p=0.334 n=6
Total Time 29.41s (± 0.33%) 29.39s (± 0.19%) ~ 29.32s 29.46s p=1.000 n=6
vscode - node (v18.15.0, x64)
Memory used 2,905,115k (± 0.00%) 2,905,131k (± 0.00%) ~ 2,905,056k 2,905,191k p=0.471 n=6
Parse Time 15.92s (± 0.48%) 15.94s (± 0.34%) ~ 15.88s 16.00s p=0.809 n=6
Bind Time 4.94s (± 0.37%) 4.91s (± 0.27%) -0.03s (- 0.61%) 4.89s 4.93s p=0.018 n=6
Check Time 86.63s (± 0.41%) 86.45s (± 0.20%) ~ 86.22s 86.69s p=0.471 n=6
Emit Time 23.85s (± 0.65%) 23.73s (± 0.37%) ~ 23.58s 23.83s p=0.336 n=6
Total Time 131.33s (± 0.30%) 131.03s (± 0.12%) ~ 130.86s 131.25s p=0.230 n=6
webpack - node (v18.15.0, x64)
Memory used 408,700k (± 0.01%) 408,685k (± 0.01%) ~ 408,632k 408,722k p=0.575 n=6
Parse Time 4.79s (± 0.76%) 4.81s (± 0.71%) ~ 4.76s 4.86s p=0.295 n=6
Bind Time 2.03s (± 1.05%) 2.04s (± 0.88%) ~ 2.01s 2.06s p=0.415 n=6
Check Time 20.69s (± 0.30%) 20.65s (± 0.22%) ~ 20.59s 20.71s p=0.297 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 27.51s (± 0.19%) 27.51s (± 0.22%) ~ 27.42s 27.60s p=0.936 n=6
xstate - node (v18.15.0, x64)
Memory used 514,406k (± 0.02%) 514,384k (± 0.02%) ~ 514,304k 514,598k p=0.810 n=6
Parse Time 4.89s (± 0.34%) 4.90s (± 0.61%) ~ 4.86s 4.95s p=0.469 n=6
Bind Time 2.30s (± 0.73%) 2.29s (± 0.98%) ~ 2.27s 2.32s p=0.742 n=6
Check Time 4.23s (± 1.06%) 4.24s (± 0.19%) ~ 4.23s 4.25s p=0.572 n=6
Emit Time 0.11s (± 4.55%) 0.12s (± 4.42%) ~ 0.11s 0.12s p=0.311 n=6
Total Time 11.54s (± 0.42%) 11.55s (± 0.30%) ~ 11.51s 11.60s p=0.936 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)
  • 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)
  • vscode - node (v18.15.0, x64)
  • webpack - 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 top 400 repos comparing main and refs/pull/58098/merge:

Everything looks good!

@jakebailey
Copy link
Member

@typescript-bot cherry-pick this to release-5.4

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 8, 2024

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

Command Status Results
cherry-pick this to release-5.4 ✅ Started ✅ Results

@typescript-bot
Copy link
Collaborator

Hey, @jakebailey! I've created #58118 for you. This involved updating baselines; please check the diff.

@ahejlsberg ahejlsberg merged commit 066773b into main Apr 8, 2024
25 checks passed
@ahejlsberg ahejlsberg deleted the fix58060 branch April 8, 2024 23:02
DanielRosenwasser pushed a commit that referenced this pull request Apr 10, 2024
…e-5.4 (#58118)

Co-authored-by: Anders Hejlsberg <andersh@microsoft.com>
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
None yet
Development

Successfully merging this pull request may close these issues.

Mapped type reported as incompatible when passed through another mapped type (5.4 regression)
3 participants