Run cc-architect spawning tests in-process #1336
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#1336
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
Four cc-architect test files under
plugins/cc-architect/scripts/plugin_config/test/start the script withOpen3.capture3('ruby', SCRIPT_PATH, ...):test_entry_point(7 tests),test_validate_entry_point(3),test_cli_invocation_seam(7), andtest_runtime_verifier(8).Approach
Call
PluginConfig::Cli.run(argv, Invocation.for_test)in place of each spawn.Behavior is unchanged. The existing suite is the proof. Each bin or hook keeps exactly one smoke test, in a file named
<bin>_bin_smoke_test.rb. The smoke test runs it as a subprocess to prove the plain-ruby boot and the shebang. Calls to external tools (git, rubocop) stay as subprocess calls.Required work:
PluginConfig::Cli.run(argv, Invocation.for_test).<script>_bin_smoke_test.rbfile per script.SCRIPT_PATHinplugins/cc-architect/scripts/plugin_config/test/test_entry_point.rbAcceptance criteria
*_bin_smoke_test.rbfile starts a pluginbin/orhooks/script as a subprocess.--helpor on empty valid input.Owner sketch
PluginConfig::Cli.run(argv, Invocation.for_test).Origin
ruby plugins/os-sdlc/tests/all.rbtook 65.8 s against a 60 s budget. About 70% of summed test time is tests that start our own bin scripts with Open3.jared referenced this issue2026-10-25 19:49:02 +00:00
Work started in /os-sdlc:fast-batch fast-batch-15, branch fast-batch-15.
Resolution
Done: cc-architect plugin_config and validate_marketplaces tests call their entries in-process; one smoke test per script.
Evidence: Finding H
daaadaa3; fix R13cc456125. Suites atc9f5db8f: os-sdlc 2701 runs 0 failures (53.1 s, budget 60 s), os 47, os-backlog 327, os-aidd-lint 491, os-adr 111, os-me 399, cc-architect plugin_config 106, all green. Merged to mainc9f5db8f, pushedbe5d2c5d. Batch state and rulings: docs/crc/os-sdlc/fast-batch-15/.Follow-ups: #1337 (cop; it must decide the cc-architect smoke-file naming test_*_bin_smoke.rb). Dropped: the ModuleLength [114/100] on the moved ValidateMarketplaces module (ruling R23: code move only).