Skip to content

Conversation

@bevanjkay
Copy link
Member

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

For the same reasons as explained in #20493 - use zip instead of dmg in some additional instances that require cask installation.

Copilot AI review requested due to automatic review settings December 10, 2025 11:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR continues the test performance optimization effort started in PR #20493 by replacing additional DMG-based cask fixtures with ZIP-based fixtures in tests that require cask installation. ZIP files are significantly faster to extract than DMG files, which need to be mounted first, leading to faster test execution.

Key changes:

  • Updated with-depends-on-cask to depend on local-transmission-zip instead of local-transmission
  • Changed will-fail-if-upgraded fixture to use ZIP format with correct SHA256 hash
  • Updated test reference in list_spec.rb to use the ZIP variant

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
Library/Homebrew/test/support/fixtures/cask/Casks/with-depends-on-cask.rb Updated dependency reference from local-transmission (DMG) to local-transmission-zip (ZIP) to speed up dependency installation tests
Library/Homebrew/test/support/fixtures/cask/Casks/will-fail-if-upgraded.rb Changed URL from DMG to ZIP format and updated SHA256 hash to match the ZIP file for faster upgrade failure tests
Library/Homebrew/test/cask/list_spec.rb Updated test fixture reference to use local-transmission-zip for faster test execution in file listing tests

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

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 11, 2025
Merged via the queue into main with commit 65406bd Dec 11, 2025
45 checks passed
@MikeMcQuaid MikeMcQuaid deleted the speedup-cask-tests branch December 11, 2025 11:09
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.

3 participants