Revert "Enable strict typing in Homebrew::TestBot, redux"#21549
Merged
Revert "Enable strict typing in Homebrew::TestBot, redux"#21549
Conversation
chenrui333
approved these changes
Feb 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Reverts the prior attempt to enable Sorbet typed: strict within Homebrew::TestBot to unblock CI by relaxing typing (typed: true) and removing strict Sorbet signatures/assertions across the test-bot implementation.
Changes:
- Downgrade
Homebrew::TestBotfiles fromtyped: stricttotyped: trueand remove manysig/T.must/T.letconstructs. - Add minimal RBI stubs for
TestRunnerandTestFormulae(includingKernel). - Update/remove several RSpec regression tests related to the strict-typing work.
Reviewed changes
Copilot reviewed 19 out of 21 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| Library/Homebrew/test_bot/test_runner.rbi | Adds RBI stub for TestRunner (includes Kernel). |
| Library/Homebrew/test_bot/test_runner.rb | Switches to typed: true, removes strict Sorbet typing constructs, refactors module structure. |
| Library/Homebrew/test_bot/test_formulae.rbi | Adds RBI stub for TestFormulae (includes Kernel). |
| Library/Homebrew/test_bot/test_formulae.rb | Switches to typed: true, removes strict Sorbet typing constructs, adjusts artifact/bottle cache logic. |
| Library/Homebrew/test_bot/test_cleanup.rb | Switches to typed: true, removes strict Sorbet typing constructs, changes some path handling. |
| Library/Homebrew/test_bot/test.rb | Switches to typed: true, removes strict Sorbet typing constructs, minor initialization changes. |
| Library/Homebrew/test_bot/tap_syntax.rb | Switches to typed: true, removes strict Sorbet typing constructs and simplifies tap handling. |
| Library/Homebrew/test_bot/step.rb | Switches to typed: true, removes strict Sorbet typing constructs, adjusts annotation helpers. |
| Library/Homebrew/test_bot/setup.rb | Switches to typed: true, removes strict Sorbet typing constructs. |
| Library/Homebrew/test_bot/junit.rb | Switches to typed: true, moves rexml requires from initialize to build, removes strict typing. |
| Library/Homebrew/test_bot/formulae_detect.rb | Switches to typed: true, removes strict Sorbet typing constructs, simplifies tap presence checks. |
| Library/Homebrew/test_bot/formulae_dependents.rb | Switches to typed: true, removes strict Sorbet typing constructs and some initializer state. |
| Library/Homebrew/test_bot/formulae.rb | Switches to typed: true, removes strict Sorbet typing constructs, refactors formula test flow. |
| Library/Homebrew/test_bot/cleanup_before.rb | Switches to typed: true, removes strict Sorbet typing constructs. |
| Library/Homebrew/test_bot/cleanup_after.rb | Switches to typed: true, removes strict Sorbet typing constructs. |
| Library/Homebrew/test_bot/bottles_fetch.rb | Switches to typed: true, removes strict Sorbet typing constructs. |
| Library/Homebrew/test_bot.rb | Switches to typed: true, removes strict Sorbet typing constructs. |
| Library/Homebrew/test/test_bot/test_formulae_spec.rb | Removes regression spec introduced for strict-typing edge cases. |
| Library/Homebrew/test/test_bot/test_cleanup_spec.rb | Removes regression spec introduced for strict-typing argument-type edge cases. |
| Library/Homebrew/test/test_bot/setup_spec.rb | Updates require and adjusts args double class. |
| Library/Homebrew/test/test_bot/junit_spec.rb | Removes regression spec covering REXML loading/serialization. |
Files not reviewed (2)
- Library/Homebrew/test_bot/test_formulae.rbi: Language not supported
- Library/Homebrew/test_bot/test_runner.rbi: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Feb 9, 2026
Member
|
mainly two issues seeing so far https://github.com/Homebrew/homebrew-core/actions/runs/21822634324/job/62964195129 https://github.com/Homebrew/homebrew-core/actions/runs/21824251890/job/62964964238 |
This was referenced Feb 9, 2026
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #21539
Reverting to unblock CI. We can go for another attempt.
See #21539 (comment)
CC: @dduugg