Skip to content

Commit

Permalink
revert timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ethriel3695 committed Jan 10, 2025
1 parent 3fca5b6 commit d438b53
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions node-src/lib/findChangedDependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,9 @@ export const findChangedDependencies = async (ctx: Context) => {
// Use a Set so we only keep distinct package names.
const changedDependencyNames = new Set<string>();

const timeout = 60_000;
const timeoutPromise = new Promise<never>((_, reject) => {
setTimeout(() => {
reject(new Error('Timeout while attempting to resolve dependencies dependencies'));
}, timeout);
});

await Promise.all(
filteredPathPairs.map(async ([manifestPath, lockfilePath, commits]) => {
const headDependencies = await Promise.race([
getDependencies(ctx, { rootPath, manifestPath, lockfilePath }),
timeoutPromise,
]);
const headDependencies = await getDependencies(ctx, { rootPath, manifestPath, lockfilePath });
ctx.log.debug({ manifestPath, lockfilePath, headDependencies }, `Found HEAD dependencies`);

// Retrieve the union of dependencies which changed compared to each baseline.
Expand Down

0 comments on commit d438b53

Please sign in to comment.