@resolveio/server-lib 22.3.159 → 22.3.161
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.
|
@@ -565,7 +565,9 @@ export interface ResolveIOSupportV5AutonomousDecision {
|
|
|
565
565
|
canEditProductCode: boolean;
|
|
566
566
|
canRunModel: boolean;
|
|
567
567
|
canRunQa: boolean;
|
|
568
|
+
canPrepareHotfixPatch: boolean;
|
|
568
569
|
canHotfixBackend: boolean;
|
|
570
|
+
liveHotfixBlockedUntilCommit: boolean;
|
|
569
571
|
canDraftCustomerReply: boolean;
|
|
570
572
|
canSendCustomerReply: boolean;
|
|
571
573
|
lane: ResolveIOSupportV5Lane | 'release' | 'customer';
|
|
@@ -2498,7 +2498,9 @@ function decideResolveIOSupportV5AutonomousNextAction(input) {
|
|
|
2498
2498
|
canEditProductCode: fields.canEditProductCode === true,
|
|
2499
2499
|
canRunModel: fields.canRunModel === true,
|
|
2500
2500
|
canRunQa: fields.canRunQa === true,
|
|
2501
|
+
canPrepareHotfixPatch: fields.canPrepareHotfixPatch === true,
|
|
2501
2502
|
canHotfixBackend: fields.canHotfixBackend === true,
|
|
2503
|
+
liveHotfixBlockedUntilCommit: fields.liveHotfixBlockedUntilCommit === true,
|
|
2502
2504
|
canDraftCustomerReply: fields.canDraftCustomerReply === true,
|
|
2503
2505
|
canSendCustomerReply: false,
|
|
2504
2506
|
lane: fields.lane || (activeMicrotask === null || activeMicrotask === void 0 ? void 0 : activeMicrotask.lane) || 'supervisor',
|
|
@@ -2674,11 +2676,18 @@ function decideResolveIOSupportV5AutonomousNextAction(input) {
|
|
|
2674
2676
|
'Do not mark a hotfix durable without sourceCommitSha, githubCommitUrl, and passed gitPushStatus.',
|
|
2675
2677
|
'Do not run a full deploy to clear a duplicate release loop unless force evidence explicitly allows one.'
|
|
2676
2678
|
];
|
|
2679
|
+
var hotfixGitGuard = hotfixContinuation.githubCommitGuard;
|
|
2680
|
+
var liveHotfixBlockedUntilCommit = hotfixContinuation.action === 'record_hotfix_evidence'
|
|
2681
|
+
|| (hotfixGitGuard === null || hotfixGitGuard === void 0 ? void 0 : hotfixGitGuard.managerMustCommitBeforeHotfix) === true
|
|
2682
|
+
|| ((hotfixGitGuard === null || hotfixGitGuard === void 0 ? void 0 : hotfixGitGuard.required) === true && (hotfixGitGuard === null || hotfixGitGuard === void 0 ? void 0 : hotfixGitGuard.passed) !== true);
|
|
2683
|
+
var canPrepareHotfixPatch = hotfixContinuation.action !== 'park_manual';
|
|
2677
2684
|
return makeDecision('repair_release_hotfix_first', 'Hotfix Release', 'support_v5_release_blocked_hotfix_first', {
|
|
2678
2685
|
canRunAutonomously: hotfixContinuation.action !== 'park_manual',
|
|
2679
2686
|
canRunModel: false,
|
|
2680
2687
|
canEditProductCode: false,
|
|
2681
|
-
|
|
2688
|
+
canPrepareHotfixPatch: canPrepareHotfixPatch,
|
|
2689
|
+
canHotfixBackend: canPrepareHotfixPatch && !liveHotfixBlockedUntilCommit,
|
|
2690
|
+
liveHotfixBlockedUntilCommit: liveHotfixBlockedUntilCommit,
|
|
2682
2691
|
lane: 'release',
|
|
2683
2692
|
stepType: 'release_gate',
|
|
2684
2693
|
primaryCommand: hotfixPrimaryCommandByAction[hotfixContinuation.action] || 'record_hotfix_evidence',
|