PRD: macOS Container backend - Part II (launch step) #231
Reference in New Issue
Block a user
Delete Branch "feat/macos-container-launch"
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?
Stacked on PR #229.
Implements the macOS Container launch path using the proxy-env solution from issue #230:
container inspectVerification:
python3 -m compileall -q bot_bottle tests/unit/test_macos_container_launch.py tests/unit/test_macos_container_util.py tests/unit/test_macos_container_cleanup.pypython3 -m unittest discover tests/unitnpx pyright .git diff --checkmacOS Container backend launch step - Part IIto PRD: macOS Container backend launch step - Part IIPRD: macOS Container backend launch step - Part IIto PRD: macOS Container backend - Part II (launch step)@@ -20,2 +36,4 @@_REPO_DIR = str(Path(__file__).resolve().parent.parent.parent.parent)_SIDECAR_SLEEP_SECONDS = "2147483647"Why this value/what is this used for?
Re: #231 (comment)
That value is just a long-lived sleep duration used to keep the detached agent container alive after launch so later
container execcalls have a target.2147483647is the max signed 32-bit integer in seconds, so effectively "sleep forever" without relying onsleep infinitybeing accepted everywhere.You are right to question it: the constant name is wrong.
_SIDECAR_SLEEP_SECONDSis used for the agent container, not the sidecar. It should be renamed to something like_CONTAINER_SLEEP_SECONDSor_AGENT_SLEEP_SECONDSin the stacked cleanup/follow-up.