boatyard 0.6.3.dev181__tar.gz → 0.6.4.dev184__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 (81) hide show
  1. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/PKG-INFO +1 -1
  2. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/closeout.md +45 -6
  3. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/pyproject.toml +1 -1
  4. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/dockerfiles.py +14 -3
  5. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_service_builds.py +43 -1
  6. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/.gitattributes +0 -0
  7. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/.github/workflows/cleanup-pr-releases.yml +0 -0
  8. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/.github/workflows/integrate.yml +0 -0
  9. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/.github/workflows/merge-gate.yml +0 -0
  10. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/.github/workflows/release.yml +0 -0
  11. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/.gitignore +0 -0
  12. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/.python-version +0 -0
  13. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/AGENTS.md +0 -0
  14. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/CLAUDE.md +0 -0
  15. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/LICENSE +0 -0
  16. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/NOTICE +0 -0
  17. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/README.md +0 -0
  18. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/design/AGENTS.md +0 -0
  19. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/design/CLAUDE.md +0 -0
  20. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/design/adoption-semver-wave.md +0 -0
  21. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/design/apt-hermeticity.md +0 -0
  22. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/design/dev-overlay.md +0 -0
  23. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/design/gpu-template-collapse.md +0 -0
  24. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/design/mirror-digest-retention.md +0 -0
  25. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/design/precision-attribution.md +0 -0
  26. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/design/semver-image-bundle-lines.md +0 -0
  27. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/publish.yml +0 -0
  28. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/ruff.base.toml +0 -0
  29. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/ruff.toml +0 -0
  30. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/scripts/preflight.py +0 -0
  31. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/__init__.py +0 -0
  32. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/build.py +0 -0
  33. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/cli.py +0 -0
  34. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/compose.py +0 -0
  35. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/config/__init__.py +0 -0
  36. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/config/config.py +0 -0
  37. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/config/lock.py +0 -0
  38. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/config/values.py +0 -0
  39. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/crane.py +0 -0
  40. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/lock.py +0 -0
  41. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/markers.py +0 -0
  42. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/paths.py +0 -0
  43. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/publish.py +0 -0
  44. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/py.typed +0 -0
  45. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/score.py +0 -0
  46. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/score_compose.py +0 -0
  47. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/score_k8s.py +0 -0
  48. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/score_patch_templates/gpu-cuda.tpl +0 -0
  49. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/score_patch_templates/gpu-pod.tpl +0 -0
  50. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/score_patch_templates/gpu-rocm.tpl +0 -0
  51. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/score_patch_templates/probe-adapter-healthchecks.tpl +0 -0
  52. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/score_patch_templates/restart.tpl +0 -0
  53. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/score_patch_templates/scale-to-zero.tpl +0 -0
  54. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/temp.py +0 -0
  55. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/__init__.py +0 -0
  56. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/build.py +0 -0
  57. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/down.py +0 -0
  58. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/lock.py +0 -0
  59. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/matrix.py +0 -0
  60. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/mirror.py +0 -0
  61. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/publish.py +0 -0
  62. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/score.py +0 -0
  63. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/tree_tags.py +0 -0
  64. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/verbs/up.py +0 -0
  65. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/src/boatyard/yaml.py +0 -0
  66. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/conftest.py +0 -0
  67. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_assembly.py +0 -0
  68. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_build_docker.py +0 -0
  69. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_compose.py +0 -0
  70. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_config.py +0 -0
  71. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_daemon_gc.py +0 -0
  72. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_lock.py +0 -0
  73. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_markers.py +0 -0
  74. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_matrix.py +0 -0
  75. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_mirror.py +0 -0
  76. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_provisioners.py +0 -0
  77. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_publish_compose.py +0 -0
  78. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_score_generate.py +0 -0
  79. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_secrets.py +0 -0
  80. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/tests/test_tree_tags.py +0 -0
  81. {boatyard-0.6.3.dev181 → boatyard-0.6.4.dev184}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: boatyard
3
- Version: 0.6.3.dev181
3
+ Version: 0.6.4.dev184
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
@@ -80,6 +80,41 @@ separate commits.
80
80
  Sweep order set (2026-11-06): placeframe, placeframe-capture-tool,
81
81
  lbe-toolkit, then Make-it-Sing (its local checkout needs `git switch
82
82
  compose-bundles` before editing).
83
+ - Placeframe swept (2026-11-06, pushed; PR "Compose bundles" open on its
84
+ `compose-bundles`): repin (`boatyard==0.6.3`, `requires >=0.6.3`, DEP002 for
85
+ the CLI-only dep, pyyaml added for the values-file reads), renames + empty-lock
86
+ relock (platforms amd64, variants `TORCH_DEVICE: [cuda, rocm]`, tunnel ports to
87
+ the mapping form with int literals), the keycloak/ngrok marker→`${NAME}` hole
88
+ flips, ngrok's target `door`→`edge`, preflight onto `boatyard build --targets
89
+ postgres` + `tree-tags postgres` (image-ref and coupling checks die with the
90
+ imports), api_auth/sweep_postprocess onto `yaml.safe_load` (typed via pydantic
91
+ TypeAdapter), both score test modules rewritten to assert the committed
92
+ artifacts (no boatyard imports, no skipif gates), toolkit `uses:` →
93
+ `f2d576a…` (nine refs across four files), the docs flip (six AGENTS files +
94
+ README + secrets/Dockerfile/score-file comments: boatyard names, `uv run
95
+ boatyard <verb>`, values-file spellings, hole→slot, `edge`, no `up --dev` —
96
+ the dev overlay is unbuilt trigger-gated design and the dev-toggles
97
+ annotations ride inert), and one clean-basis regeneration. Before pushing, the
98
+ branch was rebased onto `origin/dev`: the twelve-commit sweep collapsed to
99
+ five (cutover, toolkit bump, docs flip, one `Run generate-score`, tests), the
100
+ pre-sweep old-basis `301b8f09 Run generate-score` dropped (artifacts-only), a
101
+ `sweep-backup` branch held the pre-rebase chain during the rework and may be
102
+ deleted; final tree byte-identical to the pre-rebase tip, and the clean-clone
103
+ `generate-score --check` passes at the new tip. Verified locally: ruff,
104
+ format, basedpyright (the only errors are pre-existing torch-resolution gaps —
105
+ the venv lacks the cuda extra and the sync was deliberately skipped), scripts
106
+ pytest 17, `lock --check`, matrix (three partitions incl. the TORCH_DEVICE
107
+ fans), `publish-compose --plan` (four qualified bundles), lint-workflows at
108
+ `f2d576a`. First Integrate run (42203772626, 2026-11-06): the docker-build leg
109
+ FAILED — operator canceled the run; the failure is undiagnosed. NEXT SESSION
110
+ OPENS HERE: pull the failed docker-build job's log from that run first thing,
111
+ root-cause before touching anything (the regen's tree tags name images CI must
112
+ build; candidates: the variant-fanned build args, the `{uv}`/`{python}`
113
+ templates, the postgres-wrapper preflight leg — but read the log, don't
114
+ guess), fix under direction, re-run CI, and only then continue the sweep —
115
+ placeframe-capture-tool, then lbe-toolkit, then Make-it-Sing (`git switch
116
+ compose-bundles` first). Also unverified locally (needs the cuda sync / CI):
117
+ the full preflight sidecar end-to-end and generate-clients.
83
118
  - The values-file session (2026-11-04, battery green) landed atop Work 1 and
84
119
  rewrote the consumer surface: `.env` is dead — `boatyard.values.yaml`
85
120
  (gitignored, typed; `ConfigValues` in `values_file.py`) is the only
@@ -459,9 +494,7 @@ the CI-green verify), fixed and released as `0.6.1`:
459
494
  environment. Rider: compose-only runs still install score-k8s + helm.
460
495
 
461
496
  Found in the placeframe sweep (2026-11-06), fixed on `dev` (full preflight
462
- green), released as `0.6.2`; the wave's pin target and `requires:` floor
463
- become `0.6.2` (infra-rathole's landed `==0.6.1` pin and `>=0.6.1` floor
464
- bump in passing when next touched):
497
+ green), released as `0.6.2`:
465
498
  - `PortOrSlot` was string-typed, so a natural YAML int port
466
499
  (`published: 4040`) refused with a coercion error and only the quoted
467
500
  digit-string loaded. Literal ports are now int-typed (strict; digit strings
@@ -470,8 +503,9 @@ bump in passing when next touched):
470
503
  ports; unswept configs flip in their own sweeps.
471
504
 
472
505
  Found in the placeframe sweep (2026-11-06), fixed on `dev` (full preflight
473
- green), unreleased — rides the same release as the port fix if it hasn't
474
- cut yet, else the next:
506
+ green), released as `0.6.3` together with the port fix; the wave's pin
507
+ target and `requires:` floor are `0.6.3` from here (infra-rathole's landed
508
+ `==0.6.1` pin and `>=0.6.1` floor bump in passing when next touched):
475
509
  - `render_score` expanded workload `${SHA}` slots in-process but never
476
510
  exported the values to the score tool subprocess, so provisioner templates
477
511
  reading `{{ env "AUTH_INITIALIZER_SHA" }}` (placeframe carries fifteen
@@ -497,7 +531,12 @@ repo with one. The Make-it-Sing phase must watch the rathole bundle's
497
531
  default local addrs (`gateway:8443`, `livekit:6178`): they now sit on the
498
532
  bundle's private network, where consumer service names may not resolve —
499
533
  its `up` assembly (the path-override verify) surfaces whether the
500
- `TUNNEL_*_ADDR` slots need explicit values.
534
+ `TUNNEL_*_ADDR` slots need explicit values. Placeframe added: its checkout
535
+ carries ignored dirt under the `.dockerignore` allowlist (`__pycache__`,
536
+ `egg-info/`, the vendored deep-image-retrieval `.venv`) and dirt hashes, so
537
+ committed regenerations must mint from a clean clone of the branch tip — a
538
+ dirty-tree regen commits machine-local tags and fails CI's
539
+ `generate-score --check` (recorded in placeframe's `stack/AGENTS.md`).
501
540
 
502
541
  Common to all five, order within a repo code → lockfiles → prose:
503
542
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "boatyard"
3
- version = "0.6.3.dev181"
3
+ version = "0.6.4.dev184"
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 = [
@@ -153,13 +153,24 @@ def compute_service_shas(repo_root: Path, service_builds: dict[str, ServiceBuild
153
153
  )
154
154
  includes.append(path)
155
155
 
156
- # Collect allowlisted files
157
- allowed = [
156
+ # Collect allowlisted files present on disk
157
+ disk_files = [
158
158
  path
159
159
  for path in (entry.relative_to(repo_root).as_posix() for entry in repo_root.rglob("*") if entry.is_file())
160
160
  if any(path == include or path.startswith(include + "/") for include in includes)
161
161
  ]
162
162
 
163
+ # Keep only git-visible files (tracked and untracked-not-ignored); ignored files never hash.
164
+ visible = set(
165
+ bash_output(
166
+ "git -c core.excludesFile=/dev/null ls-files --cached --others --exclude-standard -z",
167
+ cwd=repo_root,
168
+ env={"GIT_CONFIG_NOSYSTEM": "1"},
169
+ ).split("\0")
170
+ )
171
+
172
+ allowed = [path for path in disk_files if path in visible]
173
+
163
174
  # Partition into shared and per-service paths, dropping workload-root files owned by no service.
164
175
  shared_paths = [path for path in allowed if not path.startswith(workload_prefix)]
165
176
  per_service = {d: [p for p in allowed if p.startswith(d + "/")] for d in service_dirs}
@@ -168,7 +179,7 @@ def compute_service_shas(repo_root: Path, service_builds: dict[str, ServiceBuild
168
179
  for service_dir in sorted(service_dirs):
169
180
  with TemporaryDirectory() as tmpdir:
170
181
  index_env = {"GIT_INDEX_FILE": str(Path(tmpdir) / "index")}
171
- # Conversion pinned off so blobs hash the raw disk bytes the build compiles.
182
+ # Conversion pinned off so blobs hash the raw on-disk bytes; git derives modes and symlinks from disk.
172
183
  bash(
173
184
  "git -c core.autocrlf=false update-index --add --stdin",
174
185
  cwd=repo_root,
@@ -305,6 +305,40 @@ class TestComputeServiceShas:
305
305
  assert shas_before["APP_SHA"] != shas_after["APP_SHA"]
306
306
  assert shas_before["WORKER_SHA"] == shas_after["WORKER_SHA"]
307
307
 
308
+ def test_ignored_files_under_the_allowlist_never_hash(self, repo: Path):
309
+ builds = _service_builds("workloads/app/Dockerfile", "workloads/worker/Dockerfile")
310
+ (repo / ".gitignore").write_text("__pycache__/\n")
311
+ shas_before = compute_service_shas(repo, builds)
312
+
313
+ (repo / "workloads" / "app" / "__pycache__").mkdir()
314
+ (repo / "workloads" / "app" / "__pycache__" / "main.cpython-313.pyc").write_text("machine-local bytes")
315
+
316
+ assert compute_service_shas(repo, builds) == shas_before
317
+
318
+ def test_staged_and_unstaged_edits_hash_identically(self, repo: Path):
319
+ builds = _service_builds("workloads/app/Dockerfile", "workloads/worker/Dockerfile")
320
+ (repo / "workloads" / "app" / "main.py").write_text("print('edited')")
321
+ shas_unstaged = compute_service_shas(repo, builds)
322
+
323
+ subprocess.run(["git", "add", "-A"], cwd=str(repo), capture_output=True, check=True)
324
+
325
+ assert compute_service_shas(repo, builds) == shas_unstaged
326
+
327
+ def test_global_excludes_do_not_affect_visibility(self, repo: Path, tmp_path_factory: pytest.TempPathFactory):
328
+ builds = _service_builds("workloads/app/Dockerfile", "workloads/worker/Dockerfile")
329
+ shas_before = compute_service_shas(repo, builds)
330
+
331
+ global_ignore = tmp_path_factory.mktemp("global-excludes") / "gitignore"
332
+ global_ignore.write_text("main.py\n")
333
+ subprocess.run(
334
+ ["git", "config", "core.excludesFile", str(global_ignore)],
335
+ cwd=str(repo),
336
+ capture_output=True,
337
+ check=True,
338
+ )
339
+
340
+ assert compute_service_shas(repo, builds) == shas_before
341
+
308
342
  def test_should_raise_when_services_span_multiple_top_level_dirs(self, repo: Path):
309
343
  builds = _service_builds("workloads/app/Dockerfile", "other/worker/Dockerfile")
310
344
 
@@ -349,9 +383,10 @@ def _docker_available() -> bool:
349
383
  class TestComputeServiceShasContextGolden:
350
384
  pytestmark = pytest.mark.skipif(not _docker_available(), reason="docker daemon required")
351
385
 
352
- def test_the_hashed_file_set_equals_the_exported_build_context(self, tmp_path: Path):
386
+ def test_the_hashed_file_set_is_the_git_visible_build_context(self, tmp_path: Path):
353
387
  _init_repo(tmp_path)
354
388
  (tmp_path / ".dockerignore").write_text("*\n!workloads/app/\n")
389
+ (tmp_path / ".gitignore").write_text("__pycache__/\n")
355
390
  app = tmp_path / "workloads" / "app"
356
391
  app.mkdir(parents=True)
357
392
  (app / "Dockerfile").write_text("FROM scratch\nCOPY . /\n")
@@ -360,6 +395,8 @@ class TestComputeServiceShasContextGolden:
360
395
  helper.write_text("x = 1\n")
361
396
  helper.chmod(0o755)
362
397
  (app / "link.py").symlink_to("helper.py")
398
+ (app / "__pycache__").mkdir()
399
+ (app / "__pycache__" / "main.cpython-313.pyc").write_text("machine-local bytes")
363
400
 
364
401
  builds = _service_builds("workloads/app/Dockerfile")
365
402
  shas = compute_service_shas(tmp_path, builds)
@@ -377,6 +414,7 @@ class TestComputeServiceShasContextGolden:
377
414
  hashed[path] = meta.split()[0]
378
415
 
379
416
  # The oracle is the exported context: FROM scratch + COPY . / makes buildx write out exactly what it ships.
417
+ # The walk is deliberately narrower: an ignored file rides the context but never the tree tag.
380
418
  builder = f"boatyard-golden-{os.getpid()}"
381
419
  create = subprocess.run(["docker", "buildx", "create", "--name", builder, "--use"], capture_output=True)
382
420
  if create.returncode != 0:
@@ -409,4 +447,8 @@ class TestComputeServiceShasContextGolden:
409
447
  else:
410
448
  exported[relative] = "100644"
411
449
 
450
+ ignored_export = "workloads/app/__pycache__/main.cpython-313.pyc"
451
+ assert ignored_export in exported
452
+ assert ignored_export not in hashed
453
+ exported.pop(ignored_export)
412
454
  assert exported == hashed
File without changes
File without changes
File without changes