From 397cef383d19154307a21ddf619ce4753d014035 Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Sun, 12 Apr 2026 19:59:41 -0500 Subject: [PATCH] =?UTF-8?q?fix(ci):=20resolve=20test.yml=20failures=20?= =?UTF-8?q?=E2=80=94=20Cargo.lock,=20updated=20test=20assertions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cargo.lock: - Commit the pre-existing version bump (0.1.0 → 0.2.50) so cargo --locked does not fail in CI; Cargo.toml already at 0.2.50 releaseWorkflowCrossPlatformArtifacts.test.ts: - Update test that previously checked for ubuntu:22.04 / ports mirror inline in auto-tag.yml; that setup moved to the pre-baked trcaa-linux-arm64 image so the test now verifies the image reference and cross-compile env vars instead ciDockerBuilders.test.ts: - Update test that checked for docker:24-cli; changed to alpine:latest + docker-cli to avoid act_runner v0.3.1 duplicate socket mount bug; negative assertion on docker:24-cli retained --- src-tauri/Cargo.lock | 2 +- tests/unit/ciDockerBuilders.test.ts | 8 ++++++-- .../unit/releaseWorkflowCrossPlatformArtifacts.test.ts | 10 ++++++---- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 2e493b36..a201eec9 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -6139,7 +6139,7 @@ dependencies = [ [[package]] name = "trcaa" -version = "0.1.0" +version = "0.2.50" dependencies = [ "aes-gcm", "aho-corasick", diff --git a/tests/unit/ciDockerBuilders.test.ts b/tests/unit/ciDockerBuilders.test.ts index bc2d2541..92f3225f 100644 --- a/tests/unit/ciDockerBuilders.test.ts +++ b/tests/unit/ciDockerBuilders.test.ts @@ -129,8 +129,12 @@ describe("build-images.yml workflow", () => { expect(wf).toContain("trcaa-linux-arm64:rust1.88-node22"); }); - it("uses docker:24-cli image for build jobs", () => { - expect(wf).toContain("docker:24-cli"); + it("uses alpine:latest with docker-cli (not docker:24-cli which triggers duplicate socket mount in act_runner)", () => { + // act_runner v0.3.1 special-cases docker:* images and adds the socket bind; + // combined with its global socket bind this causes a 'Duplicate mount point' error. + expect(wf).toContain("alpine:latest"); + expect(wf).toContain("docker-cli"); + expect(wf).not.toContain("docker:24-cli"); }); it("runs all three build jobs on linux-amd64 runner", () => { diff --git a/tests/unit/releaseWorkflowCrossPlatformArtifacts.test.ts b/tests/unit/releaseWorkflowCrossPlatformArtifacts.test.ts index eeea410a..abe69ac1 100644 --- a/tests/unit/releaseWorkflowCrossPlatformArtifacts.test.ts +++ b/tests/unit/releaseWorkflowCrossPlatformArtifacts.test.ts @@ -44,11 +44,13 @@ describe("auto-tag release cross-platform artifact handling", () => { expect(workflow).toContain("UPLOAD_NAME=\"linux-arm64-$NAME\""); }); - it("uses Ubuntu 22.04 with ports mirror for arm64 cross-compile", () => { + it("uses pre-baked Ubuntu 22.04 cross-compiler image for arm64", () => { const workflow = readFileSync(autoTagWorkflowPath, "utf-8"); - expect(workflow).toContain("ubuntu:22.04"); - expect(workflow).toContain("ports.ubuntu.com/ubuntu-ports"); - expect(workflow).toContain("jammy"); + // Multiarch ubuntu:22.04 + ports mirror setup moved to pre-baked image; + // verify workflow references the correct image and cross-compile env vars. + expect(workflow).toContain("trcaa-linux-arm64:rust1.88-node22"); + expect(workflow).toContain("CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc"); + expect(workflow).toContain("aarch64-unknown-linux-gnu"); }); });