ci: support runner Docker client
CI / validate (pull_request) Failing after 7m33s

This commit is contained in:
Dennis Juhler Aagaard
2026-09-24 19:59:20 +02:00
parent 65e14f5b8c
commit 712981af50
2 changed files with 10 additions and 10 deletions
+6 -8
View File
@@ -147,18 +147,20 @@ def test_ci_builds_and_loads_only_the_amd64_test_image() -> None:
workflow = (ROOT / ".gitea/workflows/ci.yml").read_text(encoding="utf-8")
parsed = yaml.safe_load(workflow)
steps = parsed["jobs"]["validate"]["steps"]
architecture_command = next(
step["run"] for step in steps if step.get("name") == "Validate runner architecture"
)
assert architecture_command == 'test "$(uname -m)" = "x86_64"'
build_command = next(
step["run"] for step in steps if step.get("name") == "Build amd64 image"
)
assert build_command.split() == [
"docker",
"buildx",
"build",
"--platform",
"linux/amd64",
"--build-arg",
"TARGETARCH=amd64",
"--build-arg",
"BUILD_ARCH=amd64",
"--load",
"--tag",
"homeassistant-stelloauth-addon:test",
"stelloauth",
@@ -184,13 +186,9 @@ def test_ci_runs_validation_in_pinned_container() -> None:
)
assert build_command.split() == [
"docker",
"buildx",
"build",
"--platform",
"linux/amd64",
"--file",
"tests/Dockerfile.ci",
"--load",
"--tag",
"homeassistant-stelloauth-tests:test",
".",