GateEvaluatorProjectShellTest fails: forked Ruby loads bundler twice #862

Closed
opened 2026-09-30 21:02:36 +00:00 by jared · 1 comment
Owner

Problem

Four tests in plugins/os-sdlc/tests/adapter/gate/evaluator_project_shell_test.rb fail on main. The assertion is at line 68. The forked subprocess crashes when it loads bundler a second time. The full os-sdlc suite reports 1337 runs and 4 failures, and all 4 failures are these tests. The tests fail the same way on main before #858. Thus the suite-check gate of every os-sdlc pipeline run reports failures that are not related to the ticket.

Observed

/home/jared/.rbenv/versions/4.0.2/lib/ruby/site_ruby/4.0.0/bundler/errors.rb:9:in 'Bundler::BundlerError.status_code': Trying to register Bundler::GemfileError for status code 4 but Bundler::GemfileError is already registered (ArgumentError)

The subprocess gets RUBYOPT=-r<sitelibdir>/bundler/setup. A probable cause is the default bundler 4.0.22 against the lockfile's BUNDLED WITH 4.0.11, so two bundler copies load. This cause is not verified.

Reproduce

From /home/jared/dev/cc-os:

ruby -I plugins/os-sdlc/tests plugins/os-sdlc/tests/adapter/gate/evaluator_project_shell_test.rb

Result: 4 failures with the ArgumentError above.

VERDICT: CREATE — observed on main before #858, reproducible, affects the suite-check gate of every os-sdlc run; no open ticket covers it.

Origin

Session: e5cfbe57-4cd0-4d7e-aabd-f64294775172
Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/e5cfbe57-4cd0-4d7e-aabd-f64294775172.jsonl
Where: plugins/os-sdlc/tests/adapter/gate/evaluator_project_shell_test.rb, Gate::Evaluator ProjectShell RUBYOPT handling
Found while: hand-finishing #858 (implementation 17).

## Problem Four tests in `plugins/os-sdlc/tests/adapter/gate/evaluator_project_shell_test.rb` fail on main. The assertion is at line 68. The forked subprocess crashes when it loads bundler a second time. The full os-sdlc suite reports 1337 runs and 4 failures, and all 4 failures are these tests. The tests fail the same way on main before #858. Thus the suite-check gate of every os-sdlc pipeline run reports failures that are not related to the ticket. ## Observed ``` /home/jared/.rbenv/versions/4.0.2/lib/ruby/site_ruby/4.0.0/bundler/errors.rb:9:in 'Bundler::BundlerError.status_code': Trying to register Bundler::GemfileError for status code 4 but Bundler::GemfileError is already registered (ArgumentError) ``` The subprocess gets `RUBYOPT=-r<sitelibdir>/bundler/setup`. A probable cause is the default bundler 4.0.22 against the lockfile's BUNDLED WITH 4.0.11, so two bundler copies load. This cause is not verified. ## Reproduce From `/home/jared/dev/cc-os`: ``` ruby -I plugins/os-sdlc/tests plugins/os-sdlc/tests/adapter/gate/evaluator_project_shell_test.rb ``` Result: 4 failures with the ArgumentError above. VERDICT: CREATE — observed on main before #858, reproducible, affects the suite-check gate of every os-sdlc run; no open ticket covers it. ## Origin Session: e5cfbe57-4cd0-4d7e-aabd-f64294775172 Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/e5cfbe57-4cd0-4d7e-aabd-f64294775172.jsonl Where: plugins/os-sdlc/tests/adapter/gate/evaluator_project_shell_test.rb, Gate::Evaluator ProjectShell RUBYOPT handling Found while: hand-finishing #858 (implementation 17).
Author
Owner

Resolution

Done: Obsolete: evaluator_project_shell_test.rb no longer exists.

Evidence: find plugins -name evaluator_project_shell_test.rb: no results.

Follow-ups: none

## Resolution **Done:** Obsolete: evaluator_project_shell_test.rb no longer exists. **Evidence:** find plugins -name evaluator_project_shell_test.rb: no results. **Follow-ups:** none
jared closed this issue 2026-10-18 18:59:00 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#862
No description provided.