Skip to content

Commit e52cc35

Browse files
authored
fix(turbo): remove filtering from build:ci script and improve handling of filtering errors (#6361)
1 parent be08ecf commit e52cc35

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"bootstrap": "yarn",
99
"bootstrap:ci": "yarn install --frozen-lockfile",
1010
"build:all": "yarn build:crypto-dependencies && node ./scripts/turbo build",
11-
"build:ci": "node ./scripts/turbo build -F=[origin/main...HEAD]...",
11+
"build:ci": "node ./scripts/turbo build",
1212
"build:clients:generic": "node ./scripts/turbo build -F=@aws-sdk/aws-echo-service...",
1313
"build:clients:since:release": "yarn build:packages && node ./scripts/turbo build $(lerna changed | grep -e '@aws-sdk/[client|lib]-*' | sed 's/^/ -F=/' | tr '\n' ' ')",
1414
"build:crypto-dependencies": "node ./scripts/turbo build -F=@aws-sdk/types... -F=@aws-sdk/util-locate-window...",

scripts/turbo/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ const runTurbo = async (task, args, apiSecret, apiEndpoint) => {
1818
return await spawnProcess("npx", command, { stdio: "inherit", cwd: turboRoot });
1919
} catch (error) {
2020
console.error("Error running turbo:", error);
21+
if (args?.length > 0) {
22+
// Retry without additional filters
23+
return await runTurbo(task, null, apiSecret, apiEndpoint);
24+
}
2125
}
2226
};
2327

0 commit comments

Comments
 (0)