Pass the user into Backlog::Checkout from bin/os-backlog #1386
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#1386
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
Backlog::Checkout reads ENV['USER'] itself. A test that needs a different user must start a subprocess, so it cannot run in-process.
Observed
plugins/os-backlog/lib/backlog/checkout.rb:25 has
assignee || ENV["USER"] || "agent".test_checkout_ignores_cc_os_agent_id_env_and_falls_back_to_user stays an Open3 subprocess.
Reproduce
n/a: this is a design gap, not a failure.
Approach
Pass the user in from bin/os-backlog, so Backlog::Checkout takes the user as a parameter and does not read ENV.
Then run test_checkout_ignores_cc_os_agent_id_env_and_falls_back_to_user in-process.
Keep one Open3 subprocess test for the bin entry, with a comment that states the constraint.
Origin