os_git ships a repository fake for consumer tests; os-sdlc moves its FakeGit into it #1652
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#1652
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
Consumers of the os_git gem must test without starting git (ruling 88,
.claude/rules/ruby-external-calls.md).OsGit::Testing::ScratchRepostarts real git.OsGitBackend::Fakeanswers by message name only, so it cannot model a history.#1645 (merged
38b3284d) built an in-memory fake in os-sdlctest/support:FakeGit,FakeGitRepository,FreshGitRepository, andGitMarker.Other consumers (os-me, os-backlog, delta-refinery) will need the same fake.
Reproduce
n/a: design ticket, nothing to reproduce.
Approach
Move the fake into the os_git gem under
OsGit::Testing.The os-git plugin owns and tests it.
os-sdlc uses it from the gem.
Decide whether
ScratchRepostays: os-git's own tests may start git, and consumers may not.Required work:
OsGit::Testingin the gem — check: presentFakeGitinplugins/os-git/lib/os_git/testing/**/*.rbtest/support— check: absentFakeGitinplugins/os-sdlc/test/support/**/*.rbAcceptance criteria
test/support, when searched forFakeGit, then none is found and the tests useOsGit::Testing.Owner sketch
VERDICT: CREATE
Origin
OsGitships no history-modelling fake (plugins/os-git/lib/os_git/testing/) ← DESIGN (ruling 88).