Skip to content

Conversation

@shulaoda
Copy link
Member

@shulaoda shulaoda commented Aug 7, 2025

closes #12825

@github-actions github-actions bot added A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Aug 7, 2025
Copy link
Member Author

shulaoda commented Aug 7, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@shulaoda shulaoda changed the title refactor(linter): use fast-glob instead of globset for GlobSet refactor(linter): use fast-glob instead of globset for GlobSet Aug 7, 2025
@shulaoda shulaoda marked this pull request as ready for review August 7, 2025 09:07
@shulaoda shulaoda requested a review from camc314 as a code owner August 7, 2025 09:07
@shulaoda shulaoda force-pushed the 08-07-refactor_linter_use_fast-glob_instead_of_globset_for_globset branch from 5d2565d to 9adf236 Compare August 7, 2025 09:09
@codspeed-hq
Copy link

codspeed-hq bot commented Aug 7, 2025

CodSpeed Instrumentation Performance Report

Merging #12870 will not alter performance

Comparing 08-07-refactor_linter_use_fast-glob_instead_of_globset_for_globset (238b183) with main (ed40581)1

Summary

✅ 34 untouched benchmarks

Footnotes

  1. No successful run was found on main (238b183) during the generation of this report, so ed40581 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Copy link
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

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

@shulaoda is there any risk to any changes to how patterns are matched, when switching from globset to fast-glob.

e.g. are there any cases where a pattern would previously match, but now does not match correctly (or the reverse)

@shulaoda
Copy link
Member Author

shulaoda commented Aug 7, 2025

@shulaoda is there any risk to any changes to how patterns are matched, when switching from globset to fast-glob.

e.g. are there any cases where a pattern would previously match, but now does not match correctly (or the reverse)

In general, the syntax of globset and fast-glob is nearly identical. However, for patterns like *.txt, globset automatically expands it to **/*.txt, matching both a.txt and path/a.txt, whereas fast-glob only matches the former.

@shulaoda
Copy link
Member Author

shulaoda commented Aug 7, 2025

Additionally, for patterns like */*.txt, globset will match files such as cc/s/foo.txt, while fast-glob only matches s/foo.txt.

@shulaoda shulaoda force-pushed the 08-07-refactor_linter_use_fast-glob_instead_of_globset_for_globset branch from 9adf236 to 63ba7de Compare August 8, 2025 02:33
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Aug 8, 2025
Copy link
Contributor

camc314 commented Aug 8, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 08-07-refactor_linter_use_fast-glob_instead_of_globset_for_globset branch from 63ba7de to 238b183 Compare August 8, 2025 10:19
@graphite-app graphite-app bot merged commit 238b183 into main Aug 8, 2025
30 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 8, 2025
@graphite-app graphite-app bot deleted the 08-07-refactor_linter_use_fast-glob_instead_of_globset_for_globset branch August 8, 2025 10:25
taearls pushed a commit to taearls/oxc that referenced this pull request Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants