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

Don't try to add an implicit undefined for mapped properties outside of strictNullChecks #60393

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented Nov 2, 2024

fixes #60390
fixes #60511

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Nov 2, 2024
@Andarist Andarist requested a review from jakebailey December 5, 2024 10:17
@Andarist Andarist force-pushed the fix/no-strict-null-checks-crash-optional-undefined branch from a35d99b to 170d9fd Compare December 19, 2024 17:50
Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

This looks good to me, but will double check with a test run.

@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Dec 19, 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 @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 with tsc comparing main and refs/pull/60393/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 34 34 ~ ~ ~ p=1.000 n=6
Symbols 62,363 62,363 ~ ~ ~ p=1.000 n=6
Types 50,395 50,395 ~ ~ ~ p=1.000 n=6
Memory used 194,881k (± 1.04%) 193,701k (± 0.77%) ~ 192,990k 196,736k p=0.298 n=6
Parse Time 1.30s (± 0.63%) 1.31s (± 1.40%) ~ 1.29s 1.33s p=0.868 n=6
Bind Time 0.72s 0.72s ~ ~ ~ p=1.000 n=6
Check Time 9.79s (± 0.18%) 9.79s (± 0.20%) ~ 9.77s 9.82s p=0.560 n=6
Emit Time 2.73s (± 0.43%) 2.73s (± 0.50%) ~ 2.72s 2.75s p=0.933 n=6
Total Time 14.54s (± 0.15%) 14.55s (± 0.16%) ~ 14.51s 14.58s p=0.464 n=6
angular-1 - node (v18.15.0, x64)
Errors 37 37 ~ ~ ~ p=1.000 n=6
Symbols 947,936 947,936 ~ ~ ~ p=1.000 n=6
Types 410,955 410,955 ~ ~ ~ p=1.000 n=6
Memory used 1,225,805k (± 0.00%) 1,225,791k (± 0.00%) ~ 1,225,741k 1,225,850k p=0.521 n=6
Parse Time 6.62s (± 0.87%) 6.66s (± 0.62%) ~ 6.59s 6.72s p=0.376 n=6
Bind Time 1.88s (± 0.55%) 1.89s (± 0.44%) ~ 1.87s 1.89s p=0.672 n=6
Check Time 31.97s (± 0.38%) 31.96s (± 0.32%) ~ 31.84s 32.11s p=0.936 n=6
Emit Time 15.17s (± 0.30%) 15.17s (± 0.30%) ~ 15.09s 15.21s p=0.872 n=6
Total Time 55.64s (± 0.28%) 55.67s (± 0.24%) ~ 55.51s 55.85s p=0.630 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,449,172 2,449,172 ~ ~ ~ p=1.000 n=6
Types 896,410 896,410 ~ ~ ~ p=1.000 n=6
Memory used 2,320,771k (± 0.00%) 2,320,752k (± 0.00%) ~ 2,320,707k 2,320,792k p=0.575 n=6
Parse Time 9.42s (± 0.16%) 9.43s (± 0.10%) ~ 9.42s 9.44s p=0.109 n=6
Bind Time 2.24s (± 0.44%) 2.24s (± 0.34%) ~ 2.23s 2.25s p=0.858 n=6
Check Time 73.26s (± 0.18%) 73.52s (± 0.23%) +0.26s (+ 0.35%) 73.24s 73.70s p=0.045 n=6
Emit Time 0.28s (± 4.82%) 0.29s (± 4.83%) ~ 0.27s 0.30s p=0.933 n=6
Total Time 85.20s (± 0.15%) 85.47s (± 0.20%) +0.27s (+ 0.32%) 85.19s 85.67s p=0.031 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,226,880 1,226,880 ~ ~ ~ p=1.000 n=6
Types 266,745 266,745 ~ ~ ~ p=1.000 n=6
Memory used 2,539,575k (±11.99%) 2,539,188k (±11.97%) ~ 2,356,816k 3,084,889k p=0.471 n=6
Parse Time 5.27s (± 1.61%) 5.28s (± 1.90%) ~ 5.17s 5.45s p=0.748 n=6
Bind Time 1.76s (± 1.11%) 1.78s (± 0.69%) ~ 1.75s 1.78s p=0.301 n=6
Check Time 35.28s (± 0.98%) 35.21s (± 0.73%) ~ 34.79s 35.57s p=0.471 n=6
Emit Time 2.99s (± 0.91%) 3.01s (± 3.80%) ~ 2.93s 3.24s p=0.810 n=6
Total Time 45.31s (± 0.78%) 45.28s (± 0.74%) ~ 44.84s 45.80s p=0.810 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,226,880 1,226,880 ~ ~ ~ p=1.000 n=6
Types 266,745 266,745 ~ ~ ~ p=1.000 n=6
Memory used 3,032,661k (± 9.75%) 2,911,954k (±12.84%) ~ 2,428,081k 3,154,636k p=0.689 n=6
Parse Time 6.97s (± 1.25%) 6.93s (± 1.55%) ~ 6.76s 7.02s p=0.810 n=6
Bind Time 2.18s (± 1.68%) 2.15s (± 1.87%) ~ 2.09s 2.20s p=0.423 n=6
Check Time 42.87s (± 0.36%) 42.67s (± 0.57%) ~ 42.30s 42.88s p=0.128 n=6
Emit Time 3.46s (± 1.04%) 3.46s (± 3.09%) ~ 3.33s 3.61s p=1.000 n=6
Total Time 55.47s (± 0.38%) 55.23s (± 0.66%) ~ 54.66s 55.53s p=0.128 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 262,439 262,439 ~ ~ ~ p=1.000 n=6
Types 106,628 106,628 ~ ~ ~ p=1.000 n=6
Memory used 440,204k (± 0.01%) 440,187k (± 0.01%) ~ 440,157k 440,227k p=0.423 n=6
Parse Time 3.52s (± 0.86%) 3.54s (± 0.65%) ~ 3.51s 3.56s p=0.169 n=6
Bind Time 1.31s (± 1.15%) 1.31s (± 0.62%) ~ 1.30s 1.32s p=0.797 n=6
Check Time 18.92s (± 0.36%) 18.89s (± 0.43%) ~ 18.75s 18.99s p=0.689 n=6
Emit Time 1.53s (± 1.13%) 1.53s (± 0.53%) ~ 1.52s 1.54s p=1.000 n=6
Total Time 25.27s (± 0.28%) 25.28s (± 0.33%) ~ 25.13s 25.39s p=0.872 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 70 70 ~ ~ ~ p=1.000 n=6
Symbols 226,062 226,062 ~ ~ ~ p=1.000 n=6
Types 94,488 94,488 ~ ~ ~ p=1.000 n=6
Memory used 371,587k (± 0.01%) 371,623k (± 0.01%) ~ 371,567k 371,685k p=0.294 n=6
Parse Time 2.93s (± 1.00%) 2.91s (± 0.85%) ~ 2.88s 2.95s p=0.227 n=6
Bind Time 1.59s (± 0.65%) 1.58s (± 0.76%) ~ 1.57s 1.60s p=0.210 n=6
Check Time 16.53s (± 0.55%) 16.51s (± 0.58%) ~ 16.38s 16.61s p=0.872 n=6
Emit Time 0.00s 0.00s (±244.70%) ~ 0.00s 0.01s p=0.405 n=6
Total Time 21.05s (± 0.46%) 21.00s (± 0.52%) ~ 20.85s 21.12s p=0.374 n=6
vscode - node (v18.15.0, x64)
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 3,222,962 3,222,962 ~ ~ ~ p=1.000 n=6
Types 1,108,699 1,108,699 ~ ~ ~ p=1.000 n=6
Memory used 3,289,084k (± 0.01%) 3,288,952k (± 0.01%) ~ 3,288,558k 3,289,378k p=0.575 n=6
Parse Time 14.18s (± 0.49%) 14.20s (± 1.09%) ~ 14.03s 14.49s p=0.936 n=6
Bind Time 4.54s (± 0.67%) 4.53s (± 0.59%) ~ 4.48s 4.55s p=0.222 n=6
Check Time 89.77s (± 3.86%) 88.32s (± 3.18%) ~ 86.82s 94.03s p=0.689 n=6
Emit Time 27.77s (± 1.82%) 28.07s (± 3.41%) ~ 27.19s 29.34s p=0.936 n=6
Total Time 136.26s (± 2.77%) 135.13s (± 1.91%) ~ 132.81s 139.94s p=0.873 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 291,562 291,562 ~ ~ ~ p=1.000 n=6
Types 118,971 118,971 ~ ~ ~ p=1.000 n=6
Memory used 445,349k (± 0.02%) 445,364k (± 0.04%) ~ 445,147k 445,498k p=0.630 n=6
Parse Time 4.11s (± 0.65%) 4.08s (± 1.07%) ~ 4.03s 4.13s p=0.517 n=6
Bind Time 1.77s (± 0.80%) 1.77s (± 1.45%) ~ 1.75s 1.82s p=1.000 n=6
Check Time 18.73s (± 0.41%) 18.76s (± 0.47%) ~ 18.64s 18.88s p=0.630 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.60s (± 0.35%) 24.62s (± 0.48%) ~ 24.45s 24.76s p=0.873 n=6
xstate-main - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 552,233 552,233 ~ ~ ~ p=1.000 n=6
Types 184,971 184,971 ~ ~ ~ p=1.000 n=6
Memory used 492,399k (± 0.01%) 492,401k (± 0.01%) ~ 492,300k 492,471k p=0.936 n=6
Parse Time 4.26s (± 0.48%) 4.26s (± 0.46%) ~ 4.23s 4.28s p=0.677 n=6
Bind Time 1.47s (± 0.93%) 1.45s (± 0.91%) ~ 1.43s 1.47s p=0.111 n=6
Check Time 24.11s (± 0.26%) 24.11s (± 0.37%) ~ 23.98s 24.23s p=0.936 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 29.84s (± 0.25%) 29.82s (± 0.26%) ~ 29.72s 29.94s p=0.872 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 with tsc comparing main and refs/pull/60393/merge:

Everything looks good!

@jakebailey jakebailey merged commit 12e205b into microsoft:main Dec 19, 2024
32 checks passed
@jakebailey
Copy link
Member

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

@typescript-bot
Copy link
Collaborator

typescript-bot commented Dec 19, 2024

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

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

@typescript-bot
Copy link
Collaborator

Hey, @jakebailey! I've created #60825 for you.

DanielRosenwasser pushed a commit that referenced this pull request Dec 19, 2024
…e-5.7 (#60825)

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Milestone Bug PRs that fix a bug with a specific milestone
Projects
Status: Done
5 participants