Don't Glob if Glob Ain't Glob 2: The Globbening#10518
Conversation
|
The error message in one of the glob tests seems to regress a bit: My intuition is that I think this is fine, since the speedup is likely more relevant than reporting non-existent directory root rather vs invalid filepath. Do check whether the test itself is meant to test specifically for the behaviour which we're losing, so you can update it accordingly and say the behaviour is now something else (something something, "despite /home/user not existing, we report the error with the full path because of the early "fast" check..."), if that makes sense. |
I actually think this is a pretty confusing message: I'll review the tests, but I'm unsure what's actually failing. |
There's a prior check that separates out the It is slightly faster to bypass the entire parsing step and joining of prefixes like that (as seen in #10502 ), but doing so in a type-safe way requires changing the API. I don't think the marginal performance impact there is worth breaking it.
I looked into the |
|
RE squashing commits: I'm not great at git, any chance y'all can do a |
|
@parsonsmatt yes, squashing is easy on our side: we should make sure that the merge label we use is "squash+merge". Moreover, it's the author's job to pick the label, normally. |
|
Very good @parsonsmatt. Ready to land. |
Thanks! I'm unable to add labels to the PR though. |
|
@parsonsmatt I just added respective permissions to your account I hope. But I also applied the label to this PR. |
|
@ulysses4ever for some reason the PR is still not being merged, could you try to land it? |
|
@alt-romes thanks for the ping! Yes, will look into it today. |
|
@mergify refresh |
✅ Pull request refreshed |
956fc0b to
f8b1263
Compare
|
This pull request has been removed from the queue for the following reason: Pull request #10518 has been dequeued. The pull request has been synchronized by a user. You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
|
@mergify requeue |
☑️ This pull request is already queued |
|
@mergify help |
❌ Sorry but I didn't understand the command. Please consult the commands documentation 📚. |
|
@mergify dequeue |
|
This pull request has been removed from the queue for the following reason: Pull request #10518 has been dequeued by a You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
✅ The pull request has been removed from the queue
|
|
@mergify refresh |
✅ Pull request refreshed |
|
@mergify requeue |
☑️ This pull request is already queued |
This PR is a less invasive variant of #10502 which moves the special treatment of glob patterns into
runDirFileGlobdirectly. Locally, I'm observing a comparable performance improvement to that PR: #10502 takes about 150ms, and this one takes about 250ms.Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR:
Template B: This PR does not modify behaviour or interface
E.g. the PR only touches documentation or tests, does refactorings, etc.
Include the following checklist in your PR: