1.4 KiB
Corporate migration noninteractive stdin
Intent and acceptance
CI migration transport must not consume the controlling terminal when running in a background job-control group. No-payload Docker operations must receive EOF via DEVNULL; SQL payloads, including empty bytes, must retain subprocess input piping. Full backup restore must continue streaming source stdout to restore stdin. Preserve timeouts, sanitised errors, fixed Stage target, backup and migration guards.
Regression acceptance: explicit subprocess stdin contract tests fail on base and pass after the fix; existing transport and real PostgreSQL transaction/restore tests remain green where local tools are available. Unit doubles verify transport arguments, not live Docker or Stage recovery.
Boundaries
Only scripts/corporate-stage-migrate.py, scripts/corporate-stage-migrate-test.py and this feature's Markdown are owned. No push, deployment, cron changes, existing process manipulation or lock deletion; run1343/task1586 remains owner-controlled.
Evidence and decisions
Base: 90dcec413d. Diagnostic: /opt/data/cache/scratch/stage-90dcec4-receipt.json records stopped Python/Docker with PTY stdin, not a captured originating signal. Source confirms docker(input=None) inherited stdin in no-payload stage exec -i. Explicit subprocess contract regression is authorised instead of a PTY integration fixture. No unresolved business decisions.