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

Fixed lack of errors on missing JSX.Element #59584

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Andarist
Copy link
Contributor

I found this when fixing self-check failure in #59559

@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Aug 10, 2024
@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Aug 13, 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.

There were interesting changes:

Branch only errors:

Package: react-native-razorpay
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/react-native-razorpay/react-native-razorpay-tests.tsx
  40:9   error  TypeScript@local compile error: 
JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist  @definitelytyped/expect
  41:13  error  TypeScript@local compile error: 
JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240813/node_modules/@definitelytyped/dtslint/dist/index.js:194:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@definitelytyped+dtslint@0.2.22_typescript@5.6.0-dev.20240813/node_modules/@definitelytyped/dtslint/dist/index.js:186:20)

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/59584/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,153 62,153 ~ ~ ~ p=1.000 n=6
Types 50,242 50,242 ~ ~ ~ p=1.000 n=6
Memory used 192,963k (± 0.73%) 193,578k (± 0.92%) ~ 192,302k 195,951k p=0.378 n=6
Parse Time 1.57s (± 0.63%) 1.56s (± 0.96%) ~ 1.54s 1.58s p=0.563 n=6
Bind Time 0.85s (± 0.98%) 0.86s (± 0.73%) ~ 0.85s 0.87s p=0.340 n=6
Check Time 11.32s (± 0.36%) 11.32s (± 0.88%) ~ 11.15s 11.43s p=0.810 n=6
Emit Time 3.24s (± 0.71%) 3.23s (± 1.08%) ~ 3.19s 3.29s p=0.517 n=6
Total Time 16.98s (± 0.33%) 16.97s (± 0.67%) ~ 16.78s 17.11s p=0.873 n=6
angular-1 - node (v18.15.0, x64)
Errors 7 7 ~ ~ ~ p=1.000 n=6
Symbols 945,757 945,757 ~ ~ ~ p=1.000 n=6
Types 410,045 410,045 ~ ~ ~ p=1.000 n=6
Memory used 1,222,494k (± 0.00%) 1,222,521k (± 0.00%) ~ 1,222,487k 1,222,547k p=0.378 n=6
Parse Time 7.95s (± 0.69%) 7.94s (± 0.79%) ~ 7.88s 8.05s p=0.873 n=6
Bind Time 2.23s (± 0.37%) 2.23s (± 0.25%) ~ 2.22s 2.23s p=0.441 n=6
Check Time 36.37s (± 0.29%) 36.30s (± 0.46%) ~ 36.06s 36.49s p=0.689 n=6
Emit Time 17.77s (± 0.52%) 17.66s (± 0.60%) ~ 17.55s 17.79s p=0.078 n=6
Total Time 64.31s (± 0.17%) 64.13s (± 0.40%) ~ 63.81s 64.40s p=0.296 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,491,204 2,491,204 ~ ~ ~ p=1.000 n=6
Types 1,013,428 1,013,428 ~ ~ ~ p=1.000 n=6
Memory used 2,498,602k (± 0.00%) 2,498,546k (± 0.00%) ~ 2,498,494k 2,498,623k p=0.229 n=6
Parse Time 10.97s (± 0.27%) 10.97s (± 0.32%) ~ 10.93s 11.03s p=1.000 n=6
Bind Time 2.62s (± 0.45%) 2.61s (± 0.39%) ~ 2.60s 2.63s p=0.456 n=6
Check Time 89.59s (± 0.51%) 89.23s (± 0.35%) ~ 88.71s 89.63s p=0.261 n=6
Emit Time 0.33s (± 2.29%) 0.33s (± 2.96%) ~ 0.32s 0.34s p=0.554 n=6
Total Time 103.50s (± 0.44%) 103.15s (± 0.30%) ~ 102.62s 103.57s p=0.173 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,230,395 1,230,395 ~ ~ ~ p=1.000 n=6
Types 264,083 264,083 ~ ~ ~ p=1.000 n=6
Memory used 2,410,623k (± 6.02%) 2,470,218k (± 7.43%) ~ 2,351,124k 2,707,968k p=0.378 n=6
Parse Time 6.04s (± 0.32%) 6.03s (± 0.71%) ~ 5.97s 6.09s p=0.520 n=6
Bind Time 2.24s (± 0.92%) 2.23s (± 0.73%) ~ 2.22s 2.26s p=0.573 n=6
Check Time 40.65s (± 0.70%) 40.31s (± 0.60%) -0.34s (- 0.83%) 39.91s 40.56s p=0.020 n=6
Emit Time 4.03s (± 1.99%) 3.98s (± 1.10%) ~ 3.95s 4.07s p=0.149 n=6
Total Time 52.96s (± 0.53%) 52.59s (± 0.48%) -0.37s (- 0.70%) 52.22s 52.84s p=0.020 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,230,395 1,230,395 ~ ~ ~ p=1.000 n=6
Types 264,083 264,083 ~ ~ ~ p=1.000 n=6
Memory used 2,426,254k (± 0.02%) 2,426,019k (± 0.04%) ~ 2,425,000k 2,427,506k p=0.575 n=6
Parse Time 7.76s (± 0.82%) 7.75s (± 0.75%) ~ 7.69s 7.85s p=0.872 n=6
Bind Time 2.52s (± 1.33%) 2.51s (± 1.24%) ~ 2.48s 2.55s p=0.629 n=6
Check Time 51.02s (± 0.53%) 50.87s (± 0.56%) ~ 50.52s 51.39s p=0.173 n=6
Emit Time 5.03s (± 3.51%) 5.10s (± 2.69%) ~ 4.98s 5.28s p=0.128 n=6
Total Time 66.36s (± 0.50%) 66.25s (± 0.51%) ~ 65.73s 66.68s p=0.810 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 256,891 256,891 ~ ~ ~ p=1.000 n=6
Types 105,580 105,580 ~ ~ ~ p=1.000 n=6
Memory used 429,190k (± 0.03%) 429,201k (± 0.03%) ~ 429,064k 429,370k p=0.936 n=6
Parse Time 4.17s (± 0.20%) 4.16s (± 0.55%) ~ 4.13s 4.20s p=0.326 n=6
Bind Time 1.60s (± 1.07%) 1.60s (± 0.47%) ~ 1.59s 1.61s p=0.672 n=6
Check Time 22.26s (± 0.49%) 22.26s (± 0.48%) ~ 22.15s 22.44s p=0.872 n=6
Emit Time 2.04s (± 0.80%) 2.03s (± 1.05%) ~ 2.00s 2.05s p=0.515 n=6
Total Time 30.07s (± 0.43%) 30.05s (± 0.43%) ~ 29.89s 30.27s p=0.748 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 35 35 ~ ~ ~ p=1.000 n=6
Symbols 225,018 225,018 ~ ~ ~ p=1.000 n=6
Types 94,245 94,245 ~ ~ ~ p=1.000 n=6
Memory used 370,178k (± 0.03%) 370,216k (± 0.03%) ~ 370,147k 370,478k p=0.575 n=6
Parse Time 3.42s (± 0.68%) 3.46s (± 0.73%) +0.03s (+ 0.97%) 3.43s 3.50s p=0.029 n=6
Bind Time 1.93s (± 0.43%) 1.92s (± 0.72%) ~ 1.90s 1.94s p=0.149 n=6
Check Time 19.38s (± 0.26%) 19.36s (± 0.40%) ~ 19.24s 19.47s p=0.872 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.74s (± 0.22%) 24.75s (± 0.29%) ~ 24.61s 24.81s p=0.627 n=6
vscode - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 3,000,587 3,000,587 ~ ~ ~ p=1.000 n=6
Types 1,033,624 1,033,624 ~ ~ ~ p=1.000 n=6
Memory used 3,125,512k (± 0.00%) 3,125,497k (± 0.00%) ~ 3,125,382k 3,125,635k p=0.936 n=6
Parse Time 13.77s (± 0.46%) 13.79s (± 0.12%) ~ 13.77s 13.81s p=0.090 n=6
Bind Time 4.25s (± 0.12%) 4.24s (± 0.33%) ~ 4.22s 4.26s p=0.352 n=6
Check Time 79.02s (± 0.46%) 78.95s (± 0.32%) ~ 78.66s 79.27s p=0.748 n=6
Emit Time 20.31s (± 0.49%) 20.32s (± 0.77%) ~ 20.16s 20.54s p=1.000 n=6
Total Time 117.35s (± 0.30%) 117.30s (± 0.26%) ~ 116.83s 117.64s p=0.873 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 274,381 274,381 ~ ~ ~ p=1.000 n=6
Types 111,850 111,850 ~ ~ ~ p=1.000 n=6
Memory used 420,779k (± 0.01%) 420,736k (± 0.02%) ~ 420,646k 420,877k p=0.298 n=6
Parse Time 4.90s (± 0.75%) 4.88s (± 0.39%) ~ 4.85s 4.90s p=0.192 n=6
Bind Time 2.13s (± 1.18%) 2.13s (± 0.83%) ~ 2.10s 2.14s p=0.934 n=6
Check Time 21.30s (± 0.28%) 21.21s (± 0.62%) ~ 21.10s 21.39s p=0.297 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 28.32s (± 0.26%) 28.22s (± 0.39%) ~ 28.13s 28.38s p=0.126 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 540,779 540,779 ~ ~ ~ p=1.000 n=6
Types 177,884 177,884 ~ ~ ~ p=1.000 n=6
Memory used 483,309k (± 0.01%) 483,331k (± 0.01%) ~ 483,249k 483,410k p=0.873 n=6
Parse Time 4.25s (± 0.69%) 4.26s (± 0.79%) ~ 4.22s 4.31s p=0.871 n=6
Bind Time 1.54s (± 0.68%) 1.55s (± 0.95%) ~ 1.54s 1.57s p=0.557 n=6
Check Time 22.33s (± 0.10%) 22.39s (± 0.39%) ~ 22.30s 22.51s p=0.374 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 28.12s (± 0.13%) 28.20s (± 0.45%) ~ 28.05s 28.39s p=0.378 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/59584/merge:

Something interesting changed - please have a look.

Details

ionic-team/ionic-framework

19 of 20 projects failed to build with the old tsc and were ignored

core/tsconfig.json

@typescript-bot
Copy link
Collaborator

@jakebailey Here are some more interesting changes from running the top 400 repos suite

Details

ionic-team/ionicons

1 of 3 projects failed to build with the old tsc and were ignored

tsconfig.json

@Andarist
Copy link
Contributor Author

The above "breaks" are correct. I created a PR in Stencil to fix this on their side: ionic-team/stencil#5944

@Andarist
Copy link
Contributor Author

The fix for the above was merged to Stencil's repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Not started
Development

Successfully merging this pull request may close these issues.

3 participants