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

Fix: False Positive "Range out of order in character class" in Regular Expressions in Unicode Modes #58982

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

Conversation

graphemecluster
Copy link
Contributor

The first appears to be my fault; the second is a regression of #58339.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jun 23, 2024
@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.

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

The first change seems like a straightforward fix. @rbuckton does the second change make sense?

@sandersn
Copy link
Member

sandersn commented Jul 9, 2024

@graphemecluster can you provide a link to a bug or at least the PR that caused the bug for the first fix?

@sandersn
Copy link
Member

@typescript-bot test all

@sandersn
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

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

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

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

Everything looks good!

@typescript-bot
Copy link
Collaborator

@sandersn
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 193,971k (± 1.01%) 193,975k (± 1.01%) ~ 192,162k 195,895k p=0.810 n=6
Parse Time 1.57s (± 0.99%) 1.57s (± 0.66%) ~ 1.56s 1.58s p=0.793 n=6
Bind Time 0.85s (± 1.37%) 0.85s (± 0.96%) ~ 0.84s 0.86s p=0.738 n=6
Check Time 11.24s (± 0.26%) 11.23s (± 0.45%) ~ 11.13s 11.27s p=1.000 n=6
Emit Time 3.27s (± 0.84%) 3.27s (± 0.76%) ~ 3.24s 3.31s p=0.872 n=6
Total Time 16.93s (± 0.23%) 16.92s (± 0.37%) ~ 16.83s 17.01s p=0.748 n=6
angular-1 - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 944,114 944,114 ~ ~ ~ p=1.000 n=6
Types 407,050 407,050 ~ ~ ~ p=1.000 n=6
Memory used 1,218,390k (± 0.01%) 1,218,389k (± 0.00%) ~ 1,218,337k 1,218,472k p=1.000 n=6
Parse Time 8.01s (± 0.33%) 8.01s (± 0.64%) ~ 7.96s 8.10s p=0.560 n=6
Bind Time 2.21s (± 0.38%) 2.21s (± 0.23%) ~ 2.21s 2.22s p=0.923 n=6
Check Time 35.71s (± 0.22%) 35.88s (± 0.35%) +0.17s (+ 0.47%) 35.70s 36.00s p=0.045 n=6
Emit Time 16.11s (± 0.22%) 16.14s (± 0.56%) ~ 16.02s 16.29s p=0.521 n=6
Total Time 62.05s (± 0.14%) 62.24s (± 0.22%) +0.19s (+ 0.31%) 62.12s 62.46s p=0.016 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,130,296 2,130,296 ~ ~ ~ p=1.000 n=6
Types 927,656 927,656 ~ ~ ~ p=1.000 n=6
Memory used 2,106,998k (± 0.01%) 2,107,103k (± 0.00%) ~ 2,106,992k 2,107,208k p=0.298 n=6
Parse Time 9.63s (± 0.52%) 9.67s (± 0.39%) ~ 9.61s 9.72s p=0.229 n=6
Bind Time 3.37s (± 0.62%) 3.37s (± 0.52%) ~ 3.34s 3.38s p=0.871 n=6
Check Time 101.37s (± 1.94%) 102.47s (± 0.37%) ~ 101.86s 102.90s p=0.173 n=6
Emit Time 0.76s (±122.23%) 0.19s (± 2.81%) ~ 0.19s 0.20s p=0.663 n=6
Total Time 115.13s (± 1.02%) 115.71s (± 0.33%) ~ 115.10s 116.09s p=0.173 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,225,970 1,225,970 ~ ~ ~ p=1.000 n=6
Types 261,580 261,580 ~ ~ ~ p=1.000 n=6
Memory used 2,338,862k (± 0.02%) 2,339,354k (± 0.05%) ~ 2,338,021k 2,341,110k p=0.575 n=6
Parse Time 6.07s (± 0.70%) 6.06s (± 0.82%) ~ 5.99s 6.12s p=0.809 n=6
Bind Time 2.25s (± 0.52%) 2.25s (± 0.36%) ~ 2.24s 2.26s p=0.622 n=6
Check Time 40.17s (± 0.23%) 40.27s (± 0.24%) ~ 40.18s 40.44s p=0.066 n=6
Emit Time 3.84s (± 1.78%) 3.85s (± 1.73%) ~ 3.79s 3.96s p=0.521 n=6
Total Time 52.35s (± 0.14%) 52.45s (± 0.28%) ~ 52.26s 52.67s 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,225,970 1,225,970 ~ ~ ~ p=1.000 n=6
Types 261,580 261,580 ~ ~ ~ p=1.000 n=6
Memory used 2,413,576k (± 0.02%) 2,412,733k (± 0.03%) ~ 2,411,626k 2,413,811k p=0.109 n=6
Parse Time 7.86s (± 0.55%) 7.87s (± 1.22%) ~ 7.71s 7.97s p=0.521 n=6
Bind Time 2.52s (± 1.61%) 2.49s (± 1.17%) ~ 2.46s 2.54s p=0.172 n=6
Check Time 50.18s (± 0.22%) 50.26s (± 0.33%) ~ 49.95s 50.42s p=0.298 n=6
Emit Time 4.82s (± 1.56%) 4.85s (± 2.18%) ~ 4.74s 4.98s p=0.688 n=6
Total Time 65.39s (± 0.17%) 65.49s (± 0.26%) ~ 65.25s 65.73s p=0.378 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 258,280 258,280 ~ ~ ~ p=1.000 n=6
Types 104,782 104,782 ~ ~ ~ p=1.000 n=6
Memory used 427,150k (± 0.01%) 427,180k (± 0.02%) ~ 427,071k 427,271k p=0.575 n=6
Parse Time 4.10s (± 0.39%) 4.09s (± 0.53%) ~ 4.07s 4.13s p=0.607 n=6
Bind Time 1.62s (± 1.43%) 1.63s (± 1.00%) ~ 1.60s 1.65s p=0.682 n=6
Check Time 22.01s (± 0.37%) 22.02s (± 0.33%) ~ 21.94s 22.10s p=1.000 n=6
Emit Time 2.03s (± 1.02%) 2.04s (± 0.86%) ~ 2.01s 2.06s p=0.123 n=6
Total Time 29.75s (± 0.31%) 29.79s (± 0.31%) ~ 29.68s 29.90s p=0.748 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 35 35 ~ ~ ~ p=1.000 n=6
Symbols 224,565 224,565 ~ ~ ~ p=1.000 n=6
Types 93,734 93,734 ~ ~ ~ p=1.000 n=6
Memory used 369,444k (± 0.01%) 369,522k (± 0.03%) ~ 369,419k 369,695k p=0.173 n=6
Parse Time 2.77s (± 1.23%) 2.76s (± 0.42%) ~ 2.74s 2.77s p=0.418 n=6
Bind Time 1.58s (± 0.87%) 1.58s (± 0.35%) ~ 1.57s 1.58s p=0.235 n=6
Check Time 15.48s (± 0.38%) 15.50s (± 0.40%) ~ 15.40s 15.57s p=0.936 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 19.83s (± 0.47%) 19.83s (± 0.37%) ~ 19.73s 19.92s p=0.872 n=6
vscode - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,889,439 2,889,439 ~ ~ ~ p=1.000 n=6
Types 977,632 977,632 ~ ~ ~ p=1.000 n=6
Memory used 3,052,934k (± 0.00%) 3,052,920k (± 0.00%) ~ 3,052,851k 3,053,029k p=0.575 n=6
Parse Time 13.70s (± 0.41%) 13.72s (± 0.43%) ~ 13.61s 13.78s p=0.686 n=6
Bind Time 4.21s (± 0.37%) 4.23s (± 0.37%) ~ 4.21s 4.25s p=0.078 n=6
Check Time 75.85s (± 2.84%) 74.11s (± 0.62%) ~ 73.58s 74.82s p=0.298 n=6
Emit Time 22.03s (± 9.71%) 23.96s (± 0.38%) ~ 23.81s 24.06s p=0.230 n=6
Total Time 115.79s (± 0.23%) 116.03s (± 0.38%) ~ 115.56s 116.60s p=0.471 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 267,235 267,235 ~ ~ ~ p=1.000 n=6
Types 108,815 108,815 ~ ~ ~ p=1.000 n=6
Memory used 411,818k (± 0.01%) 411,823k (± 0.02%) ~ 411,745k 411,930k p=0.689 n=6
Parse Time 4.75s (± 0.49%) 4.74s (± 0.59%) ~ 4.71s 4.78s p=0.683 n=6
Bind Time 2.08s (± 0.71%) 2.08s (± 0.58%) ~ 2.07s 2.10s p=0.616 n=6
Check Time 20.74s (± 0.21%) 20.75s (± 0.29%) ~ 20.69s 20.86s p=0.870 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 27.56s (± 0.22%) 27.58s (± 0.32%) ~ 27.49s 27.73s p=0.936 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 510,050 510,050 ~ ~ ~ p=1.000 n=6
Types 161,597 161,597 ~ ~ ~ p=1.000 n=6
Memory used 447,405k (± 0.06%) 447,382k (± 0.08%) ~ 446,971k 447,895k p=0.810 n=6
Parse Time 3.88s (± 0.40%) 3.89s (± 0.66%) ~ 3.85s 3.92s p=0.685 n=6
Bind Time 1.48s (± 0.66%) 1.47s (± 1.27%) ~ 1.45s 1.49s p=0.156 n=6
Check Time 21.08s (± 0.52%) 21.12s (± 0.33%) ~ 21.01s 21.20s p=0.574 n=6
Emit Time 0.00s (±244.70%) 0.00s ~ ~ ~ p=0.405 n=6
Total Time 26.45s (± 0.43%) 26.47s (± 0.36%) ~ 26.36s 26.61s 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

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

Everything looks good!

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: Needs merge
Development

Successfully merging this pull request may close these issues.

None yet

4 participants