Split AdrFixtures into AdrFixture (value) and AdrScenario (disk) #1467
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#1467
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-adr/tests/support/adr_fixtures.rbmixes two jobs.sample_adr(id:, title:, status:, extra_frontmatter:)is pure.with_project(adrs)calls Dir.mktmpdir, mkdir_p, and File.write (lines 7-11), against rule 2 of the record-fixtures convention.The module also uses the plural name
Fixtures.Approach
Create
AdrFixturewithbuild(**overrides)(the renamedsample_adr).Keep
sample_adras an alias only if it has more than 10 callers (58 uses today).Create
AdrScenario.with_project.Update the callers (
grep -rl AdrFixtures plugins/os-adr/testslists 17 files).plugins/os-adr/.sdlcdoes not exist, so os-adr is not set up for os-sdlc. Route by hand.Required work:
module AdrFixtureinplugins/os-adr/tests/support/adr_fixture.rbAdrFixturesinplugins/os-adr/tests/**Acceptance criteria
Owner sketch
Route: by hand (no
.sdlcin os-adr).Origin
VERDICT: CREATE
Parent: #1019
Resolution
Done: AdrFixtures split: AdrFixture.build (old sample_adr, pure) and AdrScenario.with_project (disk). All callers call them explicitly; no alias.
Evidence: fast-batch-22 merged to main
5f32ca8f; commitb761641a. os-adr suite 144 runs, 370 assertions, 0 failures before and after. No AdrFixtures left in plugins/os-adr/tests.Follow-ups: none