Stop the os-backlog route test from swapping $stdin under parallel tests #1632
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#1632
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
ResolveCliTest#test_resolve_prints_use_with_the_configured_trackerfails on some seeds and passes on others. The test swaps the global$stdin, and the os-backlog suite runs tests in parallel withparallelize_me!.CliTicketProjectLabelGroupsTestalso swaps$stdin(itswith_stdinhelper). When the two tests overlap,project routereads the wrong input.project routeis the only command that reads$stdin. It has no caller outside its own tests: no skill, hook, script, or other repo calls it. It started in #12 (commit8d4b1c7f, 2026-07-10) as a pure Planka board resolver that took its inputs on stdin. ADR-0042 retired Planka. Today the command ignoresrepo_pathand only echoes thetracker=line of config text that the caller sends.project showalready reads the real.cc-os/configand prints the tracker.Observed
On main
14fd26edandba5f46c6,ruby plugins/os-backlog/tests/all.rb --seed 3225fails this test on some runs.--seed 19992passes.Approach
Delete the dead command and its chain, so no code reads
$stdinoutside the SessionStart hook (which already injects it):ProjectGroup#routeandProjectCommands#resolveProject.from_config,Project#route,Project::Routetests/resolve_cli_test.rb,tests/project_route_test.rb"project route"in theCliTicketProjectLabelGroupsTestname list, and itswith_stdinhelperRejected: inject an IO through
CLI::Wiring(keeps a command with no use); mark the test class serial (hides the global swap).Acceptance criteria
os-backlog project routeruns, then Thor reportsCould not find command.$stdin.Origin
Start: deleting the dead project route chain on main (Jared ruling 2026-11-07).
Resolution
Done: Deleted the dead project route command chain and its stdin-swapping tests (
ac06a3d1)Evidence: os-backlog suite 20 runs: 527 runs, 0 failures each; grep finds no $stdin assignment in tests; 'os-backlog project route' gives Could not find command "route"; rubocop 0 offenses on changed files
Follow-ups: none