@treeseed/sdk 0.12.36 → 0.12.37
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.
|
@@ -973,7 +973,7 @@ async function validateRepositoryLockfile(node, options) {
|
|
|
973
973
|
return { status: "skipped", command: commandText, issues: [], error: "disabled" };
|
|
974
974
|
}
|
|
975
975
|
try {
|
|
976
|
-
runCapturedCommand(node, options, "lockfile", command, args, { timeoutMs:
|
|
976
|
+
runCapturedCommand(node, options, "lockfile", command, args, { timeoutMs: 6e5, emitOutputOnSuccess: false });
|
|
977
977
|
const packageCount = npmLockfilePackageCount(node.path);
|
|
978
978
|
const countText = packageCount === null ? "package-lock entries" : `${packageCount} package${packageCount === 1 ? "" : "s"}`;
|
|
979
979
|
emitProgress(options, node, "lockfile", `Lockfile validation passed: ${countText} checked, 0 issues.`);
|
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
createPersistentDeployTarget,
|
|
45
45
|
destroyTreeseedEnvironmentResources,
|
|
46
46
|
loadDeployState,
|
|
47
|
+
purgeSourcePageCaches,
|
|
47
48
|
recordHostedDeploymentState,
|
|
48
49
|
resolveConfiguredSurfaceDomain,
|
|
49
50
|
validateDestroyPrerequisites
|
|
@@ -646,6 +647,21 @@ async function runReleaseWebLiveVerification(root, environment, helpers, operati
|
|
|
646
647
|
...helpers.context.env,
|
|
647
648
|
...collectTreeseedConfigSeedValues(root, environment, helpers.context.env)
|
|
648
649
|
};
|
|
650
|
+
let purge;
|
|
651
|
+
try {
|
|
652
|
+
purge = purgeSourcePageCaches(root, { target: environment, env });
|
|
653
|
+
} catch (error) {
|
|
654
|
+
workflowError(operation, "hosted_live_verification_failed", `Production web cache purge failed before root live verification:
|
|
655
|
+
${error instanceof Error ? error.message : String(error)}`, {
|
|
656
|
+
details: { environment }
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
if (purge?.skipped) {
|
|
660
|
+
workflowError(operation, "hosted_live_verification_failed", `Production web cache purge was skipped before root live verification: ${purge.reason ?? "unknown reason"}`, {
|
|
661
|
+
details: { environment, purge }
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
helpers.write(`[${operation}][cloudflare] purged production source page cache for ${purge?.urls?.length ?? 0} urls before web live verification.`, "stderr");
|
|
649
665
|
const live = await collectTreeseedLiveHostedServiceChecks({
|
|
650
666
|
tenantRoot: root,
|
|
651
667
|
target: environment,
|