@rubytech/taskmaster 1.17.9 → 1.17.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/infra/update-runner.js +24 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -455,7 +455,13 @@ export async function runGatewayUpdate(opts = {}) {
|
|
|
455
455
|
}
|
|
456
456
|
const spec = `@rubytech/taskmaster@${normalizeTag(opts.tag)}`;
|
|
457
457
|
const installArgv = globalInstallArgs(globalManager, spec, needsSudo);
|
|
458
|
-
|
|
458
|
+
// npm CDN propagation can take 2–10 minutes after publish: the package
|
|
459
|
+
// metadata resolves immediately but the tarball may 404 at some CDN nodes.
|
|
460
|
+
// Retry up to 3 times with a 60-second delay on E404 so the update
|
|
461
|
+
// completes without requiring user intervention.
|
|
462
|
+
const MAX_RETRIES = 3;
|
|
463
|
+
const RETRY_DELAY_MS = 60_000;
|
|
464
|
+
let updateStep = await runStep({
|
|
459
465
|
runCommand,
|
|
460
466
|
name: installArgv.join(" "),
|
|
461
467
|
argv: installArgv,
|
|
@@ -466,6 +472,23 @@ export async function runGatewayUpdate(opts = {}) {
|
|
|
466
472
|
stepIndex: 0,
|
|
467
473
|
totalSteps: 1,
|
|
468
474
|
});
|
|
475
|
+
for (let attempt = 1; attempt <= MAX_RETRIES && updateStep.exitCode !== 0; attempt++) {
|
|
476
|
+
const isE404 = (updateStep.stderrTail ?? "").includes("E404");
|
|
477
|
+
if (!isE404)
|
|
478
|
+
break;
|
|
479
|
+
await new Promise((resolve) => setTimeout(resolve, RETRY_DELAY_MS));
|
|
480
|
+
updateStep = await runStep({
|
|
481
|
+
runCommand,
|
|
482
|
+
name: `${installArgv.join(" ")} (retry ${attempt}/${MAX_RETRIES})`,
|
|
483
|
+
argv: installArgv,
|
|
484
|
+
cwd: pkgRoot,
|
|
485
|
+
timeoutMs,
|
|
486
|
+
env: { PATH: augmentedPath },
|
|
487
|
+
progress,
|
|
488
|
+
stepIndex: 0,
|
|
489
|
+
totalSteps: 1,
|
|
490
|
+
});
|
|
491
|
+
}
|
|
469
492
|
const steps = [updateStep];
|
|
470
493
|
const afterVersion = await readPackageVersion(pkgRoot);
|
|
471
494
|
// Post-install verification: check for issues even when exit code is 0
|