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

fix56509: return type if tryCreateAwaitedType fails #58547

Merged
merged 3 commits into from
May 16, 2024

Conversation

iisaduan
Copy link
Member

Fixes #56509

Bisected to #49748

@iisaduan iisaduan requested a review from rbuckton May 15, 2024 19:55
@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels May 15, 2024
Copy link
Member

@rbuckton rbuckton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer the type be spelled correctly in the test even though it was misspelled in the original issue. Otherwise, this looks good to me.

tests/cases/compiler/awaitedTypeNoLib.ts Outdated Show resolved Hide resolved
@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented May 15, 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

@iisaduan iisaduan changed the title return type if tryCreateAwaitedType fails fix56509: return type if tryCreateAwaitedType fails May 15, 2024
@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 Here are the results of running the user tests comparing main and refs/pull/58547/merge:

Everything looks good!

@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 30 30 ~ ~ ~ p=1.000 n=6
Symbols 62,154 62,154 ~ ~ ~ p=1.000 n=6
Types 50,248 50,248 ~ ~ ~ p=1.000 n=6
Memory used 193,461k (± 0.98%) 194,187k (± 1.04%) ~ 192,186k 196,274k p=0.810 n=6
Parse Time 1.55s (± 1.91%) 1.55s (± 1.70%) ~ 1.51s 1.58s p=1.000 n=6
Bind Time 0.86s (± 0.60%) 0.87s (± 0.97%) ~ 0.86s 0.88s p=0.923 n=6
Check Time 11.33s (± 0.33%) 11.30s (± 0.46%) ~ 11.26s 11.38s p=0.375 n=6
Emit Time 3.16s (± 0.37%) 3.16s (± 0.76%) ~ 3.12s 3.19s p=0.739 n=6
Total Time 16.90s (± 0.37%) 16.88s (± 0.38%) ~ 16.81s 16.99s p=0.520 n=6
angular-1 - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 944,110 944,110 ~ ~ ~ p=1.000 n=6
Types 407,140 407,140 ~ ~ ~ p=1.000 n=6
Memory used 1,222,111k (± 0.00%) 1,222,069k (± 0.00%) ~ 1,221,984k 1,222,156k p=0.230 n=6
Parse Time 8.12s (± 0.67%) 8.11s (± 0.55%) ~ 8.06s 8.17s p=1.000 n=6
Bind Time 2.25s (± 0.54%) 2.24s (± 0.56%) ~ 2.23s 2.26s p=0.101 n=6
Check Time 36.40s (± 0.25%) 36.44s (± 0.36%) ~ 36.29s 36.64s p=0.573 n=6
Emit Time 17.52s (± 0.15%) 17.52s (± 0.35%) ~ 17.43s 17.59s p=0.936 n=6
Total Time 64.28s (± 0.18%) 64.30s (± 0.29%) ~ 64.08s 64.62s p=1.000 n=6
mui-docs - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 1,964,176 1,964,176 ~ ~ ~ p=1.000 n=6
Types 819,283 819,283 ~ ~ ~ p=1.000 n=6
Memory used 1,849,651k (± 0.00%) 1,849,648k (± 0.00%) ~ 1,849,573k 1,849,691k p=0.521 n=6
Parse Time 6.79s (± 0.27%) 6.78s (± 0.26%) ~ 6.76s 6.81s p=0.324 n=6
Bind Time 2.30s (± 1.47%) 2.28s (± 0.36%) ~ 2.27s 2.29s p=0.869 n=6
Check Time 58.76s (± 0.42%) 58.78s (± 0.34%) ~ 58.57s 59.08s p=0.936 n=6
Emit Time 0.14s (± 3.60%) 0.14s ~ ~ ~ p=0.174 n=6
Total Time 68.00s (± 0.31%) 67.99s (± 0.28%) ~ 67.77s 68.27s p=1.000 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,221,221 1,221,220 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 259,523 259,523 ~ ~ ~ p=1.000 n=6
Memory used 2,412,213k (± 3.39%) 2,387,332k (± 3.24%) ~ 2,336,341k 2,487,334k p=0.689 n=6
Parse Time 6.03s (± 1.60%) 5.99s (± 1.40%) ~ 5.89s 6.10s p=0.520 n=6
Bind Time 2.24s (± 1.18%) 2.26s (± 0.91%) ~ 2.23s 2.28s p=0.419 n=6
Check Time 39.86s (± 0.22%) 39.83s (± 0.28%) ~ 39.68s 39.97s p=0.688 n=6
Emit Time 3.24s (± 4.86%) 3.14s (± 2.17%) ~ 3.03s 3.21s p=0.261 n=6
Total Time 51.39s (± 0.43%) 51.23s (± 0.31%) ~ 51.08s 51.48s p=0.173 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,221,221 1,221,220 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 259,523 259,523 ~ ~ ~ p=1.000 n=6
Memory used 2,412,978k (± 0.02%) 2,413,299k (± 0.03%) ~ 2,412,502k 2,413,971k p=0.471 n=6
Parse Time 5.27s (± 0.64%) 5.26s (± 0.63%) ~ 5.22s 5.31s p=0.572 n=6
Bind Time 1.70s (± 0.80%) 1.70s (± 0.30%) ~ 1.69s 1.70s p=0.794 n=6
Check Time 34.25s (± 0.30%) 34.32s (± 0.26%) ~ 34.20s 34.46s p=0.230 n=6
Emit Time 2.68s (± 2.41%) 2.71s (± 2.42%) ~ 2.60s 2.78s p=0.689 n=6
Total Time 43.92s (± 0.12%) 43.98s (± 0.31%) ~ 43.86s 44.22s p=0.689 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 256,767 256,766 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 104,587 104,587 ~ ~ ~ p=1.000 n=6
Memory used 426,068k (± 0.01%) 426,076k (± 0.01%) ~ 426,023k 426,156k p=0.810 n=6
Parse Time 4.14s (± 0.59%) 4.15s (± 0.28%) ~ 4.14s 4.17s p=0.367 n=6
Bind Time 1.61s (± 1.02%) 1.61s (± 0.85%) ~ 1.60s 1.63s p=1.000 n=6
Check Time 22.11s (± 0.22%) 22.16s (± 0.50%) ~ 22.00s 22.30s p=0.468 n=6
Emit Time 1.71s (± 1.69%) 1.72s (± 0.73%) ~ 1.70s 1.73s p=0.285 n=6
Total Time 29.57s (± 0.14%) 29.65s (± 0.41%) ~ 29.49s 29.77s p=0.422 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 35 35 ~ ~ ~ p=1.000 n=6
Symbols 224,575 224,575 ~ ~ ~ p=1.000 n=6
Types 93,785 93,785 ~ ~ ~ p=1.000 n=6
Memory used 369,854k (± 0.03%) 369,825k (± 0.03%) ~ 369,700k 369,972k p=0.689 n=6
Parse Time 3.52s (± 1.32%) 3.51s (± 0.94%) ~ 3.45s 3.54s p=0.568 n=6
Bind Time 1.93s (± 1.33%) 1.94s (± 0.78%) ~ 1.92s 1.96s p=0.397 n=6
Check Time 19.35s (± 0.33%) 19.34s (± 0.26%) ~ 19.31s 19.44s p=1.000 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.80s (± 0.44%) 24.79s (± 0.18%) ~ 24.73s 24.86s p=1.000 n=6
vscode - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,823,941 2,823,941 ~ ~ ~ p=1.000 n=6
Types 957,912 957,912 ~ ~ ~ p=1.000 n=6
Memory used 2,996,235k (± 0.00%) 2,996,296k (± 0.00%) ~ 2,996,207k 2,996,378k p=0.128 n=6
Parse Time 13.82s (± 0.19%) 13.79s (± 0.14%) ~ 13.76s 13.81s p=0.063 n=6
Bind Time 4.14s (± 0.29%) 4.14s (± 0.34%) ~ 4.12s 4.16s p=0.743 n=6
Check Time 73.29s (± 0.31%) 73.37s (± 0.33%) ~ 73.01s 73.62s p=0.748 n=6
Emit Time 23.50s (± 0.70%) 23.49s (± 0.40%) ~ 23.32s 23.60s p=0.936 n=6
Total Time 114.75s (± 0.34%) 114.79s (± 0.28%) ~ 114.37s 115.08s p=0.748 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 265,866 265,866 ~ ~ ~ p=1.000 n=6
Types 108,401 108,401 ~ ~ ~ p=1.000 n=6
Memory used 410,602k (± 0.02%) 410,626k (± 0.02%) ~ 410,533k 410,756k p=1.000 n=6
Parse Time 3.18s (± 0.51%) 3.19s (± 0.55%) ~ 3.17s 3.22s p=0.413 n=6
Bind Time 1.40s (± 1.18%) 1.39s (± 0.45%) ~ 1.38s 1.40s p=0.438 n=6
Check Time 14.42s (± 0.45%) 14.42s (± 0.58%) ~ 14.32s 14.53s p=1.000 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 19.00s (± 0.30%) 19.00s (± 0.46%) ~ 18.88s 19.12s p=0.936 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 524,639 524,639 ~ ~ ~ p=1.000 n=6
Types 178,906 178,906 ~ ~ ~ p=1.000 n=6
Memory used 462,676k (± 0.01%) 462,664k (± 0.01%) ~ 462,616k 462,699k p=0.688 n=6
Parse Time 2.61s (± 0.20%) 2.60s (± 0.38%) ~ 2.59s 2.61s p=0.417 n=6
Bind Time 0.98s (± 0.56%) 0.97s (± 1.25%) ~ 0.96s 0.99s p=0.137 n=6
Check Time 15.34s (± 0.19%) 15.40s (± 0.60%) ~ 15.25s 15.48s p=0.199 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 18.93s (± 0.15%) 18.97s (± 0.43%) ~ 18.84s 19.07s p=0.199 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 comparing main and refs/pull/58547/merge:

Everything looks good!

@iisaduan iisaduan merged commit 4da470d into microsoft:main May 16, 2024
28 checks passed
@iisaduan iisaduan deleted the awaitedTypeNoLib branch July 9, 2024 17:13
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.

Debug Failure with strictFunctionTypes: type provided should not be a non-generic 'promise'-like
5 participants