Skip to content

sorbet: Bump more Cask tests to higher typed levels - #23574

Merged
MikeMcQuaid merged 1 commit into
mainfrom
sorbet-cask-two-errors
Aug 20, 2026
Merged

sorbet: Bump more Cask tests to higher typed levels#23574
MikeMcQuaid merged 1 commit into
mainfrom
sorbet-cask-two-errors

Conversation

@issyl0

@issyl0 issyl0 commented Aug 19, 2026

Copy link
Copy Markdown
Member

  • Have you followed our Contributing guidelines?
  • Have you checked for other open Pull Requests for the same change?
  • Have you explained what your changes do? Performance claims (e.g. "this is faster") must include Hyperfine benchmarks.
  • Have you explained why you'd like these changes included, not just what they do?
  • For bug fixes, have you given step-by-step brew commands to reproduce the bug?
  • Have you written new tests (excluding integration tests)? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) locally?

  • I did not use AI/LLM to create this PR, or I disclosed the tool/model below and reviewed its output; I did not attribute commits to AI and will answer maintainer questions and review comments myself without AI/LLM.

Claude Code CLI, Claude Opus 5 (High reasoning, Ultracode was too intense 🤯), with human prompting, review and tweaks.


  • Part of my ongoing quest to bump all the test files to at least Sorbet typed: true, because that's a thing we can do.
  • In a 🥞 gh stack because I wanted to try them out on a real chain of changes.
  • See the commit message body for the full description of the changes.

@issyl0
issyl0 force-pushed the sorbet-cask-two-errors branch 2 times, most recently from 774b325 to 3d7f1f3 Compare August 19, 2026 21:45
@issyl0
issyl0 marked this pull request as ready for review August 19, 2026 22:17
Copilot AI lite review requested due to automatic review settings August 19, 2026 22:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 advances Sorbet adoption in Homebrew’s Cask area by raising the typed levels of additional Cask-related specs and extending the Tapioca-generated RBI for Cask::DSL to cover architecture-scoped DSL helpers.

Changes:

  • Bump selected Cask-related specs from # typed: false to # typed: true and adjust a couple of let declarations to satisfy typechecking.
  • Extend the Cask::DSL Tapioca compiler to generate RBI entries for on_arm/on_intel.
  • Update the autogenerated Cask::DSL RBI to include on_arm/on_intel signatures.
Show a summary per file
File Description
Library/Homebrew/test/dev-cmd/bump-cask-pr_spec.rb Raises the spec’s Sorbet typed level to improve static checking coverage.
Library/Homebrew/test/cask/download_spec.rb Raises the spec’s Sorbet typed level and tweaks let scoping for typechecking.
Library/Homebrew/sorbet/tapioca/compilers/cask/dsl.rb Generates RBI method signatures for Cask::DSL#on_arm/#on_intel.
Library/Homebrew/sorbet/rbi/dsl/cask/dsl.rbi Adds the generated on_arm/on_intel methods to the Cask DSL RBI.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Files not reviewed (1)
  • Library/Homebrew/sorbet/rbi/dsl/cask/dsl.rbi: File type not supported
  • Files reviewed: 3/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread Library/Homebrew/sorbet/tapioca/compilers/cask/dsl.rb
Comment thread Library/Homebrew/sorbet/rbi/dsl/cask/dsl.rbi Outdated
@issyl0
issyl0 marked this pull request as draft August 19, 2026 22:31
- Generate typed on_arm and on_intel methods from the Cask DSL
  compiler instead of maintaining a manual RBI shim. Their blocks are
  required, because the generated methods call them unconditionally
  once the architecture matches.

- Define Download version and checksum lets in the same scope as the
  doubles that consume them.
@issyl0
issyl0 force-pushed the sorbet-cask-two-errors branch from 3d7f1f3 to f09cd41 Compare August 19, 2026 23:00
@issyl0
issyl0 marked this pull request as ready for review August 19, 2026 23:33
@MikeMcQuaid
MikeMcQuaid added this pull request to the merge queue Aug 20, 2026
Merged via the queue into main with commit 441ef61 Aug 20, 2026
47 checks passed
@MikeMcQuaid
MikeMcQuaid deleted the sorbet-cask-two-errors branch August 20, 2026 08:18
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.

4 participants