Add missing require_relative to three worktree start test files #533

Open
opened 2026-09-08 16:52:34 +00:00 by jared · 0 comments
Owner

Context

Triage of #525 on 2026-09-08 ran the worktree CLI tests one file at a time. Three start test files fail when run alone. The user approved this ticket during triage.

Observed

The three files do not require the library they test. They pass only when a finish test in the same batch loads it first.

cd plugins/os && ruby -Itest tests/worktree_cli_start_test.rb
NameError: uninitialized constant ...::Worktree

Reproduce

cd plugins/os && for f in tests/worktree_cli_start_test.rb tests/worktree_cli_start_pipeline_db_test.rb tests/worktree_cli_start_extra_symlinks_test.rb; do ruby -Itest "$f"; done

Expected

Each of the three files runs green on its own.

# each file begins with:
require_relative '../lib/worktree_cli_start'

Origin

  • Trigger: /triage #525, investigation agent ran each worktree test file alone
  • Improvised this session: none
  • Chain: standalone NameError ← missing require_relative in three start test files (source: the files) ← finish tests transitively require the start library, which masks the gap in batch runs. End: IMPROVISATION (the files were written to pass in a batch).
  • Root candidate: this ticket
  • Where: plugins/os/tests/worktree_cli_start_test.rb, worktree_cli_start_pipeline_db_test.rb, worktree_cli_start_extra_symlinks_test.rb
  • Session: f3ac4424-679e-4c92-9c4d-f6280f413050
  • Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/f3ac4424-679e-4c92-9c4d-f6280f413050.jsonl
## Context Triage of #525 on 2026-09-08 ran the worktree CLI tests one file at a time. Three start test files fail when run alone. The user approved this ticket during triage. ## Observed The three files do not require the library they test. They pass only when a finish test in the same batch loads it first. ``` cd plugins/os && ruby -Itest tests/worktree_cli_start_test.rb ``` ``` NameError: uninitialized constant ...::Worktree ``` ## Reproduce ``` cd plugins/os && for f in tests/worktree_cli_start_test.rb tests/worktree_cli_start_pipeline_db_test.rb tests/worktree_cli_start_extra_symlinks_test.rb; do ruby -Itest "$f"; done ``` ## Expected Each of the three files runs green on its own. ```ruby # each file begins with: require_relative '../lib/worktree_cli_start' ``` ## Origin - Trigger: `/triage #525`, investigation agent ran each worktree test file alone - Improvised this session: none - Chain: standalone NameError ← missing `require_relative` in three start test files (source: the files) ← finish tests transitively require the start library, which masks the gap in batch runs. End: `IMPROVISATION` (the files were written to pass in a batch). - Root candidate: this ticket - Where: plugins/os/tests/worktree_cli_start_test.rb, worktree_cli_start_pipeline_db_test.rb, worktree_cli_start_extra_symlinks_test.rb - Session: f3ac4424-679e-4c92-9c4d-f6280f413050 - Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/f3ac4424-679e-4c92-9c4d-f6280f413050.jsonl
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#533
No description provided.