boatyard 0.7.0.dev201__tar.gz → 0.7.1__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 (88) hide show
  1. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/AGENTS.md +4 -3
  2. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/PKG-INFO +1 -1
  3. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/closeout.md +113 -1
  4. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/pyproject.toml +1 -1
  5. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/build.py +1 -1
  6. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score_k8s.py +10 -2
  7. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_build_docker.py +13 -2
  8. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_score_generate.py +59 -0
  9. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/uv.lock +1 -1
  10. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/.gitattributes +0 -0
  11. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/.github/workflows/cleanup-pr-releases.yml +0 -0
  12. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/.github/workflows/integrate.yml +0 -0
  13. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/.github/workflows/merge-gate.yml +0 -0
  14. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/.github/workflows/release.yml +0 -0
  15. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/.gitignore +0 -0
  16. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/.python-version +0 -0
  17. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/CLAUDE.md +0 -0
  18. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/LICENSE +0 -0
  19. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/NOTICE +0 -0
  20. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/README.md +0 -0
  21. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/design/AGENTS.md +0 -0
  22. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/design/CLAUDE.md +0 -0
  23. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/design/adoption-semver-wave.md +0 -0
  24. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/design/apt-hermeticity.md +0 -0
  25. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/design/dev-overlay.md +0 -0
  26. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/design/gpu-template-collapse.md +0 -0
  27. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/design/mirror-digest-retention.md +0 -0
  28. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/design/precision-attribution.md +0 -0
  29. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/design/semver-image-bundle-lines.md +0 -0
  30. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/publish.yml +0 -0
  31. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/ruff.base.toml +0 -0
  32. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/ruff.toml +0 -0
  33. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/scripts/preflight.py +0 -0
  34. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/__init__.py +0 -0
  35. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/cli.py +0 -0
  36. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/compose.py +0 -0
  37. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/crane.py +0 -0
  38. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/lock.py +0 -0
  39. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/markers.py +0 -0
  40. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/models/__init__.py +0 -0
  41. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/models/config_file.py +0 -0
  42. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/models/image.py +0 -0
  43. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/models/k8s_pins.py +0 -0
  44. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/models/lock_file.py +0 -0
  45. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/models/pyproject.py +0 -0
  46. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/models/values_file.py +0 -0
  47. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/models/workload.py +0 -0
  48. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/paths.py +0 -0
  49. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/publish.py +0 -0
  50. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/py.typed +0 -0
  51. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/resolve.py +0 -0
  52. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score.py +0 -0
  53. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score_compose.py +0 -0
  54. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score_generate.py +0 -0
  55. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score_patch_templates/gpu-cuda.tpl +0 -0
  56. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score_patch_templates/gpu-pod.tpl +0 -0
  57. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score_patch_templates/gpu-rocm.tpl +0 -0
  58. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score_patch_templates/probe-adapter-healthchecks.tpl +0 -0
  59. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score_patch_templates/restart.tpl +0 -0
  60. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/score_patch_templates/scale-to-zero.tpl +0 -0
  61. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/temp.py +0 -0
  62. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/__init__.py +0 -0
  63. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/build.py +0 -0
  64. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/bump.py +0 -0
  65. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/down.py +0 -0
  66. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/lock.py +0 -0
  67. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/matrix.py +0 -0
  68. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/mirror.py +0 -0
  69. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/publish.py +0 -0
  70. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/score.py +0 -0
  71. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/tree_tags.py +0 -0
  72. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/verbs/up.py +0 -0
  73. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/src/boatyard/yaml.py +0 -0
  74. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/conftest.py +0 -0
  75. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_assembly.py +0 -0
  76. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_bump.py +0 -0
  77. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_compose.py +0 -0
  78. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_config.py +0 -0
  79. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_daemon_gc.py +0 -0
  80. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_image_builds.py +0 -0
  81. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_lock.py +0 -0
  82. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_markers.py +0 -0
  83. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_matrix.py +0 -0
  84. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_mirror.py +0 -0
  85. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_provisioners.py +0 -0
  86. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_publish_compose.py +0 -0
  87. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_tree_tags.py +0 -0
  88. {boatyard-0.7.0.dev201 → boatyard-0.7.1}/tests/test_values.py +0 -0
@@ -10,9 +10,10 @@ Design intent and silent-failure traps, one fact per bullet.
10
10
 
11
11
  - Three classes of fact: authored in the config, registry-resolved in the lock, tree-derived
12
12
  (`tree-<hash>`) computed on demand. Nothing derived is committed except
13
- `boatyard.k8s-pins.yml`, written only by the `bump` verb (rollback = `git revert`, never
14
- hand-edit). The lock is written only by the `lock` verb and `build`'s incremental freeze —
15
- never hand-authored.
13
+ `boatyard.k8s-pins.yml`, written only by the `bump` verb — or seeded once with placeholder
14
+ pins by operator ruling where a pre-merge gate needs the k8s leg; the first bump overwrites
15
+ the file wholesale (rollback = `git revert`, never hand-edit). The lock is written only by
16
+ the `lock` verb and `build`'s incremental freeze — never hand-authored.
16
17
  - Fresh-repo assumption: no code handles an obsolete format. An obsolete artifact gets a plain
17
18
  parse failure, never a migration path.
18
19
  - github-actions-toolkit owns the consumer workflow contract and is never a project dependency.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: boatyard
3
- Version: 0.7.0.dev201
3
+ Version: 0.7.1
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
@@ -974,7 +974,10 @@ Rulings carried from the 0.7 line:
974
974
  - No pin bootstrap: first k8s generation without a pins file fails naming
975
975
  the bump verb, always. The bump verb writes the whole certified head's
976
976
  tag set — no per-service partial bumps; unchanged services are no-ops by
977
- identity.
977
+ identity. Flipped once by operator ruling (2026-11-09, the entry below):
978
+ placeframe's 0.7 landing PR seeds placeholder pins so the pre-merge gate
979
+ can run the k8s leg; the first D1 bump overwrites them wholesale. The
980
+ no-hand-edit law stands everywhere else.
978
981
  - No filters, functions, or operators in the interpolation grammar, ever —
979
982
  bare references only. `NGROK_DOMAIN` stays hand-set (host-of-URL is a
980
983
  decision, not a derivation); same for `GATEWAY_PORT` vs `public_url`.
@@ -1190,3 +1193,112 @@ the wave's repins landed; Move 9 recorded dead (2026-11-09).
1190
1193
  Make-it-Sing's remotes are SSH), CI republishes, the `livekit-tier`
1191
1194
  ref flip in Make-it-Sing, the `0.7.0` release cut, the real repins
1192
1195
  (drop the path sources, pin PyPI), placeframe's D1 bump.
1196
+ - The release repins landed (2026-11-09, `0.7.0` published): three of
1197
+ five consumers flipped onto the PyPI package — infra-rathole
1198
+ (`de4c8eb` code + `026b1ec` prose), placeframe (`e30bb310` code +
1199
+ `5f173ced` prose), placeframe-capture-tool (`21a3479`, no prose needed
1200
+ — its AGENTS already described PyPI consumption as the target). Each:
1201
+ `[tool.uv.sources]` path entry dropped, constraint `==0.7.0` exact,
1202
+ `uv lock --upgrade-package boatyard` resolving
1203
+ `registry = "https://pypi.org/simple"`, full battery green on the
1204
+ package (infra-rathole: ruff/format/basedpyright/lock-check/
1205
+ generate-score-check/matrix `[]`/plan rathole-client; placeframe:
1206
+ ruff/format/pytest 17/basedpyright 0 (the cpu sync cleared the torch
1207
+ gaps)/lock-check/matrix ×3/plan ×4; capture-tool: preflight-python,
1208
+ lock-check, matrix one partition three targets, plan three bundles —
1209
+ the wave's new zed/aoa surface). lbe-toolkit and Make-it-Sing stay on
1210
+ their path pins by operator instruction for now. capture-tool's tree
1211
+ carried two unrelated Unity `.asset.meta` edits, left uncommitted.
1212
+ - The repin branches rewritten for review (2026-11-09, tree-identical
1213
+ rebuilds; obviated intermediate states — path-pin commits, the axes
1214
+ round-trip, duplicate regens and lock churn — expunged; each branch
1215
+ ends with exactly two prose commits, one AGENTS.md-family, one other
1216
+ prose; the PyPI repin leads every branch — tool first, then the
1217
+ grammar flip, then the regen, so every post-repin commit is
1218
+ self-consistent under the 0.7.0 toolchain and its own lock):
1219
+ infra-rathole on NEW branch `repin-boatyard-0.7.0` (5 commits
1220
+ off dev `7324533`, which already carried the 0.6.6 repin via PR #2:
1221
+ PyPI repin, grammar flip, `Run generate-score`, AGENTS, README).
1222
+ placeframe on NEW branch `repin-boatyard-0.7.0` (5 commits off dev
1223
+ `6474738e`: PyPI repin, grammar conform, regen, AGENTS, README; one
1224
+ deliberate content resolution: dev's PR #154 moved
1225
+ the k8s artifact's baked tags to the `7438…` set while the wave added
1226
+ source-declaration annotations — the rebased k8s manifest carries
1227
+ BOTH; the compose artifacts stay slot-form, #154-independent; regen
1228
+ verified byte-fresh, ruff/pytest 17/lock --check green). capture-tool
1229
+ on `compose-bundles` (10 thematic commits off dev `213b8eb`: PyPI
1230
+ repin, cutover declarations+workflows, regen, install-zed, zed
1231
+ runtime, app retry, link.xml, Caddyfile, agent docs, handoff docs). Pre-rewrite
1232
+ chains held at `rathole-rewrite-backup` / `placeframe-rewrite-backup` /
1233
+ `capture-rewrite-backup` — deletable. One operator-relevant loss: the
1234
+ two uncommitted Unity `.asset.meta` edits in capture-tool's working
1235
+ tree were destroyed by the rewrite's `reset --hard` (never committed,
1236
+ unrecoverable from git; Unity re-mints .meta files when the editor
1237
+ next opens them).
1238
+ - The placeframe gate deadlock resolved by seed (2026-11-09). The rewritten
1239
+ `repin-boatyard-0.7.0` branch's first Integrate run (42662773644) failed
1240
+ `plan-docker-builds`' `generate-score --check` at `load_pins` ("the k8s
1241
+ pins file is required") — the recorded D1 collision: pins exist only
1242
+ post-merge, so no pre-merge branch can pass the full check. Two fixes
1243
+ were designed (a pins-aware `--check` deriving its substrate from pins
1244
+ presence, and the `secrets.txt` compose-only clobber fix) and shelved;
1245
+ the operator ruled the seed instead. Landed on the branch (commits
1246
+ `a5566156` + `efc6b416`): `boatyard.k8s-pins.yml` with all-zeros
1247
+ `tree-` tags (nine keys — the header names the flip and the healing
1248
+ bump), then the canonical `Run generate-score`. The regen diff is 14
1249
+ tag lines only: the 0.7.0 renderer reproduces the committed k8s
1250
+ manifest byte-identically apart from the pin-fed tags — the first full
1251
+ k8s generation under 0.7.0 (the branch's manifest had been
1252
+ hand-reconciled at the rebase). Battery: `generate-score --check`
1253
+ exits 0 (with pins present the full both-substrate check runs, so the
1254
+ `--target compose` self-contamination quirk is mooted for placeframe),
1255
+ `lock --check`, pytest 17. Accepted cost: the merged k8s artifact bakes
1256
+ zeros and is undeployable until the first D1 bump heals it. Two
1257
+ findings from the seed's first runs: (a) a boatyard wart, FIXED on
1258
+ `dev` the same day (fix on direction granted): `generate_k8s`'s pin
1259
+ demand enumerated only workload `container_sources()`, but
1260
+ provisioner `dockerfile:` markers (six in placeframe:
1261
+ auth-initializer, postgres, database-manager, database-migrator,
1262
+ seaweedfs, s3-initializer) compose `{{ env "<STEM>_SHA" }}` into
1263
+ provisioner manifests — a pins file lacking those keys rendered the
1264
+ slot empty (`image: …:`) and died deep in score-k8s as "mapping
1265
+ values are not allowed in this context" where the loud "lacks pins
1266
+ for …" refusal should fire. The demand now unions the selected k8s
1267
+ provisioners' `dockerfile:` markers (`select_provisioner_files` +
1268
+ `declared_dockerfile_paths` in `score_k8s.py`), with regression
1269
+ tests both sides; the certified flow was always safe (`bump.py:50`
1270
+ writes the full `config.images` set). Battery 616. (b) digit-bearing
1271
+ stems evade `[A-Z_]+` grep patterns (`S3_INITIALIZER_SHA`) — the
1272
+ 2026-11-08 extraction note's trap, hit again while enumerating the
1273
+ seed keys; a note, not a defect.
1274
+ Remaining: operator pushes the branch (SSH remote; the App token
1275
+ cannot write), Integrate green, merge, D1 bump heals the pins.
1276
+ - The owned-key bake gap (2026-11-09, placeframe Integrate 42672295969).
1277
+ The seed unblocked the gate — plan-docker-builds, preflight, unity,
1278
+ and both GPU build legs green — and the CPU build leg died at
1279
+ database-migrator: "base name (${ALPINE_IMAGE}) should not be blank".
1280
+ Root cause, a boatyard 0.7.0 defect: the 0.7 flip moved
1281
+ ALPINE_IMAGE/CADDY_IMAGE out of consumer `base_images` into
1282
+ boatyard-owned keys (synthesized at load when local workloads or a
1283
+ gateway exist, lock-written by relock), and the load grammar
1284
+ sanctions a Dockerfile `FROM ${ALPINE_IMAGE}` (owned keys sit in
1285
+ `resolvable` at config load) — but `build`'s bake args spelled only
1286
+ `remote_base_images`, so an owned FROM arrived at buildkit with no
1287
+ ARG value: the relock env carried the digest, and no bake arg
1288
+ existed to consume it. Under 0.6 the key lived in `base_images` and
1289
+ rode the remote `${KEY:-}` shape. Nothing caught it earlier because
1290
+ no battery leg runs a real docker build and the override-loop leg
1291
+ built only the GPU targets — this run was the first CPU-partition
1292
+ build under 0.7. Fixed on `dev`: owned keys join the env-resolved
1293
+ args (`[*remote_base_images, *owned_images]` in `build.py`), a
1294
+ regression test asserts the owned arg rides a target, and three
1295
+ existing args-shape tests updated to the new contract. Battery 617,
1296
+ full preflight green. Release set to `0.7.2` by operator instruction
1297
+ (0.7.1 skipped; no 0.7.1 exists on PyPI): `pyproject.toml` version
1298
+ bumped, `uv.lock` refreshed. `publish.yml`'s `major_minor` stays
1299
+ `"0.7"` — the toolkit schema pins that field to exactly two
1300
+ components (`^\d+\.\d+$`), and the release number rides the
1301
+ pyproject version (the 0.7.0 precedent). PR-channel prereleases
1302
+ become `0.7.2.dev{N}`. placeframe's CPU leg needs this release once
1303
+ cut (or the placeframe-side fallback of declaring its own alpine
1304
+ key in `base_images`).
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "boatyard"
3
- version = "0.7.0.dev201"
3
+ version = "0.7.1"
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 = [
@@ -157,7 +157,7 @@ def run_build(
157
157
  services: dict[str, dict[str, dict[str, BakeValue]]] = {}
158
158
  for image in config.images.values():
159
159
  for target, variant in image.target_variants:
160
- args: dict[str, str] = {key: f"${{{key}:-}}" for key in config.remote_base_images}
160
+ args: dict[str, str] = {key: f"${{{key}:-}}" for key in [*config.remote_base_images, *config.owned_images]}
161
161
  args.update(image.bases)
162
162
  axis = image.axis
163
163
  if variant is not None and axis is not None:
@@ -20,7 +20,8 @@ from boatyard.models.config_file import (
20
20
  from boatyard.models.image import dockerfile_stem
21
21
  from boatyard.models.k8s_pins import load_pins
22
22
  from boatyard.models.lock_file import LockFile
23
- from boatyard.markers import MarkerContext, resolve_markers
23
+ from boatyard.models.workload import select_provisioner_files
24
+ from boatyard.markers import MarkerContext, resolve_markers, declared_dockerfile_paths
24
25
  from boatyard.paths import K8S_PINS_PATH
25
26
  from boatyard.yaml import Yaml, is_list, is_mapping
26
27
  from boatyard.score import (
@@ -61,12 +62,19 @@ def generate_k8s(
61
62
  index_images = lock.index_references()
62
63
  workloads = [config.workloads[name] for name in k8s.workloads]
63
64
 
64
- # The pins demand is the declared dockerfile closure of the k8s rendering's workloads
65
+ # The pins demand is the k8s rendering's whole dockerfile closure: the workloads'
66
+ # container sources plus the selected k8s provisioners' dockerfile markers
65
67
  demanded = {
66
68
  config.images[dockerfile_stem(value)].sha_env
67
69
  for workload in workloads
68
70
  for kind, value in workload.document.container_sources().values()
69
71
  if kind == "dockerfile"
72
+ } | {
73
+ config.images[dockerfile_stem(path)].sha_env
74
+ for _name, entries in select_provisioner_files(config.root / config.score_dir, "k8s", workloads)
75
+ for entry in entries
76
+ if is_mapping(entry)
77
+ for path in declared_dockerfile_paths(entry)
70
78
  }
71
79
 
72
80
  output_path = config.root / (config.k8s_local_output if local else config.k8s_output)
@@ -325,6 +325,13 @@ class TestDefaultTargets:
325
325
  assert _bake_targets(recorder.commands) == ["api"]
326
326
  assert yaml.safe_load(recorder.rendered)["services"]["api"]["build"]["platforms"] == ["linux/amd64"]
327
327
 
328
+ def test_owned_base_keys_ride_the_bake_args(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
329
+ recorder = _prepare(monkeypatch, tmp_path, [], dockerfiles={"api": EXTERNAL})
330
+
331
+ args = yaml.safe_load(recorder.rendered)["services"]["api"]["build"]["args"]
332
+
333
+ assert args["ALPINE_IMAGE"] == "${ALPINE_IMAGE:-}"
334
+
328
335
  def test_bake_invokes_the_rendered_temp_file_without_set_strings(
329
336
  self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
330
337
  ):
@@ -763,6 +770,7 @@ class TestRenderBakeArgs:
763
770
  assert services["api"]["build"]["args"] == {
764
771
  "UV_BASE_IMAGE": "${UV_BASE_IMAGE:-}",
765
772
  "EXTRA_IMAGE": "${EXTRA_IMAGE:-}",
773
+ "ALPINE_IMAGE": "${ALPINE_IMAGE:-}",
766
774
  }
767
775
 
768
776
  def test_sha_args_render_only_for_declaring_dockerfiles(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
@@ -779,7 +787,10 @@ class TestRenderBakeArgs:
779
787
  services = _rendered_services(recorder.rendered)
780
788
 
781
789
  assert "LOCALIZER_SHA" not in services["api"]["build"]["args"]
782
- assert services["localizer"]["build"]["args"] == {"LOCALIZER_SHA": "${LOCALIZER_SHA:?err}"}
790
+ assert services["localizer"]["build"]["args"] == {
791
+ "LOCALIZER_SHA": "${LOCALIZER_SHA:?err}",
792
+ "ALPINE_IMAGE": "${ALPINE_IMAGE:-}",
793
+ }
783
794
 
784
795
  def test_declared_values_reach_the_rendered_axis_arg(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
785
796
  recorder = _prepare(
@@ -827,7 +838,7 @@ class TestRenderBakeContexts:
827
838
  services = _rendered_services(recorder.rendered)
828
839
 
829
840
  assert services["app"]["build"]["additional_contexts"] == {"base": "target:base"}
830
- assert services["app"]["build"]["args"] == {"BASE_IMAGE": "base"}
841
+ assert services["app"]["build"]["args"] == {"BASE_IMAGE": "base", "ALPINE_IMAGE": "${ALPINE_IMAGE:-}"}
831
842
 
832
843
 
833
844
  class TestRenderBakeCache:
@@ -1566,6 +1566,65 @@ def test_k8s_generation_refuses_a_workload_sha_slot_no_pin_covers(
1566
1566
  generate_k8s(config, config.k8s, LockFile.model_validate({}), local=False)
1567
1567
 
1568
1568
 
1569
+ ISSUER_PROVISIONER = (
1570
+ "- uri: template://example/issuer\n"
1571
+ " type: example-issuer\n"
1572
+ " manifests:\n"
1573
+ " - name: configurator\n"
1574
+ " image: {dockerfile: workloads/initializer/Dockerfile}\n"
1575
+ )
1576
+
1577
+ WORKLOAD_WITH_ISSUER = (
1578
+ "metadata:\n"
1579
+ " name: api\n"
1580
+ " annotations:\n"
1581
+ " outernet.internal/dockerfile: api=workloads/api/Dockerfile\n"
1582
+ "resources:\n"
1583
+ " issuer:\n"
1584
+ " type: example-issuer\n"
1585
+ "containers:\n"
1586
+ " api: {}\n"
1587
+ )
1588
+
1589
+
1590
+ def _issuer_config(tmp_path: Path) -> tuple[ConfigFile, K8sConfig]:
1591
+ config = _generated_config(tmp_path, ["api.yaml"], repository="ghcr.io/org/repo", k8s={"workloads": ["api.yaml"]})
1592
+ config.images = {
1593
+ "api": Image(name="api", dockerfile="workloads/api/Dockerfile"),
1594
+ "initializer": Image(name="initializer", dockerfile="workloads/initializer/Dockerfile"),
1595
+ }
1596
+ assert config.k8s is not None
1597
+ return config, config.k8s
1598
+
1599
+
1600
+ def test_k8s_generation_refuses_a_provisioner_sha_slot_no_pin_covers(
1601
+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch
1602
+ ) -> None:
1603
+ _write_pins(tmp_path, {"API_SHA": PINNED_TAG})
1604
+ _pins_k8s_recorder(monkeypatch, tmp_path, WORKLOAD_WITH_ISSUER)
1605
+ (tmp_path / "stack" / "score" / "k8s").mkdir()
1606
+ (tmp_path / "stack" / "score" / "k8s" / "issuer.yaml").write_text(ISSUER_PROVISIONER, encoding="utf-8")
1607
+ config, k8s = _issuer_config(tmp_path)
1608
+
1609
+ with pytest.raises(ValueError, match=r"boatyard\.k8s-pins\.yml: lacks pins for INITIALIZER_SHA"):
1610
+ generate_k8s(config, k8s, LockFile.model_validate({}), local=False)
1611
+
1612
+
1613
+ def test_k8s_generation_passes_provisioner_pins_into_the_generate_environment(
1614
+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch
1615
+ ) -> None:
1616
+ _write_pins(tmp_path, {"API_SHA": PINNED_TAG, "INITIALIZER_SHA": PINNED_TAG})
1617
+ recorder = _pins_k8s_recorder(monkeypatch, tmp_path, WORKLOAD_WITH_ISSUER)
1618
+ (tmp_path / "stack" / "score" / "k8s").mkdir()
1619
+ (tmp_path / "stack" / "score" / "k8s" / "issuer.yaml").write_text(ISSUER_PROVISIONER, encoding="utf-8")
1620
+ config, k8s = _issuer_config(tmp_path)
1621
+
1622
+ generate_k8s(config, k8s, LockFile.model_validate({}), local=False)
1623
+
1624
+ assert recorder.command_envs["generate"] is not None
1625
+ assert recorder.command_envs["generate"]["INITIALIZER_SHA"] == PINNED_TAG
1626
+
1627
+
1569
1628
  def test_local_k8s_generation_derives_working_tree_tags_without_pins(
1570
1629
  tmp_path: Path, monkeypatch: pytest.MonkeyPatch
1571
1630
  ) -> None:
@@ -43,7 +43,7 @@ wheels = [
43
43
 
44
44
  [[package]]
45
45
  name = "boatyard"
46
- version = "0.7.0"
46
+ version = "0.7.2"
47
47
  source = { editable = "." }
48
48
  dependencies = [
49
49
  { name = "bashrun" },
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