Require only Ruby files in the diff-test command #888
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#888
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
The
diff-testgate loads every changed file under the test root withrequire_relative, including YAML fixture maps. Ruby cannot load a YAML file, so the gate fails withLoadErrorwhenever a ticket changes or adds a fixture undertests/fixtures/. A test-writer cannot get past its own gate on such a ticket.Observed
In #872 implementation 1, test-writer dispatches 3 and 4 both failed the
diff-teststep with exit 1:#872 Approach item 7 requires the fixture-map conversion, so no test-writer change can pass the gate.
Reproduce
n/a: needs a pipeline run whose diff changes a
.yamlfile underplugins/os-sdlc/tests/fixtures/maps/; the unit test below reproduces it throughDiffTestPlan#command.Approach
DiffTestPlan#test_pathskeeps only Ruby files: addpath.end_with?(".rb")to the existingselectinplugins/os-sdlc/lib/os_sdlc/model/diff_test_plan.rb. A changed fixture alone then gives no file to require. The otherProject::Changes#test_pathsconsumers do not change.Required work:
end_with?(".rb")inplugins/os-sdlc/lib/os_sdlc/model/diff_test_plan.rbRejected: filter in
Project::Changes#test_paths— other consumers read that list, and the defect is only in what the plan requires.Acceptance criteria
Owner sketch
Origin
DiffTestPlan#test_pathskeeps every existing changed path under the test root (diff_test_plan.rb:41) ←Project::Test#include?is a prefix test (model/project/test.rb:10) ← DESIGN (plugins/os-sdlc/lib/os_sdlc/model/diff_test_plan.rb)VERDICT: CREATE — confirmed in diff_test_plan.rb:41; blocks the user-filed #872 (ticket-skeptic, 2026-10-01).
Work started on branch ticket-888 (os-sdlc pipeline, map poodr-ticket-implementation).
Resolution
Done: DiffTestPlan#test_paths keeps only Ruby files; the diff-test command no longer requires YAML fixtures (both ACs tested).
Evidence: main
f128fdcd(Runner commit, implementation 1 implementation_complete, 8 dispatches, 0 retries),2f86fb08History row; bin/test on main: 9 suites passed.Follow-ups: none