boatyard 0.9.10.dev275__tar.gz → 0.9.11.dev278__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.
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/AGENTS.md +5 -1
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/PKG-INFO +1 -1
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/pyproject.toml +1 -1
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/models/workload.py +37 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score.py +30 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/probe-adapter-healthchecks.tpl +16 -15
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_score_generate.py +23 -9
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/.gitattributes +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/.github/workflows/cleanup-pr-releases.yml +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/.github/workflows/integrate.yml +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/.github/workflows/merge-gate.yml +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/.github/workflows/release.yml +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/.gitignore +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/.python-version +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/CLAUDE.md +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/LICENSE +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/NOTICE +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/README.md +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/design/AGENTS.md +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/design/CLAUDE.md +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/design/apt-hermeticity.md +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/design/mirror-digest-retention.md +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/design/precision-attribution.md +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/design/semver-image-bundle-lines.md +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/publish.yml +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/ruff.base.toml +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/ruff.toml +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/scripts/preflight.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/__init__.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/build.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/cli.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/crane.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/lock.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/markers.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/models/__init__.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/models/config_file.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/models/image.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/models/k8s_pins.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/models/lock_file.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/models/pyproject.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/models/values_file.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/paths.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/publish.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/py.typed +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/resolve.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_compose.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_generate.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_k8s.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/docker-socket.tpl +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/gpu-cuda.tpl +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/gpu-pod.tpl +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/gpu-rocm.tpl +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/restart.tpl +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/scale-to-zero.tpl +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/temp.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/__init__.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/build.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/bump.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/down.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/lock.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/matrix.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/mirror.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/publish.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/score.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/tree_tags.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/verbs/up.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/yaml.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/conftest.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_assembly.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_build_docker.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_bump.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_compose.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_config.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_daemon_gc.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_image_builds.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_lock.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_markers.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_matrix.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_mirror.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_provisioners.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_publish_compose.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_tree_tags.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/tests/test_values.py +0 -0
- {boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/uv.lock +0 -0
|
@@ -84,7 +84,11 @@ Design intent and silent-failure traps, one fact per bullet.
|
|
|
84
84
|
it (`options:`); the axis lives on the local `base_images` entry — the one spelling across
|
|
85
85
|
the Dockerfile ARG and the k8s selection, never re-described by hand.
|
|
86
86
|
- Plain score-compose silently drops `httpGet` probes; boatyard makes the omission loud
|
|
87
|
-
instead via the workload's `boatyard/probe-adapter` annotation.
|
|
87
|
+
instead via the workload's `boatyard/probe-adapter` annotation. Probe timing
|
|
88
|
+
(`initialDelaySeconds` and siblings) authors k8s-style on the probe but never reaches the
|
|
89
|
+
tools — score's schema refuses the fields — so the lens strips them and spells the
|
|
90
|
+
JSON `boatyard/probe-timing` annotation the healthcheck template derives the compose
|
|
91
|
+
timing from.
|
|
88
92
|
- Substrate needs live in workload files — scalar facts as `boatyard/*` annotations, compound
|
|
89
93
|
facts (routes, publishes, container sources, interpolation targets) in the `boatyard:` block —
|
|
90
94
|
and `boatyard.yml` holds no per-workload runtime fact. The gpu annotation (`"true"`) is
|
|
@@ -28,6 +28,12 @@ GPU_ANNOTATION = "boatyard/gpu"
|
|
|
28
28
|
# The host socket bind for container-controlling workloads (the compose rendering only)
|
|
29
29
|
DOCKER_SOCKET_ANNOTATION = "boatyard/docker-socket"
|
|
30
30
|
|
|
31
|
+
# The per-container probe timing (JSON) the lens spells for the healthcheck template — score's
|
|
32
|
+
# own schema refuses timing fields on probes, so the k8s-style spellings never reach the tools
|
|
33
|
+
PROBE_TIMING_ANNOTATION = "boatyard/probe-timing"
|
|
34
|
+
|
|
35
|
+
PROBE_TIMING_FIELDS = ("initialDelaySeconds", "periodSeconds", "timeoutSeconds", "failureThreshold")
|
|
36
|
+
|
|
31
37
|
# The closed boatyard/* label vocabulary the bundle-record extraction accepts off a rendered stanza
|
|
32
38
|
STANZA_LABELS = (
|
|
33
39
|
ROUTE_PATH_LABEL,
|
|
@@ -40,6 +46,7 @@ STANZA_LABELS = (
|
|
|
40
46
|
AUTOSTART_ANNOTATION,
|
|
41
47
|
GPU_ANNOTATION,
|
|
42
48
|
DOCKER_SOCKET_ANNOTATION,
|
|
49
|
+
PROBE_TIMING_ANNOTATION,
|
|
43
50
|
)
|
|
44
51
|
|
|
45
52
|
SCALAR_ANNOTATIONS = (
|
|
@@ -374,6 +381,36 @@ class WorkloadProbe(BaseModel):
|
|
|
374
381
|
model_config = ConfigDict(extra="allow")
|
|
375
382
|
|
|
376
383
|
http_get: WorkloadHttpGet | None = Field(default=None, alias="httpGet")
|
|
384
|
+
initial_delay_seconds: int | None = Field(default=None, alias="initialDelaySeconds")
|
|
385
|
+
period_seconds: int | None = Field(default=None, alias="periodSeconds")
|
|
386
|
+
timeout_seconds: int | None = Field(default=None, alias="timeoutSeconds")
|
|
387
|
+
failure_threshold: int | None = Field(default=None, alias="failureThreshold")
|
|
388
|
+
|
|
389
|
+
@field_validator("initial_delay_seconds")
|
|
390
|
+
@classmethod
|
|
391
|
+
def _require_delay_floor(cls, value: int | None) -> int | None:
|
|
392
|
+
if value is not None and value < 0:
|
|
393
|
+
raise ValueError("initialDelaySeconds must be zero or more")
|
|
394
|
+
return value
|
|
395
|
+
|
|
396
|
+
@field_validator("period_seconds", "timeout_seconds", "failure_threshold")
|
|
397
|
+
@classmethod
|
|
398
|
+
def _require_one_floor(cls, value: int | None) -> int | None:
|
|
399
|
+
if value is not None and value < 1:
|
|
400
|
+
raise ValueError("probe timing must be one or more")
|
|
401
|
+
return value
|
|
402
|
+
|
|
403
|
+
def timing(self) -> dict[str, int]:
|
|
404
|
+
return {
|
|
405
|
+
field: getattr(self, spelling)
|
|
406
|
+
for field, spelling in (
|
|
407
|
+
("initialDelaySeconds", "initial_delay_seconds"),
|
|
408
|
+
("periodSeconds", "period_seconds"),
|
|
409
|
+
("timeoutSeconds", "timeout_seconds"),
|
|
410
|
+
("failureThreshold", "failure_threshold"),
|
|
411
|
+
)
|
|
412
|
+
if getattr(self, spelling) is not None
|
|
413
|
+
}
|
|
377
414
|
|
|
378
415
|
|
|
379
416
|
class WorkloadHttpGet(BaseModel):
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
import json
|
|
3
4
|
import os
|
|
4
5
|
import re
|
|
5
6
|
import shlex
|
|
@@ -27,6 +28,8 @@ from boatyard.models.config_file import (
|
|
|
27
28
|
)
|
|
28
29
|
from boatyard.models.image import dockerfile_stem
|
|
29
30
|
from boatyard.models.workload import (
|
|
31
|
+
PROBE_TIMING_ANNOTATION,
|
|
32
|
+
PROBE_TIMING_FIELDS,
|
|
30
33
|
PUBLISH_PORT_LABEL,
|
|
31
34
|
LISTENERS_LABEL,
|
|
32
35
|
ROUTE_PATH_LABEL,
|
|
@@ -364,9 +367,36 @@ def injected_workload(config: ConfigFile, workload: LoadedWorkload, variable_val
|
|
|
364
367
|
reference = compose_image_reference(config.repository, image, tag, variant)
|
|
365
368
|
containers[container]["image"] = reference
|
|
366
369
|
rewrite_listener_references(containers, workload)
|
|
370
|
+
timings = strip_probe_timing(containers, workload)
|
|
371
|
+
if timings:
|
|
372
|
+
annotations = tool.setdefault("metadata", {}).setdefault("annotations", {})
|
|
373
|
+
annotations[PROBE_TIMING_ANNOTATION] = json.dumps(timings, separators=(",", ":"))
|
|
367
374
|
return tool
|
|
368
375
|
|
|
369
376
|
|
|
377
|
+
def strip_probe_timing(containers: dict[str, Any], workload: LoadedWorkload) -> dict[str, dict[str, int]]:
|
|
378
|
+
# Score's own schema refuses timing fields on probes, so the k8s-style spellings ride the
|
|
379
|
+
# probe-timing annotation instead, keyed by container; readiness timing wins over liveness
|
|
380
|
+
# because the healthcheck template converts the readiness probe first
|
|
381
|
+
timings: dict[str, dict[str, int]] = {}
|
|
382
|
+
for name, container in workload.document.containers.items():
|
|
383
|
+
entry = containers[name]
|
|
384
|
+
collected: dict[str, int] = {}
|
|
385
|
+
for probe, block in (
|
|
386
|
+
("readinessProbe", container.readiness_probe),
|
|
387
|
+
("livenessProbe", container.liveness_probe),
|
|
388
|
+
):
|
|
389
|
+
if block is None:
|
|
390
|
+
continue
|
|
391
|
+
for field in PROBE_TIMING_FIELDS:
|
|
392
|
+
entry[probe].pop(field, None)
|
|
393
|
+
if not collected:
|
|
394
|
+
collected = block.timing()
|
|
395
|
+
if collected:
|
|
396
|
+
timings[name] = collected
|
|
397
|
+
return timings
|
|
398
|
+
|
|
399
|
+
|
|
370
400
|
def rewrite_listener_references(containers: dict[str, Any], workload: LoadedWorkload) -> None:
|
|
371
401
|
# The lens already refused every probe port and ${listeners.<name>.port} reference that
|
|
372
402
|
# names no declared listener, so the rewrites are plain substitutions over the dumped
|
|
@@ -4,33 +4,34 @@
|
|
|
4
4
|
# class closes that drift for workloads declaring a probe adapter
|
|
5
5
|
# (boatyard/probe-adapter): it converts the workload's readinessProbe,
|
|
6
6
|
# else livenessProbe, into a compose healthcheck against the computed
|
|
7
|
-
# <workload>-<container> service name. The timing derives from the
|
|
8
|
-
# probe
|
|
7
|
+
# <workload>-<container> service name. The timing derives from the lens-spelled
|
|
8
|
+
# boatyard/probe-timing annotation (JSON keyed by container) — score's own
|
|
9
|
+
# schema refuses timing fields on probes, so the k8s-style spellings never
|
|
10
|
+
# reach this document any other way — mapping periodSeconds→interval,
|
|
9
11
|
# initialDelaySeconds→start_period, timeoutSeconds→timeout,
|
|
10
|
-
# failureThreshold→retries
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
# templates are data).
|
|
12
|
+
# failureThreshold→retries, defaulting to 5s/5s/5s/3 when unauthored. The
|
|
13
|
+
# adapter picks the exec spell the image runtime can run — python-urllib
|
|
14
|
+
# (python-based workloads shipping neither wget nor curl) or bash-http
|
|
15
|
+
# (workloads whose image ships bash and nothing else, spelling HTTP over
|
|
16
|
+
# /dev/tcp); a workload declaring an httpGet probe without the adapter refuses
|
|
17
|
+
# at generation (devkit code — templates are data).
|
|
17
18
|
{{- $matched := false }}
|
|
18
19
|
{{- range $workloadName, $workload := .Workloads }}
|
|
19
20
|
{{- $adapter := dig "metadata" "annotations" "boatyard/probe-adapter" "" $workload }}
|
|
20
21
|
{{- if or (eq $adapter "python-urllib") (eq $adapter "bash-http") }}
|
|
22
|
+
{{- $timings := dig "metadata" "annotations" "boatyard/probe-timing" "{}" $workload | fromJson }}
|
|
21
23
|
{{- range $containerName, $container := $workload.containers }}
|
|
22
|
-
{{- $probeBlock := $container.readinessProbe }}
|
|
23
24
|
{{- $probe := $container.readinessProbe.httpGet }}
|
|
24
25
|
{{- if not $probe }}
|
|
25
|
-
{{- $probeBlock = $container.livenessProbe }}
|
|
26
26
|
{{- $probe = $container.livenessProbe.httpGet }}
|
|
27
27
|
{{- end }}
|
|
28
28
|
{{- with $probe }}
|
|
29
29
|
{{- $matched = true }}
|
|
30
|
-
{{- $
|
|
31
|
-
{{- $
|
|
32
|
-
{{- $
|
|
33
|
-
{{- $
|
|
30
|
+
{{- $timing := dig $containerName (dict) $timings }}
|
|
31
|
+
{{- $interval := dig "periodSeconds" 5 $timing }}
|
|
32
|
+
{{- $startPeriod := dig "initialDelaySeconds" 5 $timing }}
|
|
33
|
+
{{- $timeout := dig "timeoutSeconds" 5 $timing }}
|
|
34
|
+
{{- $retries := dig "failureThreshold" 3 $timing }}
|
|
34
35
|
- op: set
|
|
35
36
|
path: services.{{ $workloadName }}-{{ $containerName }}.healthcheck
|
|
36
37
|
value:
|
|
@@ -1002,9 +1002,11 @@ def test_the_bash_http_spell_uses_the_slash_port_spelling() -> None:
|
|
|
1002
1002
|
assert "/dev/tcp/127.0.0.1:{{ .port }}" not in text
|
|
1003
1003
|
|
|
1004
1004
|
|
|
1005
|
-
def
|
|
1005
|
+
def test_the_healthcheck_template_derives_its_timing_from_the_probe_annotation() -> None:
|
|
1006
1006
|
text = (files("boatyard") / "score_patch_templates" / "probe-adapter-healthchecks.tpl").read_text(encoding="utf-8")
|
|
1007
1007
|
|
|
1008
|
+
assert 'dig "metadata" "annotations" "boatyard/probe-timing" "{}" $workload | fromJson' in text
|
|
1009
|
+
assert "dig $containerName (dict) $timings" in text
|
|
1008
1010
|
assert 'dig "periodSeconds" 5' in text
|
|
1009
1011
|
assert 'dig "initialDelaySeconds" 5' in text
|
|
1010
1012
|
assert 'dig "timeoutSeconds" 5' in text
|
|
@@ -1038,7 +1040,7 @@ PROBE_TIMING_WORKLOAD = (
|
|
|
1038
1040
|
)
|
|
1039
1041
|
|
|
1040
1042
|
|
|
1041
|
-
def
|
|
1043
|
+
def test_authored_probe_timing_rides_the_annotation_and_never_the_probe(
|
|
1042
1044
|
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
|
1043
1045
|
) -> None:
|
|
1044
1046
|
(tmp_path / "stack" / "score").mkdir(parents=True, exist_ok=True)
|
|
@@ -1059,13 +1061,25 @@ def test_the_expanded_workload_copy_carries_the_authored_probe_timing(
|
|
|
1059
1061
|
)
|
|
1060
1062
|
|
|
1061
1063
|
document = yaml.safe_load(recorder.workload_contents["api.yaml"])
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
"periodSeconds":
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1064
|
+
# Score's own schema refuses timing fields on probes, so none may survive into the tool copy
|
|
1065
|
+
assert document["containers"]["api"]["readinessProbe"] == {"httpGet": {"path": "/health", "port": 8081}}
|
|
1066
|
+
assert document["metadata"]["annotations"]["boatyard/probe-timing"] == (
|
|
1067
|
+
'{"api":{"initialDelaySeconds":30,"periodSeconds":10,"timeoutSeconds":2,"failureThreshold":6}}'
|
|
1068
|
+
)
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
def test_below_floor_probe_timing_refuses() -> None:
|
|
1072
|
+
with pytest.raises(ValidationError, match="probe timing must be one or more"):
|
|
1073
|
+
parse_workload(
|
|
1074
|
+
{
|
|
1075
|
+
"metadata": {"name": "api"},
|
|
1076
|
+
"listeners": {"web": 8080},
|
|
1077
|
+
"containers": {
|
|
1078
|
+
"api": {"readinessProbe": {"httpGet": {"path": "/h", "port": "web"}, "periodSeconds": 0}}
|
|
1079
|
+
},
|
|
1080
|
+
},
|
|
1081
|
+
"api.yaml",
|
|
1082
|
+
)
|
|
1069
1083
|
|
|
1070
1084
|
|
|
1071
1085
|
PROVISIONER_WITH_SERVICES = """
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/gpu-cuda.tpl
RENAMED
|
File without changes
|
{boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/gpu-pod.tpl
RENAMED
|
File without changes
|
{boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/gpu-rocm.tpl
RENAMED
|
File without changes
|
{boatyard-0.9.10.dev275 → boatyard-0.9.11.dev278}/src/boatyard/score_patch_templates/restart.tpl
RENAMED
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|