Skip to content

fix: combine multiple --project filters correctly - #10988

Merged
sheremet-va merged 1 commit into
mainfrom
fix/project-filter-negations
Aug 18, 2026
Merged

sheremet-va merged 1 commit into
mainfrom
fix/project-filter-negations

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

Fixes #10491

matchesProjectFilter OR-combined every pattern, so --project=!a --project=!b excluded nothing: each project satisfied the other negation. A negated pattern also degraded mixed filters, --project=foo --project=!bar kept every project except bar.

A project now runs if it matches no negated pattern and, when regular patterns are also given, matches at least one of them. The same rule applies to browser instances, so a negation can drop a single instance even when its parent project matches the filter.

The negation branch in wildcardPatternToRegExp is removed: exclusions are checked separately now, so no caller passes a !-prefixed pattern anymore.

@netlify

netlify Bot commented Aug 18, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit d97966f
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a84294b78b0e8000843d6ec
😎 Deploy Preview https://deploy-preview-10988--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sheremet-va
sheremet-va merged commit 66c1cbb into main Aug 18, 2026
29 of 30 checks passed
@sheremet-va
sheremet-va deleted the fix/project-filter-negations branch August 18, 2026 09:56
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple negated --project filters don't combine: a second !name re-includes everything the first excluded

1 participant

Sponsor
SponsoredKunjungi sekarang
Promo