fix(ci): resolve test.yml failures — Cargo.lock, updated test assertions

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
This commit is contained in:
Shaun Arman 2026-04-12 19:59:41 -05:00
parent 461959fbca
commit 2ce38b9477
3 changed files with 13 additions and 7 deletions

2
src-tauri/Cargo.lock generated
View File

@ -6139,7 +6139,7 @@ dependencies = [
[[package]] [[package]]
name = "trcaa" name = "trcaa"
version = "0.1.0" version = "0.2.50"
dependencies = [ dependencies = [
"aes-gcm", "aes-gcm",
"aho-corasick", "aho-corasick",

View File

@ -129,8 +129,12 @@ describe("build-images.yml workflow", () => {
expect(wf).toContain("trcaa-linux-arm64:rust1.88-node22"); expect(wf).toContain("trcaa-linux-arm64:rust1.88-node22");
}); });
it("uses docker:24-cli image for build jobs", () => { it("uses alpine:latest with docker-cli (not docker:24-cli which triggers duplicate socket mount in act_runner)", () => {
expect(wf).toContain("docker:24-cli"); // 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", () => { it("runs all three build jobs on linux-amd64 runner", () => {

View File

@ -44,11 +44,13 @@ describe("auto-tag release cross-platform artifact handling", () => {
expect(workflow).toContain("UPLOAD_NAME=\"linux-arm64-$NAME\""); 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"); const workflow = readFileSync(autoTagWorkflowPath, "utf-8");
expect(workflow).toContain("ubuntu:22.04"); // Multiarch ubuntu:22.04 + ports mirror setup moved to pre-baked image;
expect(workflow).toContain("ports.ubuntu.com/ubuntu-ports"); // verify workflow references the correct image and cross-compile env vars.
expect(workflow).toContain("jammy"); 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");
}); });
}); });