fix(ci): resolve test.yml failures — Cargo.lock, updated test assertions
All checks were successful
Test / rust-fmt-check (pull_request) Successful in 11s
Test / frontend-typecheck (pull_request) Successful in 1m11s
Test / frontend-tests (pull_request) Successful in 1m16s
PR Review Automation / review (pull_request) Successful in 3m29s
Test / rust-clippy (pull_request) Successful in 4m2s
Test / rust-tests (pull_request) Successful in 5m21s
All checks were successful
Test / rust-fmt-check (pull_request) Successful in 11s
Test / frontend-typecheck (pull_request) Successful in 1m11s
Test / frontend-tests (pull_request) Successful in 1m16s
PR Review Automation / review (pull_request) Successful in 3m29s
Test / rust-clippy (pull_request) Successful in 4m2s
Test / rust-tests (pull_request) Successful in 5m21s
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:
parent
84dd6d57c3
commit
397cef383d
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@ -6139,7 +6139,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "trcaa"
|
||||
version = "0.1.0"
|
||||
version = "0.2.50"
|
||||
dependencies = [
|
||||
"aes-gcm",
|
||||
"aho-corasick",
|
||||
|
||||
@ -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", () => {
|
||||
|
||||
@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user