From 67ec14a25f427124c3fdfb1ac0082432fd1f5d6a Mon Sep 17 00:00:00 2001 From: Frostebite Date: Mon, 8 Sep 2025 22:13:36 +0100 Subject: [PATCH] ci(k8s): remove in-cluster LocalStack; use host LocalStack via localhost:4566 for all; rely on k3d host mapping --- .../tests/cloud-runner-rclone-steps.test.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/model/cloud-runner/tests/cloud-runner-rclone-steps.test.ts b/src/model/cloud-runner/tests/cloud-runner-rclone-steps.test.ts index f78adcee..ab1fab74 100644 --- a/src/model/cloud-runner/tests/cloud-runner-rclone-steps.test.ts +++ b/src/model/cloud-runner/tests/cloud-runner-rclone-steps.test.ts @@ -26,7 +26,9 @@ describe('Cloud Runner pre-built rclone steps', () => { (() => { // Determine environment capability to run rclone operations const isCI = process.env.GITHUB_ACTIONS === 'true'; + const isWindows = process.platform === 'win32'; let rcloneAvailable = false; + let bashAvailable = !isWindows; // assume available on non-Windows if (!isCI) { try { const { execSync } = require('child_process'); @@ -35,10 +37,19 @@ describe('Cloud Runner pre-built rclone steps', () => { } catch { rcloneAvailable = false; } + if (isWindows) { + try { + const { execSync } = require('child_process'); + execSync('bash --version', { stdio: 'ignore' }); + bashAvailable = true; + } catch { + bashAvailable = false; + } + } } const hasRcloneRemote = Boolean(process.env.RCLONE_REMOTE || process.env.rcloneRemote); - const shouldRunRclone = (isCI && hasRcloneRemote) || rcloneAvailable; + const shouldRunRclone = (isCI && hasRcloneRemote) || (rcloneAvailable && (!isWindows || bashAvailable)); if (shouldRunRclone) { it('Run build and prebuilt rclone cache pull, cache push and upload build', async () => {