Skip to content

utils/github: use WithoutRuntime sig for create_bump_pr#22012

Merged
dduugg merged 2 commits intomainfrom
fix-create-bump-pr-sig
Apr 14, 2026
Merged

utils/github: use WithoutRuntime sig for create_bump_pr#22012
dduugg merged 2 commits intomainfrom
fix-create-bump-pr-sig

Conversation

@dduugg
Copy link
Copy Markdown
Member

@dduugg dduugg commented Apr 14, 2026

Fix uninitialized constant Homebrew::DevCmd::BumpCaskPr errors in
homebrew-core CI autobump jobs by switching the create_bump_pr sig
to T::Sig::WithoutRuntime.sig, which resolves the type lazily
instead of at class load time.

See: https://github.com/Homebrew/homebrew-core/actions/runs/24371330931/job/71175423834#step:6:1307


  • 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 (excluding integration tests) for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

  • AI was used to generate or assist with generating this PR. Claude Code was used to commit and open the PR. The fix itself was authored by the developer.

The sig for `create_bump_pr` references `BumpCaskPr::Args` which
may not be loaded yet, causing `uninitialized constant` errors in
CI (e.g. homebrew-core autobump). Switch to
`T::Sig::WithoutRuntime.sig` so the type is resolved lazily.
Copilot AI review requested due to automatic review settings April 14, 2026 02:29
@dduugg dduugg enabled auto-merge April 14, 2026 02:30
Copy link
Copy Markdown
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

Updates Sorbet typing for Utils::GitHub.create_bump_pr to avoid CI failures caused by eager constant resolution of Homebrew::DevCmd::BumpCaskPr during class load.

Changes:

  • Replaces the eager sig on create_bump_pr with T::Sig::WithoutRuntime.sig to prevent uninitialized constant Homebrew::DevCmd::BumpCaskPr errors in CI autobump jobs.
  • Adds an inline comment explaining why WithoutRuntime is required here.

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

Signed-off-by: Rui Chen <rui@chenrui.dev>
@chenrui333
Copy link
Copy Markdown
Member

@dduugg dduugg added this pull request to the merge queue Apr 14, 2026
Merged via the queue into main with commit 18c76d9 Apr 14, 2026
37 checks passed
@dduugg dduugg deleted the fix-create-bump-pr-sig branch April 14, 2026 03:08
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