Skip to content

Actually set impliedNodeFormat in more cases - #59479

Merged
Andrew Branch (andrewbranch) merged 1 commit into
microsoft:mainfrom
andrewbranch:bug/fix-58825
Jul 31, 2024
Merged

Actually set impliedNodeFormat in more cases#59479
Andrew Branch (andrewbranch) merged 1 commit into
microsoft:mainfrom
andrewbranch:bug/fix-58825

Conversation

@andrewbranch

@andrewbranchAndrew Branch (andrewbranch) commented Jul 30, 2024

Copy link
Copy Markdown
Member

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

@andrewbranch

Copy link
Copy Markdown
MemberAuthor

TypeScript Bot (@typescript-bot) test it

@typescript-bot

TypeScript Bot (typescript-bot) commented Jul 30, 2024

Copy link
Copy Markdown
Contributor

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

CommandStatusResults
test top400✅ Started👀 Results
user test this✅ Started✅ Results
run dt✅ Started✅ Results
perf test this faster✅ Started👀 Results

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Andrew Branch (@andrewbranch), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot

Copy link
Copy Markdown
Contributor

Andrew Branch (@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
Copy Markdown
Contributor

Andrew Branch (@andrewbranch)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
MetricbaselineprDeltaBestWorstp-value
Compiler-Unions - node (v18.15.0, x64)
Errors3030~~~p=1.000 n=6
Symbols62,15362,153~~~p=1.000 n=6
Types50,24250,242~~~p=1.000 n=6
Memory used194,170k (± 1.03%)194,182k (± 0.98%)~192,335k195,942kp=0.936 n=6
Parse Time1.30s (± 1.02%)1.30s (± 0.69%)~1.29s1.31sp=0.801 n=6
Bind Time0.71s0.71s~~~p=1.000 n=6
Check Time9.55s (± 0.36%)9.54s (± 0.59%)~9.47s9.62sp=1.000 n=6
Emit Time2.73s (± 0.76%)2.74s (± 0.72%)~2.71s2.76sp=0.560 n=6
Total Time14.28s (± 0.15%)14.29s (± 0.30%)~14.23s14.35sp=0.513 n=6
angular-1 - node (v18.15.0, x64)
Errors77~~~p=1.000 n=6
Symbols945,532945,537+5 (+ 0.00%)~~p=0.001 n=6
Types409,507409,512+5 (+ 0.00%)~~p=0.001 n=6
Memory used1,221,102k (± 0.01%)1,222,222k (± 0.00%)+1,120k (+ 0.09%)1,222,189k1,222,241kp=0.005 n=6
Parse Time6.63s (± 0.51%)6.64s (± 0.53%)~6.60s6.70sp=0.571 n=6
Bind Time1.85s (± 0.45%)1.86s (± 0.22%)~1.86s1.87sp=0.115 n=6
Check Time31.15s (± 0.32%)31.01s (± 0.19%)-0.13s (- 0.43%)30.93s31.09sp=0.024 n=6
Emit Time14.97s (± 0.38%)14.99s (± 0.58%)~14.91s15.15sp=0.873 n=6
Total Time54.59s (± 0.18%)54.51s (± 0.21%)~54.36s54.66sp=0.226 n=6
mui-docs - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols2,439,1212,439,121~~~p=1.000 n=6
Types1,004,4071,004,407~~~p=1.000 n=6
Memory used2,410,559k (± 0.00%)2,412,463k (± 0.00%)+1,905k (+ 0.08%)2,412,396k2,412,499kp=0.005 n=6
Parse Time8.39s (± 0.29%)8.47s (± 0.14%)+0.08s (+ 0.93%)8.45s8.48sp=0.004 n=6
Bind Time2.07s (± 0.64%)2.08s (± 0.50%)~2.06s2.09sp=0.677 n=6
Check Time74.98s (± 0.84%)74.54s (± 0.38%)~74.13s74.96sp=0.297 n=6
Emit Time0.28s (± 2.95%)0.28s (± 1.45%)~0.28s0.29sp=0.218 n=6
Total Time85.73s (± 0.74%)85.36s (± 0.34%)~84.93s85.78sp=0.688 n=6
self-build-src - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,227,8801,227,882+2 (+ 0.00%)~~p=0.001 n=6
Types265,181265,181~~~p=1.000 n=6
Memory used2,405,750k (± 6.00%)2,406,155k (± 6.00%)~2,346,302k2,701,007kp=0.378 n=6
Parse Time4.97s (± 1.03%)4.92s (± 0.88%)~4.88s5.00sp=0.093 n=6
Bind Time1.90s (± 0.72%)1.89s (± 0.86%)~1.88s1.92sp=0.677 n=6
Check Time34.50s (± 0.52%)34.55s (± 0.28%)~34.47s34.68sp=0.748 n=6
Emit Time3.29s (± 0.89%)3.30s (± 0.74%)~3.27s3.33sp=0.746 n=6
Total Time44.66s (± 0.42%)44.67s (± 0.24%)~44.54s44.80sp=0.936 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,227,8801,227,882+2 (+ 0.00%)~~p=0.001 n=6
Types265,181265,181~~~p=1.000 n=6
Memory used2,420,476k (± 0.02%)2,420,979k (± 0.02%)~2,420,105k2,421,678kp=0.128 n=6
Parse Time6.24s (± 0.50%)6.18s (± 0.53%)-0.06s (- 0.96%)6.14s6.23sp=0.013 n=6
Bind Time2.02s (± 0.73%)2.02s (± 0.68%)~2.00s2.04sp=0.808 n=6
Check Time41.38s (± 0.70%)41.22s (± 0.51%)~41.05s41.51sp=0.128 n=6
Emit Time4.10s (± 2.09%)4.02s (± 1.47%)~3.94s4.11sp=0.149 n=6
Total Time53.78s (± 0.43%)53.48s (± 0.38%)~53.31s53.73sp=0.093 n=6
self-compiler - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols255,992255,994+2 (+ 0.00%)~~p=0.001 n=6
Types104,965104,965~~~p=1.000 n=6
Memory used427,993k (± 0.04%)428,041k (± 0.05%)~427,823k428,401kp=0.936 n=6
Parse Time3.35s (± 0.88%)3.36s (± 0.80%)~3.31s3.39sp=0.373 n=6
Bind Time1.32s (± 0.83%)1.32s (± 1.33%)~1.29s1.33sp=1.000 n=6
Check Time17.93s (± 0.21%)17.94s (± 0.39%)~17.87s18.04sp=1.000 n=6
Emit Time1.65s (± 1.04%)1.65s (± 1.07%)~1.62s1.67sp=0.452 n=6
Total Time24.25s (± 0.21%)24.26s (± 0.36%)~24.13s24.38sp=0.810 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors3535~~~p=1.000 n=6
Symbols224,931224,931~~~p=1.000 n=6
Types94,14694,146~~~p=1.000 n=6
Memory used370,104k (± 0.03%)370,119k (± 0.04%)~369,986k370,355kp=1.000 n=6
Parse Time2.76s (± 0.55%)2.75s (± 0.59%)~2.73s2.77sp=0.805 n=6
Bind Time1.59s (± 1.24%)1.58s (± 0.57%)~1.57s1.59sp=0.803 n=6
Check Time15.62s (± 0.23%)15.65s (± 0.44%)~15.57s15.76sp=0.572 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time19.96s (± 0.25%)19.99s (± 0.37%)~19.90s20.10sp=0.574 n=6
vscode - node (v18.15.0, x64)
Errors1111~~~p=1.000 n=6
Symbols2,989,7312,989,731~~~p=1.000 n=6
Types1,028,6411,028,641~~~p=1.000 n=6
Memory used3,114,254k (± 0.00%)3,114,493k (± 0.00%)+240k (+ 0.01%)3,114,403k3,114,591kp=0.005 n=6
Parse Time13.82s (± 0.20%)13.86s (± 0.34%)~13.79s13.92sp=0.106 n=6
Bind Time4.38s (± 2.43%)4.34s (± 2.43%)~4.27s4.55sp=0.748 n=6
Check Time79.49s (± 0.20%)79.28s (± 0.33%)~78.89s79.60sp=0.171 n=6
Emit Time20.49s (± 0.45%)20.55s (± 0.67%)~20.37s20.77sp=0.575 n=6
Total Time118.17s (± 0.11%)118.03s (± 0.39%)~117.41s118.59sp=0.936 n=6
webpack - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols267,994267,994~~~p=1.000 n=6
Types109,192109,192~~~p=1.000 n=6
Memory used412,903k (± 0.02%)412,999k (± 0.01%)+97k (+ 0.02%)412,947k413,070kp=0.031 n=6
Parse Time3.81s (± 0.86%)3.83s (± 0.20%)~3.82s3.84sp=0.683 n=6
Bind Time1.72s (± 0.24%)1.72s (± 0.57%)~1.71s1.73sp=0.487 n=6
Check Time16.88s (± 0.27%)16.93s (± 0.43%)~16.84s17.03sp=0.297 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time22.42s (± 0.22%)22.48s (± 0.34%)~22.38s22.59sp=0.229 n=6
xstate-main - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols535,893535,893~~~p=1.000 n=6
Types175,647175,647~~~p=1.000 n=6
Memory used479,804k (± 0.01%)479,833k (± 0.01%)~479,798k479,893kp=0.471 n=6
Parse Time3.42s (± 0.47%)3.41s (± 0.93%)~3.39s3.46sp=0.285 n=6
Bind Time1.24s (± 0.61%)1.24s (± 0.66%)~1.23s1.25sp=0.729 n=6
Check Time17.88s (± 0.27%)17.92s (± 0.24%)~17.83s17.95sp=0.126 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time22.55s (± 0.26%)22.57s (± 0.20%)~22.51s22.65sp=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)
BenchmarkNameIterations
Currentpr6
Baselinebaseline6

Developer Information:

Download Benchmarks

@typescript-bot

Copy link
Copy Markdown
Contributor

Andrew Branch (@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

@jakebailey

Copy link
Copy Markdown
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
Copy Markdown
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
Andrew Branch (andrewbranch) merged commit 5e9b070 into microsoft:mainJul 31, 2024
@andrewbranch
Andrew Branch (andrewbranch) deleted the bug/fix-58825 branch July 31, 2024 20:40
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@andrewbranch@typescript-bot@jakebailey