Skip to content

Actually set impliedNodeFormat in more cases #59479

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

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

andrewbranch
Copy link
Member

@andrewbranch andrewbranch commented Jul 30, 2024

A bad merge conflict resolution in #58825 caused it not to take effect. This finishes the job.

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

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 30, 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 @andrewbranch, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

@andrewbranch Here are the results of running the user tests with tsc comparing main and refs/pull/59479/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

@andrewbranch
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,153 62,153 ~ ~ ~ p=1.000 n=6
Types 50,242 50,242 ~ ~ ~ p=1.000 n=6
Memory used 194,170k (± 1.03%) 194,182k (± 0.98%) ~ 192,335k 195,942k p=0.936 n=6
Parse Time 1.30s (± 1.02%) 1.30s (± 0.69%) ~ 1.29s 1.31s p=0.801 n=6
Bind Time 0.71s 0.71s ~ ~ ~ p=1.000 n=6
Check Time 9.55s (± 0.36%) 9.54s (± 0.59%) ~ 9.47s 9.62s p=1.000 n=6
Emit Time 2.73s (± 0.76%) 2.74s (± 0.72%) ~ 2.71s 2.76s p=0.560 n=6
Total Time 14.28s (± 0.15%) 14.29s (± 0.30%) ~ 14.23s 14.35s p=0.513 n=6
angular-1 - node (v18.15.0, x64)
Errors 7 7 ~ ~ ~ p=1.000 n=6
Symbols 945,532 945,537 +5 (+ 0.00%) ~ ~ p=0.001 n=6
Types 409,507 409,512 +5 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 1,221,102k (± 0.01%) 1,222,222k (± 0.00%) +1,120k (+ 0.09%) 1,222,189k 1,222,241k p=0.005 n=6
Parse Time 6.63s (± 0.51%) 6.64s (± 0.53%) ~ 6.60s 6.70s p=0.571 n=6
Bind Time 1.85s (± 0.45%) 1.86s (± 0.22%) ~ 1.86s 1.87s p=0.115 n=6
Check Time 31.15s (± 0.32%) 31.01s (± 0.19%) -0.13s (- 0.43%) 30.93s 31.09s p=0.024 n=6
Emit Time 14.97s (± 0.38%) 14.99s (± 0.58%) ~ 14.91s 15.15s p=0.873 n=6
Total Time 54.59s (± 0.18%) 54.51s (± 0.21%) ~ 54.36s 54.66s p=0.226 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,439,121 2,439,121 ~ ~ ~ p=1.000 n=6
Types 1,004,407 1,004,407 ~ ~ ~ p=1.000 n=6
Memory used 2,410,559k (± 0.00%) 2,412,463k (± 0.00%) +1,905k (+ 0.08%) 2,412,396k 2,412,499k p=0.005 n=6
Parse Time 8.39s (± 0.29%) 8.47s (± 0.14%) +0.08s (+ 0.93%) 8.45s 8.48s p=0.004 n=6
Bind Time 2.07s (± 0.64%) 2.08s (± 0.50%) ~ 2.06s 2.09s p=0.677 n=6
Check Time 74.98s (± 0.84%) 74.54s (± 0.38%) ~ 74.13s 74.96s p=0.297 n=6
Emit Time 0.28s (± 2.95%) 0.28s (± 1.45%) ~ 0.28s 0.29s p=0.218 n=6
Total Time 85.73s (± 0.74%) 85.36s (± 0.34%) ~ 84.93s 85.78s p=0.688 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,227,880 1,227,882 +2 (+ 0.00%) ~ ~ p=0.001 n=6
Types 265,181 265,181 ~ ~ ~ p=1.000 n=6
Memory used 2,405,750k (± 6.00%) 2,406,155k (± 6.00%) ~ 2,346,302k 2,701,007k p=0.378 n=6
Parse Time 4.97s (± 1.03%) 4.92s (± 0.88%) ~ 4.88s 5.00s p=0.093 n=6
Bind Time 1.90s (± 0.72%) 1.89s (± 0.86%) ~ 1.88s 1.92s p=0.677 n=6
Check Time 34.50s (± 0.52%) 34.55s (± 0.28%) ~ 34.47s 34.68s p=0.748 n=6
Emit Time 3.29s (± 0.89%) 3.30s (± 0.74%) ~ 3.27s 3.33s p=0.746 n=6
Total Time 44.66s (± 0.42%) 44.67s (± 0.24%) ~ 44.54s 44.80s p=0.936 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,227,880 1,227,882 +2 (+ 0.00%) ~ ~ p=0.001 n=6
Types 265,181 265,181 ~ ~ ~ p=1.000 n=6
Memory used 2,420,476k (± 0.02%) 2,420,979k (± 0.02%) ~ 2,420,105k 2,421,678k p=0.128 n=6
Parse Time 6.24s (± 0.50%) 6.18s (± 0.53%) -0.06s (- 0.96%) 6.14s 6.23s p=0.013 n=6
Bind Time 2.02s (± 0.73%) 2.02s (± 0.68%) ~ 2.00s 2.04s p=0.808 n=6
Check Time 41.38s (± 0.70%) 41.22s (± 0.51%) ~ 41.05s 41.51s p=0.128 n=6
Emit Time 4.10s (± 2.09%) 4.02s (± 1.47%) ~ 3.94s 4.11s p=0.149 n=6
Total Time 53.78s (± 0.43%) 53.48s (± 0.38%) ~ 53.31s 53.73s p=0.093 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 255,992 255,994 +2 (+ 0.00%) ~ ~ p=0.001 n=6
Types 104,965 104,965 ~ ~ ~ p=1.000 n=6
Memory used 427,993k (± 0.04%) 428,041k (± 0.05%) ~ 427,823k 428,401k p=0.936 n=6
Parse Time 3.35s (± 0.88%) 3.36s (± 0.80%) ~ 3.31s 3.39s p=0.373 n=6
Bind Time 1.32s (± 0.83%) 1.32s (± 1.33%) ~ 1.29s 1.33s p=1.000 n=6
Check Time 17.93s (± 0.21%) 17.94s (± 0.39%) ~ 17.87s 18.04s p=1.000 n=6
Emit Time 1.65s (± 1.04%) 1.65s (± 1.07%) ~ 1.62s 1.67s p=0.452 n=6
Total Time 24.25s (± 0.21%) 24.26s (± 0.36%) ~ 24.13s 24.38s p=0.810 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 35 35 ~ ~ ~ p=1.000 n=6
Symbols 224,931 224,931 ~ ~ ~ p=1.000 n=6
Types 94,146 94,146 ~ ~ ~ p=1.000 n=6
Memory used 370,104k (± 0.03%) 370,119k (± 0.04%) ~ 369,986k 370,355k p=1.000 n=6
Parse Time 2.76s (± 0.55%) 2.75s (± 0.59%) ~ 2.73s 2.77s p=0.805 n=6
Bind Time 1.59s (± 1.24%) 1.58s (± 0.57%) ~ 1.57s 1.59s p=0.803 n=6
Check Time 15.62s (± 0.23%) 15.65s (± 0.44%) ~ 15.57s 15.76s p=0.572 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 19.96s (± 0.25%) 19.99s (± 0.37%) ~ 19.90s 20.10s p=0.574 n=6
vscode - node (v18.15.0, x64)
Errors 11 11 ~ ~ ~ p=1.000 n=6
Symbols 2,989,731 2,989,731 ~ ~ ~ p=1.000 n=6
Types 1,028,641 1,028,641 ~ ~ ~ p=1.000 n=6
Memory used 3,114,254k (± 0.00%) 3,114,493k (± 0.00%) +240k (+ 0.01%) 3,114,403k 3,114,591k p=0.005 n=6
Parse Time 13.82s (± 0.20%) 13.86s (± 0.34%) ~ 13.79s 13.92s p=0.106 n=6
Bind Time 4.38s (± 2.43%) 4.34s (± 2.43%) ~ 4.27s 4.55s p=0.748 n=6
Check Time 79.49s (± 0.20%) 79.28s (± 0.33%) ~ 78.89s 79.60s p=0.171 n=6
Emit Time 20.49s (± 0.45%) 20.55s (± 0.67%) ~ 20.37s 20.77s p=0.575 n=6
Total Time 118.17s (± 0.11%) 118.03s (± 0.39%) ~ 117.41s 118.59s p=0.936 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 267,994 267,994 ~ ~ ~ p=1.000 n=6
Types 109,192 109,192 ~ ~ ~ p=1.000 n=6
Memory used 412,903k (± 0.02%) 412,999k (± 0.01%) +97k (+ 0.02%) 412,947k 413,070k p=0.031 n=6
Parse Time 3.81s (± 0.86%) 3.83s (± 0.20%) ~ 3.82s 3.84s p=0.683 n=6
Bind Time 1.72s (± 0.24%) 1.72s (± 0.57%) ~ 1.71s 1.73s p=0.487 n=6
Check Time 16.88s (± 0.27%) 16.93s (± 0.43%) ~ 16.84s 17.03s p=0.297 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 22.42s (± 0.22%) 22.48s (± 0.34%) ~ 22.38s 22.59s p=0.229 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 535,893 535,893 ~ ~ ~ p=1.000 n=6
Types 175,647 175,647 ~ ~ ~ p=1.000 n=6
Memory used 479,804k (± 0.01%) 479,833k (± 0.01%) ~ 479,798k 479,893k p=0.471 n=6
Parse Time 3.42s (± 0.47%) 3.41s (± 0.93%) ~ 3.39s 3.46s p=0.285 n=6
Bind Time 1.24s (± 0.61%) 1.24s (± 0.66%) ~ 1.23s 1.25s p=0.729 n=6
Check Time 17.88s (± 0.27%) 17.92s (± 0.24%) ~ 17.83s 17.95s p=0.126 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 22.55s (± 0.26%) 22.57s (± 0.20%) ~ 22.51s 22.65s p=0.936 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

@andrewbranch Here are the results of running the top 400 repos with tsc comparing main and refs/pull/59479/merge:

Something interesting changed - please have a look.

Details

microsoft/playwright

4 of 16 projects failed to build with the old tsc and were ignored

packages/html-reporter/tsconfig.json

@andrewbranch andrewbranch marked this pull request as ready for review July 31, 2024 18:34
@jakebailey
Copy link
Member

It's a shame this missed the beta... but I guess we should fix this oops now since we said we were going to do it?

const moduleResolution = getEmitModuleResolutionKind(options);
const shouldLookupFromPackageJson = ModuleResolutionKind.Node16 <= moduleResolution && moduleResolution <= ModuleResolutionKind.NodeNext
|| pathContainsNodeModules(fileName);
return fileExtensionIsOneOf(fileName, [Extension.Dmts, Extension.Mts, Extension.Mjs]) ? ModuleKind.ESNext :
Copy link
Member

Choose a reason for hiding this comment

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

Not for this PR but we copy and paste the arrays passed into fileExtensionIsOneOf all over the place; makes me wonder if we'd get a speed boost by lifting these arrays into common variables.

@andrewbranch andrewbranch merged commit 5e9b070 into microsoft:main Jul 31, 2024
32 checks passed
@andrewbranch andrewbranch deleted the bug/fix-58825 branch July 31, 2024 20:40
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.

3 participants