diff --git a/package.json b/package.json index 7200cc112e197..e9a99fea4d758 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "bootstrap": "yarn", "bootstrap:ci": "yarn install --frozen-lockfile", "build:all": "yarn build:crypto-dependencies && node ./scripts/turbo build", - "build:ci": "node ./scripts/turbo build -F=[origin/main...HEAD]...", + "build:ci": "node ./scripts/turbo build", "build:clients:generic": "node ./scripts/turbo build -F=@aws-sdk/aws-echo-service...", "build:clients:since:release": "yarn build:packages && node ./scripts/turbo build $(lerna changed | grep -e '@aws-sdk/[client|lib]-*' | sed 's/^/ -F=/' | tr '\n' ' ')", "build:crypto-dependencies": "node ./scripts/turbo build -F=@aws-sdk/types... -F=@aws-sdk/util-locate-window...", diff --git a/scripts/turbo/index.js b/scripts/turbo/index.js index 4f94ea262d937..58ef5df98cf6d 100644 --- a/scripts/turbo/index.js +++ b/scripts/turbo/index.js @@ -18,6 +18,10 @@ const runTurbo = async (task, args, apiSecret, apiEndpoint) => { return await spawnProcess("npx", command, { stdio: "inherit", cwd: turboRoot }); } catch (error) { console.error("Error running turbo:", error); + if (args?.length > 0) { + // Retry without additional filters + return await runTurbo(task, null, apiSecret, apiEndpoint); + } } };