[tech-debt] Rename Docker network molecule-monorepo-net -> molecule-core-net (post-internal#71 cleanup) #93
Loading…
Reference in New Issue
Block a user
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?
Summary
The Docker network used across docker-compose.yml + provisioner code + scripts is named
molecule-monorepo-net. It's a holdover from when the repo was calledmolecule-monorepo; the canonical Gitea repo ismolecule-core. Rename tomolecule-core-netto match.Surface
grep -rn 'molecule-monorepo-net'across the repo finds 19 references:workspace-server/internal/provisioner/provisioner.go:70—DefaultNetwork = "molecule-monorepo-net"docker-compose.yml— 9networks:entries + 1 network definitiondocker-compose.infra.yml:122— network definitioninfra/scripts/setup.sh:8—docker network create molecule-monorepo-netscripts/nuke-and-rebuild.sh:27—docker network rm molecule-monorepo-networkspace-server/internal/handlers/workspace_provision.go:176workspace-server/internal/handlers/transcript.go:137workspace-server/internal/provisioner/provisioner.go:388tools/check-template-parity.sh:16scripts/test-all.sh:2Impact
Discovered:
E2E API Smoke Testjob on internal#71 migration PRs (e.g., core#82e353b54a) fails withnetwork molecule-monorepo-net not foundwhen the runner hasn't pre-created the network. Same failure reproduces on baselinemain— so this is not a regression of internal#71, just a pre-existing surface that the migration sweep made visible.The CI job recovers if the network exists from a previous test run; fails after a clean runner restart. That's why the failure is intermittent: it depends on whether someone (or a previous job) created the network first.
Migration sequence (load-bearing, must coordinate with running infrastructure)
The network is shared by every container that joins it. Renaming requires:
docker network create molecule-core-neton every runner host that uses the old network. New name coexists with old.provisioner.go:DefaultNetwork = "molecule-core-net"docker-compose.yml,docker-compose.infra.yml: replacemolecule-monorepo-netwithmolecule-core-netinfra/scripts/setup.sh: create both networks during a transition windownuke-and-rebuild.sh: rm both networksmolecule-core-net; existing long-lived containers stay onmolecule-monorepo-net.molecule-monorepo-net,docker network rm molecule-monorepo-net.This is staged because forcing every container off the old network at once would interrupt running workspaces.
Class
Naming alignment / tech-debt. Adjacent to internal#71 but out of scope for that migration (which deliberately scoped to Go module paths, not Docker infrastructure naming).
Acceptance criteria
grep -rn 'molecule-monorepo-net'returns zero matches in code/configs/scripts/comments.docker network lson every runner host showsmolecule-core-netand nomolecule-monorepo-netafter the transition window.Out of scope
~/Documents/GitHub/molecule-monorepoto~/Documents/GitHub/molecule-core— purely cosmetic on contributors' boxes; track separately if at all.molecule-monorepo-canvaspackage name incanvas/package.json— already renamed in molecule-core#82.Reporter
Discovered while watching CI on internal#71 migration PRs. 2026-05-08.