macos-container: gateway supervisor spawned via removed /app/gateway_init.py; launch fails with misleading CA error #427
Reference in New Issue
Block a user
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?
Symptom
bot-bottle starton the macos-container backend fails with:The error points at TLS/certs, which is misleading — the CA is a downstream symptom.
Cause
bot_bottle/backend/macos_container/infra.pybuilds the infra container's init script and spawns the supervisor aspython3 /app/gateway_init.py.5ad3449movedbot_bottlefrom flat files under/appinto a pip-installed package, so that file does not exist. The container log shows the real failure:The supervisor never starts → mitmdump never runs → the CA is never generated →
ca_cert_pem()times out.Why it survived
127ba49fixed the identical defect in the firecracker backend, because the KVM runner (PR #349 /c193b04) runs that backend's integration suite. Nothing exercisesmacos_containerin CI — see #426.The unit test did not catch it either:
test_macos_infraasserted the substring"gateway_init.py", which the broken path satisfies. The firecracker twin was tightened to the module form in127ba49; the macOS one was missed.Fix
Spawn via the installed package (
python3 -m bot_bottle.gateway_init), matching127ba49, and tighten the unit assertion to the module form.Related
main