Fork-guard test must inspect untracked test files so a new spawning test cannot pass the worktree gate and break main #701
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#701
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-sdlc/tests/own_binary_fork_guard_test.rbfinds candidate files withgit ls-files. A test file that is new and untracked is invisible to it. The pipeline gates run in a worktree before the commit, so a new test file that forks a repo binary passes every gate. After the commit lands on main, the same test fails for every later run.Observed
Ticket #633 (commit
7714b9ce) addedplugins/os-sdlc/tests/lint_worklist_target_env_test.rb, which spawns a repo binary and is not inALLOWED_FILES. Its own suite-check passed. On main the test fails:Expected ["plugins/os-sdlc/tests/lint_worklist_target_env_test.rb"] to be empty.The #625 run (implementation 30) inherited the red test. programmer-repair could not fix it without a test edit, the repair bound was exhausted, and the run escalated. Hand-fixed by adding the file to the allowlist on branch ticket-625.Reproduce
In a worktree, create
plugins/os-sdlc/tests/zz_spawn_test.rbcontainingOpen3.capture3("ruby", "bin/os-sdlc-runner"). Do notgit addit. Runruby -Itests plugins/os-sdlc/tests/own_binary_fork_guard_test.rb. It passes.git addthe file and rerun. It fails.Origin
bound_exhausted:programmer-repair/fail; the only red test was the fork guard.lint_worklist_target_env_test.rbtoALLOWED_FILESon branch ticket-625.candidate_filesusesgit ls-files← DESIGN (tests/own_binary_fork_guard_test.rb:42-46).git ls-filesblind spot is the root cause; the allowlist edit was a workaround.Resolution
Done: obsolete: the fork-guard test was deleted under ADR-0224, which forbids structure tests; no guard to fix
Evidence: commit
443f7c6fdeleted plugins/os-sdlc/tests/own_binary_fork_guard_test.rb; no replacement exists on mainFollow-ups: none