diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ac7a0338..bdb1267a 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -20,6 +20,8 @@ jobs: uses: "./.github/actions/install-dependencies" - name: Run integration tests + env: + SKIP_VOLUME_MOUNT_INTEGRATION_TESTS: "true" run: bun run test:integration - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 diff --git a/app/test/integration/infra/docker-compose.yml b/app/test/integration/infra/docker-compose.yml index 0daee271..46729ffd 100644 --- a/app/test/integration/infra/docker-compose.yml +++ b/app/test/integration/infra/docker-compose.yml @@ -106,6 +106,7 @@ services: environment: LOG_LEVEL: "error" SFTP_PRIVATE_KEY_PATH: "/run/zerobyte/sftp/id_ed25519" + SKIP_VOLUME_MOUNT_INTEGRATION_TESTS: "${SKIP_VOLUME_MOUNT_INTEGRATION_TESTS:-false}" volumes: rustfs-data: diff --git a/app/test/integration/src/volume-backends.test.ts b/app/test/integration/src/volume-backends.test.ts index 050008bb..83dba5f3 100644 --- a/app/test/integration/src/volume-backends.test.ts +++ b/app/test/integration/src/volume-backends.test.ts @@ -59,6 +59,8 @@ const scenarios: VolumeScenario[] = [ }, ]; +const volumeMountTest = process.env.SKIP_VOLUME_MOUNT_INTEGRATION_TESTS === "true" ? test.skip : test; + const makeDirectoriesWritable = async (root: string): Promise => { await fs.chmod(root, 0o700).catch(() => {}); @@ -76,7 +78,7 @@ const makeDirectoriesWritable = async (root: string): Promise => { ); }; -test.concurrent.each(scenarios)("$name can backup and restore static fixture data", async (scenario) => { +volumeMountTest.concurrent.each(scenarios)("$name can backup and restore static fixture data", async (scenario) => { const runId = crypto.randomUUID(); const workspace = path.join(INTEGRATION_RUNS_DIR, `${scenario.id}-${runId}`); const mountPath = path.join(workspace, "mount");