Repository navigation
fix(grit): backtrack into contains when later conditions fail - #12063
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: b9bee8a The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Merging this PR will not alter performance
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
grit_query_anchor_kinds[code_snippet] |
< 1 ns | < 1 ns | N/A | |
grit_query_anchor_kinds[metavariable] |
< 1 ns | < 1 ns | N/A | |
grit_query_anchor_kinds[or_pattern] |
< 1 ns | < 1 ns | N/A |
Comparing dyc3/grit-contains-backtracking (b9bee8a) with main (0b4c11f)2
Footnotes
-
364 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
main(f5af193) during the generation of this report, so 0b4c11f was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: biomejs/biome/.coderabbit.yaml Review profile: CHILL Plan: Essentials Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. WalkthroughThe conjunction compiler now evaluates predicates after a Priority: ⬇️ Low Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The change retries contained candidates when subsequent conditions fail while preserving first-success rewrite behavior. No actionable merge blocker remains, subject to normal build and test checks. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
This fixes a bug where grit checks only the first string in
X ? "foo" : "bar"instead of both for queries that look like this:see #9749
Note that this deviates from the reference implementation's behavior, which is intentional, because its a bug in the reference implementation too.
fixed by opus 5.5
fixes #9749
Test Plan
Docs