boatyard 0.7.2.dev208__tar.gz → 0.7.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/PKG-INFO +1 -1
  2. boatyard-0.7.3/design/hack-cross-bundle-dns.md +67 -0
  3. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/pyproject.toml +1 -1
  4. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/up.py +31 -10
  5. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_assembly.py +6 -1
  6. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_compose.py +38 -2
  7. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/.gitattributes +0 -0
  8. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/.github/workflows/cleanup-pr-releases.yml +0 -0
  9. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/.github/workflows/integrate.yml +0 -0
  10. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/.github/workflows/merge-gate.yml +0 -0
  11. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/.github/workflows/release.yml +0 -0
  12. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/.gitignore +0 -0
  13. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/.python-version +0 -0
  14. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/AGENTS.md +0 -0
  15. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/CLAUDE.md +0 -0
  16. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/LICENSE +0 -0
  17. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/NOTICE +0 -0
  18. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/README.md +0 -0
  19. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/closeout.md +0 -0
  20. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/design/AGENTS.md +0 -0
  21. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/design/CLAUDE.md +0 -0
  22. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/design/adoption-semver-wave.md +0 -0
  23. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/design/apt-hermeticity.md +0 -0
  24. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/design/dev-overlay.md +0 -0
  25. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/design/gpu-template-collapse.md +0 -0
  26. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/design/mirror-digest-retention.md +0 -0
  27. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/design/precision-attribution.md +0 -0
  28. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/design/semver-image-bundle-lines.md +0 -0
  29. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/publish.yml +0 -0
  30. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/ruff.base.toml +0 -0
  31. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/ruff.toml +0 -0
  32. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/scripts/preflight.py +0 -0
  33. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/__init__.py +0 -0
  34. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/build.py +0 -0
  35. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/cli.py +0 -0
  36. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/compose.py +0 -0
  37. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/crane.py +0 -0
  38. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/lock.py +0 -0
  39. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/markers.py +0 -0
  40. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/models/__init__.py +0 -0
  41. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/models/config_file.py +0 -0
  42. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/models/image.py +0 -0
  43. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/models/k8s_pins.py +0 -0
  44. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/models/lock_file.py +0 -0
  45. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/models/pyproject.py +0 -0
  46. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/models/values_file.py +0 -0
  47. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/models/workload.py +0 -0
  48. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/paths.py +0 -0
  49. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/publish.py +0 -0
  50. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/py.typed +0 -0
  51. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/resolve.py +0 -0
  52. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score.py +0 -0
  53. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score_compose.py +0 -0
  54. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score_generate.py +0 -0
  55. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score_k8s.py +0 -0
  56. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score_patch_templates/gpu-cuda.tpl +0 -0
  57. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score_patch_templates/gpu-pod.tpl +0 -0
  58. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score_patch_templates/gpu-rocm.tpl +0 -0
  59. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score_patch_templates/probe-adapter-healthchecks.tpl +0 -0
  60. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score_patch_templates/restart.tpl +0 -0
  61. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/score_patch_templates/scale-to-zero.tpl +0 -0
  62. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/temp.py +0 -0
  63. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/__init__.py +0 -0
  64. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/build.py +0 -0
  65. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/bump.py +0 -0
  66. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/down.py +0 -0
  67. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/lock.py +0 -0
  68. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/matrix.py +0 -0
  69. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/mirror.py +0 -0
  70. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/publish.py +0 -0
  71. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/score.py +0 -0
  72. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/verbs/tree_tags.py +0 -0
  73. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/src/boatyard/yaml.py +0 -0
  74. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/conftest.py +0 -0
  75. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_build_docker.py +0 -0
  76. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_bump.py +0 -0
  77. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_config.py +0 -0
  78. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_daemon_gc.py +0 -0
  79. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_image_builds.py +0 -0
  80. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_lock.py +0 -0
  81. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_markers.py +0 -0
  82. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_matrix.py +0 -0
  83. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_mirror.py +0 -0
  84. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_provisioners.py +0 -0
  85. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_publish_compose.py +0 -0
  86. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_score_generate.py +0 -0
  87. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_tree_tags.py +0 -0
  88. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/tests/test_values.py +0 -0
  89. {boatyard-0.7.2.dev208 → boatyard-0.7.3}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: boatyard
3
- Version: 0.7.2.dev208
3
+ Version: 0.7.3
4
4
  Summary: Deploy-files definition language and compiler, plus a runtime for the compose target
5
5
  License-File: LICENSE
6
6
  License-File: NOTICE
@@ -0,0 +1,67 @@
1
+ # Cross-bundle network bridge hack
2
+
3
+ Status: deployable hack on `hack-cross-bundle-dns` (based on `boatyard-v0.7.2`); superseded
4
+ by the multi-project assembly ADR on `refactor-even-more` — delete this branch and its
5
+ runbook when that lands.
6
+
7
+ ## Situation
8
+
9
+ Since per-bundle networks, every bundle sits on its own compose network. The rathole tunnel
10
+ container must dial two other bundles' services by bare docker DNS name — `edge:8443`
11
+ (works: the edge service joins every bundle net) and `livekit:6178` / `livekit:5957`
12
+ (broken: no bridge exists). The old workaround put deploy-host addresses into
13
+ `boatyard.values.yaml` (`TUNNEL_SIGNALING_ADDR` / `TUNNEL_RTC_ADDR`), which requires
14
+ introspecting the deploy host's IP and breaks the moment the host's address changes.
15
+
16
+ ## Mechanism
17
+
18
+ After `up -d` returns, `bridge_project_networks` in `verbs/up.py` attaches every running
19
+ project container to every project network (`docker network connect`, discovered via the
20
+ `com.docker.compose.project` label; already-attached containers are skipped). Bare service
21
+ aliases then resolve assembly-wide, so the rathole client dials `livekit` directly
22
+ container-to-container — no host addresses, no published-port hairpin. The bridge re-runs
23
+ on every `up` (recreated containers start bare). `--attached` mode still hands off to
24
+ compose in the foreground and gets no bridge.
25
+
26
+ ## Deploy recipe
27
+
28
+ On the deploy host, with Make-it-Sing and a boatyard clone side by side:
29
+
30
+ 1. In boatyard: `git checkout hack-cross-bundle-dns`.
31
+ 2. In Make-it-Sing's `boatyard.values.yaml`, set the tunnel dial addresses to the constants
32
+ (they are the only machine-specific spellings this replaces):
33
+
34
+ ```yaml
35
+ TUNNEL_GATEWAY_ADDR: edge:8443
36
+ TUNNEL_SIGNALING_ADDR: livekit:6178
37
+ TUNNEL_RTC_ADDR: livekit:5957
38
+ ```
39
+
40
+ 3. Bring the stack up with the hack branch's boatyard (it resolves the consumer root from
41
+ the working directory, so run it from Make-it-Sing):
42
+
43
+ ```
44
+ cd Make-it-Sing
45
+ uv run --project ../boatyard boatyard up
46
+ ```
47
+
48
+ `LIVEKIT_SIGNALING_IP` / `LIVEKIT_RTC_IP` stay as the public face (relay FIP, or the LAN IP
49
+ the devices bake in) — those advertise where clients connect, not where the stack runs.
50
+
51
+ `down` is unchanged; compose removes the bridge attachments with the containers.
52
+
53
+ ## Verify
54
+
55
+ - `docker inspect <rathole-container> --format '{{range $k, $v := .NetworkSettings.Networks}}{{$k}} {{end}}'`
56
+ lists every project network.
57
+ - `curl http://<public_host>:6178/` answers (LiveKit HTTP).
58
+ - `curl -X POST http://<public_host>:<gateway_port>/livekit-token/connection-details \
59
+ -H 'Content-Type: application/json' -d '{"participant_identity":"check","room_name":"check"}'`
60
+ returns connection details with `server_url`.
61
+
62
+ ## Known sharp edges
63
+
64
+ - A container that exits between the `docker ps` snapshot and its connect makes `up` fail
65
+ loudly after the stack is already up; rerun `up`.
66
+ - Duplicate bare names across bundles become resolvable-everywhere ambiguity (docker DNS
67
+ round-robins); the tunnel is the only cross-bundle bare dialer today.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "boatyard"
3
- version = "0.7.2.dev208"
3
+ version = "0.7.3"
4
4
  description = "Deploy-files definition language and compiler, plus a runtime for the compose target"
5
5
  requires-python = ">=3.13"
6
6
  dependencies = [
@@ -4,12 +4,13 @@ from collections.abc import Generator, Mapping
4
4
  from contextlib import ExitStack, contextmanager
5
5
  from itertools import groupby
6
6
  from pathlib import Path
7
+ from shlex import quote
7
8
  from tempfile import NamedTemporaryFile
8
9
  from typing import Annotated
9
10
 
10
11
  import typer
11
12
  import yaml
12
- from bashrun.bash import bash_handoff
13
+ from bashrun.bash import bash, bash_handoff, bash_output
13
14
 
14
15
  from boatyard.build import run_build
15
16
  from boatyard.compose import compose_command
@@ -152,16 +153,18 @@ def up(
152
153
  run_build(config=config)
153
154
 
154
155
  # Hand off to docker compose
155
- bash_handoff(
156
- compose_command(
157
- root,
158
- materialized_compose_file,
159
- "up",
160
- *["--pull", "missing", *(["--quiet-pull"] if quiet_pull else []), *(["-d"] if not attached else [])],
161
- env_file=materialized_env_file,
162
- slot_names=list(plan.env),
163
- )
156
+ command = compose_command(
157
+ root,
158
+ materialized_compose_file,
159
+ "up",
160
+ *["--pull", "missing", *(["--quiet-pull"] if quiet_pull else []), *(["-d"] if not attached else [])],
161
+ env_file=materialized_env_file,
162
+ slot_names=list(plan.env),
164
163
  )
164
+ if attached:
165
+ bash_handoff(command)
166
+ bash(command)
167
+ bridge_project_networks(config.project_name)
165
168
 
166
169
 
167
170
  def render_env_entries(entries: Mapping[str, str]) -> str:
@@ -169,6 +172,24 @@ def render_env_entries(entries: Mapping[str, str]) -> str:
169
172
  return "".join(f"{name}={reference}\n" for name, reference in sorted(entries.items()))
170
173
 
171
174
 
175
+ def bridge_project_networks(project: str) -> None:
176
+ # Every bundle sits on its own network, so a container dialing another bundle's bare
177
+ # service alias (the tunnel dials livekit) cannot resolve it; attach every running
178
+ # project container to every project network so the bare aliases resolve assembly-wide.
179
+ listing = "docker network ls --filter label=com.docker.compose.project=" + project + " --format {{.Name}}"
180
+ networks = bash_output(listing).split()
181
+ if not networks:
182
+ return
183
+ running = "docker ps --filter label=com.docker.compose.project=" + project + " --format {{.Names}}"
184
+ containers = bash_output(running).split()
185
+ for network in networks:
186
+ members = "docker network inspect " + network + " --format " + quote("{{range .Containers}}{{.Name}} {{end}}")
187
+ member_names = set(bash_output(members).split())
188
+ for container in containers:
189
+ if container not in member_names:
190
+ bash("docker network connect " + network + " " + container)
191
+
192
+
172
193
  @contextmanager
173
194
  def lock_env_unwind(path: Path) -> Generator[None]:
174
195
  # Keep the env file on failure echoing only its path, since contents may carry secrets, and unlink it on success
@@ -24,6 +24,10 @@ ASSEMBLY_ARGUMENT_PATTERN = re.compile(r"-f (\S*devkit-assembly-\S+\.yaml)")
24
24
  runner = CliRunner()
25
25
 
26
26
 
27
+ def _silent_bridge(_project: str) -> None:
28
+ return None
29
+
30
+
27
31
  class AssemblyCapture:
28
32
  def __init__(self) -> None:
29
33
  self.document: dict[str, Any] | None = None
@@ -107,7 +111,8 @@ def _assembly_document(
107
111
  ) -> dict[str, Any]:
108
112
  _write_edge_tree(tmp_path, monkeypatch, routes, auth=auth, gateway=gateway, public_url=public_url)
109
113
  capture = AssemblyCapture()
110
- monkeypatch.setattr(up, "bash_handoff", capture.run)
114
+ monkeypatch.setattr(up, "bash", capture.run)
115
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
111
116
 
112
117
  result = runner.invoke(app, ["up"])
113
118
 
@@ -289,6 +289,10 @@ def _silent_handoff(_command: str) -> None:
289
289
  return None
290
290
 
291
291
 
292
+ def _silent_bridge(_project: str) -> None:
293
+ return None
294
+
295
+
292
296
  def _producer_tree_sha(self: Image, root: Path) -> str:
293
297
  return "tree-producer" if "producer" in root.parts else "tree-consumer"
294
298
 
@@ -412,7 +416,9 @@ class TestSelectionLaw:
412
416
  ) -> AssemblyRecorder:
413
417
  _write_consumer_tree(tmp_path, bundles=bundles)
414
418
  recorder = AssemblyRecorder()
419
+ monkeypatch.setattr(up, "bash", recorder.run)
415
420
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
421
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
416
422
  monkeypatch.chdir(tmp_path)
417
423
  return recorder
418
424
 
@@ -449,7 +455,9 @@ class TestSelectionLaw:
449
455
  _write_workload(tmp_path, "edge.yaml", "edge")
450
456
  _write_values_file(tmp_path, {"bundles": ["one-cuda", "two-cuda"]})
451
457
  recorder = AssemblyRecorder()
458
+ monkeypatch.setattr(up, "bash", recorder.run)
452
459
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
460
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
453
461
  monkeypatch.chdir(tmp_path)
454
462
 
455
463
  result = runner.invoke(app, ["up"])
@@ -482,7 +490,9 @@ class TestSelectionLaw:
482
490
  _write_lock(tmp_path, bundles={"LIVEKIT_BUNDLE": LIVEKIT_PINNED})
483
491
  _write_values_file(tmp_path, {})
484
492
  recorder = AssemblyRecorder()
493
+ monkeypatch.setattr(up, "bash", recorder.run)
485
494
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
495
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
486
496
  monkeypatch.chdir(tmp_path)
487
497
 
488
498
  result = runner.invoke(app, ["up"])
@@ -518,7 +528,9 @@ class TestSelectionLaw:
518
528
  _write_workload(tmp_path, "api.yaml", "api")
519
529
  _write_values_file(tmp_path, {})
520
530
  recorder = AssemblyRecorder()
531
+ monkeypatch.setattr(up, "bash", recorder.run)
521
532
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
533
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
522
534
  monkeypatch.chdir(tmp_path)
523
535
 
524
536
  result = runner.invoke(app, ["up"])
@@ -615,7 +627,9 @@ class TestUpMaterialization:
615
627
  ):
616
628
  _write_consumer_tree(tmp_path)
617
629
  recorder = AssemblyRecorder()
630
+ monkeypatch.setattr(up, "bash", recorder.run)
618
631
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
632
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
619
633
  monkeypatch.chdir(tmp_path)
620
634
 
621
635
  result = runner.invoke(app, ["up"])
@@ -658,7 +672,9 @@ class TestUpMaterialization:
658
672
  ):
659
673
  _write_consumer_tree(tmp_path, bundles="placeframe-cuda")
660
674
  recorder = AssemblyRecorder()
675
+ monkeypatch.setattr(up, "bash", recorder.run)
661
676
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
677
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
662
678
  monkeypatch.chdir(tmp_path)
663
679
 
664
680
  result = runner.invoke(app, ["up"])
@@ -673,7 +689,9 @@ class TestUpMaterialization:
673
689
  def test_typed_port_overrides_win_over_the_config_defaults(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
674
690
  _write_consumer_tree(tmp_path, extra_values={"gateway": 18443, "ports": {"livekit": 16178}})
675
691
  recorder = AssemblyRecorder()
692
+ monkeypatch.setattr(up, "bash", recorder.run)
676
693
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
694
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
677
695
  monkeypatch.chdir(tmp_path)
678
696
 
679
697
  result = runner.invoke(app, ["up"])
@@ -716,7 +734,9 @@ class TestUpMaterialization:
716
734
  {"bundles": ["placeframe-rocm"], "ports": {"placeframe-cuda": 19000, "placeframe-rocm": 19777}},
717
735
  )
718
736
  recorder = AssemblyRecorder()
737
+ monkeypatch.setattr(up, "bash", recorder.run)
719
738
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
739
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
720
740
  monkeypatch.chdir(tmp_path)
721
741
 
722
742
  result = runner.invoke(app, ["up"])
@@ -762,7 +782,8 @@ class TestUpMaterialization:
762
782
 
763
783
  class TestUpValidation:
764
784
  def _invoke_up(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
765
- monkeypatch.setattr(up, "bash_handoff", _silent_handoff)
785
+ monkeypatch.setattr(up, "bash", _silent_handoff)
786
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
766
787
  monkeypatch.chdir(tmp_path)
767
788
  return runner.invoke(app, ["up"])
768
789
 
@@ -917,7 +938,9 @@ class TestSharedNames:
917
938
  _write_workload(tmp_path, "api.yaml", "api")
918
939
  _write_values_file(tmp_path, {"bundles": ["left-a", "right-b"]})
919
940
  recorder = AssemblyRecorder()
941
+ monkeypatch.setattr(up, "bash", recorder.run)
920
942
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
943
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
921
944
  monkeypatch.chdir(tmp_path)
922
945
 
923
946
  result = runner.invoke(app, ["up"])
@@ -1051,7 +1074,9 @@ class TestLockRequirement:
1051
1074
  _write_workload(tmp_path, "api.yaml", "api")
1052
1075
  _write_values_file(tmp_path, {"bundles": ["apps-core"]})
1053
1076
  monkeypatch.chdir(tmp_path)
1077
+ monkeypatch.setattr(up, "bash", HandoffRecorder().run)
1054
1078
  monkeypatch.setattr(up, "bash_handoff", HandoffRecorder().run)
1079
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
1055
1080
 
1056
1081
  result = runner.invoke(app, ["up"])
1057
1082
 
@@ -1065,7 +1090,9 @@ class TestLockEnvSynthesis:
1065
1090
  ALPINE_MANIFEST = MIRROR_PREFIX + "/docker.io/library/alpine:3.20@" + PLATFORM_DIGEST
1066
1091
 
1067
1092
  def _invoke_up_with_lock(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, recorder: HandoffRecorder):
1093
+ monkeypatch.setattr(up, "bash", recorder.run)
1068
1094
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
1095
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
1069
1096
  monkeypatch.chdir(tmp_path)
1070
1097
  return runner.invoke(app, ["up"])
1071
1098
 
@@ -1250,7 +1277,8 @@ class TestLockEnvSynthesis:
1250
1277
  tmp_path,
1251
1278
  bundles={"TUNNEL_BUNDLE": {"reference": LIVEKIT_PINNED, "slots": {"SECRET_TOKEN": {"required": True}}}},
1252
1279
  )
1253
- monkeypatch.setattr(up, "bash_handoff", _failing_handoff)
1280
+ monkeypatch.setattr(up, "bash", _failing_handoff)
1281
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
1254
1282
  monkeypatch.chdir(tmp_path)
1255
1283
 
1256
1284
  result = runner.invoke(app, ["up"])
@@ -1290,7 +1318,9 @@ class TestBundleLockEnforcement:
1290
1318
  relocked["TUNNEL_BUNDLE"] = f"ghcr.io/org/livekit:{LIVEKIT_SHA_TAG}@{PLATFORM_DIGEST}"
1291
1319
  _write_lock(tmp_path, entries={}, bundles=relocked)
1292
1320
  recorder = AssemblyRecorder()
1321
+ monkeypatch.setattr(up, "bash", recorder.run)
1293
1322
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
1323
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
1294
1324
  monkeypatch.chdir(tmp_path)
1295
1325
 
1296
1326
  result = runner.invoke(app, ["up"])
@@ -1306,7 +1336,9 @@ OVERRIDE_PATH = "../producer/stack/generated/compose/compose.placeframe-cuda.yam
1306
1336
  class TestBundleOverrides:
1307
1337
  def _invoke_up(self, monkeypatch: pytest.MonkeyPatch, root: Path) -> ProducerEnvRecorder:
1308
1338
  recorder = ProducerEnvRecorder()
1339
+ monkeypatch.setattr(up, "bash", recorder.run)
1309
1340
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
1341
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
1310
1342
  monkeypatch.chdir(root)
1311
1343
  return recorder
1312
1344
 
@@ -1658,7 +1690,9 @@ class TestValuesFileLaw:
1658
1690
  },
1659
1691
  )
1660
1692
  recorder = HandoffRecorder()
1693
+ monkeypatch.setattr(up, "bash", recorder.run)
1661
1694
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
1695
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
1662
1696
  monkeypatch.chdir(tmp_path)
1663
1697
 
1664
1698
  result = runner.invoke(app, ["up"])
@@ -1678,7 +1712,9 @@ class TestValuesFileLaw:
1678
1712
  )
1679
1713
  monkeypatch.setenv("LIVEKIT_TOKEN", "shell-value")
1680
1714
  recorder = LockEnvRecorder()
1715
+ monkeypatch.setattr(up, "bash", recorder.run)
1681
1716
  monkeypatch.setattr(up, "bash_handoff", recorder.run)
1717
+ monkeypatch.setattr(up, "bridge_project_networks", _silent_bridge)
1682
1718
  monkeypatch.chdir(tmp_path)
1683
1719
 
1684
1720
  result = runner.invoke(app, ["up"])
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes