Skip to content

Commit

Permalink
fix(turbo): remove filtering from build:ci script and improve handlin…
Browse files Browse the repository at this point in the history
…g of filtering errors (#6361)
  • Loading branch information
isaiahshall authored Aug 6, 2024
1 parent be08ecf commit e52cc35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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...",
Expand Down
4 changes: 4 additions & 0 deletions scripts/turbo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
};

Expand Down

0 comments on commit e52cc35

Please sign in to comment.