test_bot/bottles_fetch: fetch bottles in parallel. by MikeMcQuaid · Pull Request #21503 · Homebrew/brew

Pull request overview

This PR refactors the BottlesFetch class to batch bottle fetching operations by grouping formulae by their bottle tags. Instead of fetching bottles for each formula-tag combination individually, the code now groups all formulae by tag and fetches all formulae for a given tag in a single operation.

Changes:

  • Introduced a new formulae_by_tag method that groups formulae by their bottle tags
  • Modified fetch_bottles! to accept a tag and multiple formulae instead of a single formula
  • Reduced the number of brew fetch command invocations and cleanup checks by batching operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.