refactor(backend): verb-first names for the provisioning modules

Rename the module files to match their functions' verb-first names:
`bottle_provision.py` -> `provision_bottle.py`,
`gateway_provision.py` -> `provision_gateway.py` (and the test file to match).
Imports, docstrings, and the git_gate/service.py pointer updated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-25 14:13:54 -04:00
parent 96ab8e15a2
commit 07c975636d
12 changed files with 12 additions and 12 deletions
@@ -24,7 +24,7 @@ from ...gateway import GATEWAY_NETWORK
from .infra import INFRA_NAME, DockerInfraService
from ...orchestrator.store.secret_store import ENV_VAR_SECRET_NAME
from ...orchestrator.reprovision import reprovision_bottles
from ..bottle_provision import deprovision_bottle, provision_bottle
from ..provision_bottle import deprovision_bottle, provision_bottle
from .gateway_transport import DockerGatewayTransport
from .gateway_net import next_free_ip
@@ -2,7 +2,7 @@
How the launcher stages files + runs commands in the running gateway container:
`docker exec` / `docker cp` over the docker socket. The backend-neutral
provisioning logic that drives it lives in `backend.gateway_provision`.
provisioning logic that drives it lives in `backend.provision_gateway`.
"""
from __future__ import annotations
@@ -40,7 +40,7 @@ from ...orchestrator.lifecycle import (
)
from ...orchestrator.reprovision import reprovision_bottles
from ...orchestrator.store.secret_store import ENV_VAR_SECRET_NAME
from ..bottle_provision import deprovision_bottle, provision_bottle
from ..provision_bottle import deprovision_bottle, provision_bottle
from . import cleanup, infra_vm, util
from .gateway import FirecrackerGateway
@@ -4,7 +4,7 @@
How the launcher stages files + runs commands in the running gateway: the
docker exec/cp equivalents over SSH (dropbear + the stable infra key). The
backend-neutral provisioning logic that drives it lives in
`backend.gateway_provision`.
`backend.provision_gateway`.
"""
from __future__ import annotations
@@ -40,7 +40,7 @@ from ...log import info
from ...orchestrator.client import OrchestratorClient, OrchestratorClientError
from ...orchestrator.reprovision import reprovision_bottles
from ...orchestrator.store.secret_store import ENV_VAR_SECRET_NAME
from ..bottle_provision import deprovision_bottle, provision_bottle
from ..provision_bottle import deprovision_bottle, provision_bottle
from . import util as container_mod
from .enumerate import CONTAINER_NAME_PREFIX, EnumerationError, enumerate_active
from .gateway import GATEWAY_NETWORK
@@ -2,7 +2,7 @@
How the launcher stages files + runs commands in the running gateway container:
the `container` CLI's exec/cp equivalents. The backend-neutral provisioning
logic that drives it lives in `backend.gateway_provision`; Docker uses
logic that drives it lives in `backend.provision_gateway`; Docker uses
`docker exec`/`docker cp` and Firecracker uses SSH.
"""
@@ -4,7 +4,7 @@ Register a bottle with the orchestrator and provision its git-gate state into
the shared gateway (`provision_bottle`), and the inverse teardown
(`deprovision_bottle`). Backend-neutral each backend's consolidated_launch
drives these through its own `GatewayTransport` rather than re-implementing
them. The git-gate half of the work lives in `gateway_provision`.
them. The git-gate half of the work lives in `provision_gateway`.
"""
from __future__ import annotations
@@ -16,7 +16,7 @@ from ..git_gate import GitGatePlan
from ..orchestrator.client import OrchestratorClient, RegisteredBottle
from ..orchestrator.registration import registration_inputs
from ..orchestrator.store.secret_store import new_env_var_secret
from .gateway_provision import GatewayTransport, deprovision_git_gate, provision_git_gate
from .provision_gateway import GatewayTransport, deprovision_git_gate, provision_git_gate
def provision_bottle(