Load os-me test support through Zeitwerk and move FakeRunner into it #1469
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1469
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
plugins/os-me/test/test_helper.rbloads support files with require_relative (lines 3-5) and has no Zeitwerk loader, against ADR-0241.FakeRunnersits insidetest_helper.rbat line 97.plugins/os-me/test/yaml_prediction_fixtures.rbsits beside the tests, not in a support directory.Approach
Push
test/supporton a Zeitwerk loader intest_helper.rb. Copy the form atplugins/os-sdlc/tests/test_helper.rb:87-89.Move FakeRunner to
plugins/os-me/test/support/fake_headless_runner.rbasFakeHeadlessRunner; it returnsOsMe::HeadlessResult.Move
yaml_prediction_fixtures.rbtoplugins/os-me/test/support/yaml_prediction_fixture.rbasYamlPredictionFixture, if it is pure.Update the callers.
Required work:
Zeitwerk::Loaderinplugins/os-me/test/test_helper.rbclass FakeRunnerinplugins/os-me/test/test_helper.rbAcceptance criteria
Owner sketch
Route: by hand or fast-batch, per os-me setup (
plugins/os-me/.sdlcdoes not exist).Origin
VERDICT: CREATE
Parent: #1019
Skeptic DROP for follow-up 'os-me test helpers outside test/support after #1469': nothing fails today (need-to-exist test). Leftovers, move on next touch: UseCase in plugins/os-me/test/test_helper.rb; beside the tests and loaded by require_relative: fake_claude_fixture.rb, candidate_fakes.rb, in_process_cli.rb, confidence_label_fixtures.rb, lever_label_fixtures.rb, gem_replies.rb, extract_moment_kinds_harness.rb, extract_cursor_seed.rb, memo_keyed_adapters.rb, one_thing_store.rb, recording_adapter.rb. Target: plugins/os-me/test/support/, one constant per file, convention names.
Resolution
Done: os-me test_helper Zeitwerk-loads test/support; FakeRunner is test/support/fake_headless_runner.rb (FakeHeadlessRunner); yaml_prediction_fixtures.rb is test/support/yaml_prediction_fixture.rb (YamlPredictionFixture, pure); TranscriptFixtures (disk I/O) is test/support/transcript_scenario.rb (TranscriptScenario).
Evidence: fast-batch-22 merged to main
5f32ca8f; commits27e407e6,9b7acf1e. os-me suite 443 runs, 810 assertions, 0 failures before and after.Follow-ups: dropped: moving UseCase and 11 beside-the-test helpers into test/support got a ticket-skeptic DROP (need-to-exist); list posted on #1469.