Skip to content

Remove the per-example runtime log hook from the spec helper - #9673

Merged
hsbt merged 1 commit into
masterfrom
claude/nostalgic-chatelet-00418e
Jul 3, 2026
Merged

hsbt merged 1 commit into
masterfrom
claude/nostalgic-chatelet-00418e

Conversation

@hsbt

@hsbt hsbt commented Jul 3, 2026

Copy link
Copy Markdown
Member

This forward-ports the spec/bundler/spec_helper.rb part of ruby/ruby#17647. That PR moved per-file runtime recording for test-bundler-parallel into a tool/ patch on the ruby/ruby side, so the opt-in BUNDLER_SPEC_RUNTIME_LOG hook in the synced spec helper is superseded. Removing it here keeps the synced trees identical. Otherwise the next rubygems to ruby sync would resurrect the hook in ruby/ruby. The common.mk and tool/ changes stay in ruby/ruby.

ruby/ruby@508b486

The ported diff is byte-identical to the original hunk and bin/rubocop reports no offenses on the touched file.

Generated with Claude Code

turbo_tests balances workers by a recorded runtime log only when invoked
as a bare `spec`; this build passes an absolute spec/bundler path, so it
grouped by file size and let the single heaviest file dominate the
wall-clock. A tool/ patch loaded from the recipe records per-file
runtimes and reorders the size-based grouper to use the previous run's
data, leaving the synced spec/bin/parallel_rspec untouched.

This forward-ports only the spec_helper.rb part of the ruby/ruby
commit. The opt-in per-example runtime log is superseded there by the
tool/-side recorder, so the hook is removed to keep the synced trees
identical. The common.mk and tool/ changes stay in ruby/ruby.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 3, 2026 05:44

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 removes the opt-in BUNDLER_SPEC_RUNTIME_LOG per-example runtime logging hook from the RSpec helper, aligning this repository’s synced Bundler spec helper behavior with upstream (where runtime logging has moved to Ruby’s tool/ patching for test-bundler-parallel).

Changes:

  • Deletes the BUNDLER_SPEC_RUNTIME_LOG env-var hook that recorded per-example durations into per-worker log files.
  • Removes the associated before(:each)/after(:each) hooks and instance variable usage used solely for that logging.

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

@hsbt
hsbt merged commit 0854812 into master Jul 3, 2026
111 checks passed
@hsbt
hsbt deleted the claude/nostalgic-chatelet-00418e branch July 3, 2026 06:13
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.

2 participants