Skip to content

Optimize aquery for wildcard target patterns - #198

Open
GtechGovind wants to merge 1 commit into
spotify:mainfrom
GtechGovind:fix/compact-wildcard-queries
Open

GtechGovind wants to merge 1 commit into
spotify:mainfrom
GtechGovind:fix/compact-wildcard-queries

Conversation

@GtechGovind

Copy link
Copy Markdown

Summary

  • reuse wildcard-only target patterns directly in the action query instead of expanding every discovered target label
  • preserve the existing expanded-target query for mixed and non-wildcard configurations
  • retain top-level target exclusions when building the compact query
  • add regression coverage for large wildcard expansions and the mixed-pattern fallback

Validation

  • swift format lint Sources/ Tests/ Example/ --recursive --strict
  • swift test (101 tests passed)
  • swift build
  • swift build -c release
  • compared expanded-label and wildcard action queries in the example workspace: both returned the same 20 normalized actions

Closes #123

@GtechGovind
GtechGovind marked this pull request as ready for review October 2, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize queries when using wildcards

1 participant