CRC wave 5: split RollbackPerTest #1139
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#1139
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-sdlc/tests/test_helper.rb(RollbackPerTest) has the job sentence "This object owns the test process setup and the cop helper and fake runner and fake git that test files share.", which holds two jobs. Extract it into separate files.Reproduce
n/a: structure-only refactor, no behavior change.
Approach
plugins/os-sdlc/tests/test_helper.rb(RollbackPerTest)Acceptance criteria
cd plugins/os-sdlc && ruby tests/all.rb0 failures.ruby -e 'require "./plugins/os-sdlc/lib/os_sdlc"; OsSdlc::Db.connect!(":memory:"); OsSdlc.loader.eager_load'silent.plugins/os-sdlc/bin/lint-sweepshows no unexplained new line.Owner sketch
Each part owns one job; the old file is removed.
Non-goals
Origin
07c9deff; rows applied 1/1; parts: CopHelpers, FakeRunner, FakeGit; rows deviated 0; rows blocked 0Resolution
Done: split test_helper.rb: CopHelpers (was CopTestHelper), FakeRunner, FakeGit moved to tests/support; 36 cop tests include renamed
Evidence:
07c9deff; suite: 2129 runs, 4792 assertions, 0 failures, 0 errors, 0 skips; eager load silent; rubocop .rubocop.yml lib tests 34 offenses in 19 files (baseline, none in changed files); inward sweep from plugins/os-sdlc/: 0 baseline lines gone, 0 unmapped, 15 unmasked pre-existing edges recorded in docs/crc/os-sdlc/deviations.md; ledger docs/crc/os-sdlc/ledger.tsv commit column stampedFollow-ups: #1141 dead-code ticket covers fake_git.rb's only users (Git::Branch, Git::Worktree); FakeRunner vs FakeTwoCallRunner/FakeSplitCaptureRunner near-duplicates listed in the HANDOFF Review (both fakes are in #1141's deletion list)