@resolveio/server-lib 22.3.170 → 22.3.171

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "22.3.170",
3
+ "version": "22.3.171",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "package": "./build_package.sh",
@@ -511,7 +511,7 @@ function githubCommitProofBlockers(value, channel) {
511
511
  var sourceCommitSha = cleanText(value.sourceCommitSha, 120);
512
512
  var githubCommitUrl = cleanText(value.githubCommitUrl, 500);
513
513
  var gitCommitStatus = cleanText(value.gitCommitStatus, 160);
514
- var remoteCommitProofStatus = cleanText(value.gitPushStatus || value.gitCommitStatus, 160);
514
+ var gitPushStatus = cleanText(value.gitPushStatus, 160);
515
515
  var urlCommitSha = extractGithubCommitSha(githubCommitUrl);
516
516
  if (!sourceCommitSha || !githubCommitUrl) {
517
517
  blockers.push("".concat(channel, " hotfix requires sourceCommitSha, githubCommitUrl, and passed gitPushStatus so live hotfixes are backed by a GitHub commit pushed before continuation."));
@@ -526,13 +526,13 @@ function githubCommitProofBlockers(value, channel) {
526
526
  else if (isFullGitCommitSha(sourceCommitSha) && urlCommitSha !== sourceCommitSha.toLowerCase()) {
527
527
  blockers.push("".concat(channel, " hotfix githubCommitUrl commit SHA must match sourceCommitSha."));
528
528
  }
529
- if (!remoteCommitProofStatus) {
530
- blockers.push("".concat(channel, " hotfix requires passed gitPushStatus or gitCommitStatus so the manager knows the hotfix commit is present on GitHub before continuation."));
529
+ if (!gitPushStatus) {
530
+ blockers.push("".concat(channel, " hotfix requires passed gitPushStatus so the manager knows the hotfix commit is present on GitHub before continuation."));
531
531
  }
532
- else if (!hotfixStatusPassed(remoteCommitProofStatus)) {
533
- blockers.push("".concat(channel, " hotfix gitPushStatus or gitCommitStatus must be passed before continuation."));
532
+ else if (!hotfixStatusPassed(gitPushStatus)) {
533
+ blockers.push("".concat(channel, " hotfix gitPushStatus must be passed before continuation."));
534
534
  }
535
- if (gitCommitStatus && gitCommitStatus !== remoteCommitProofStatus && !hotfixStatusPassed(gitCommitStatus)) {
535
+ if (gitCommitStatus && !hotfixStatusPassed(gitCommitStatus)) {
536
536
  blockers.push("".concat(channel, " hotfix gitCommitStatus must be passed when provided."));
537
537
  }
538
538
  return blockers;
@@ -547,7 +547,7 @@ function evaluateResolveIOAIManagerHotfixGitProof(value, channelHint) {
547
547
  var githubCommitUrl = cleanText(source.githubCommitUrl || source.github_commit_url || source.gitCommitUrl || source.git_commit_url || source.commitUrl || source.commit_url, 500);
548
548
  var githubCommitSha = extractGithubCommitSha(githubCommitUrl);
549
549
  var gitCommitStatus = cleanText(source.gitCommitStatus || source.git_commit_status || source.githubCommitStatus || source.github_commit_status, 160);
550
- var gitPushStatus = cleanText(source.gitPushStatus || source.git_push_status || source.githubPushStatus || source.github_push_status || source.githubCommitReachableStatus || source.github_commit_reachable_status || gitCommitStatus, 160);
550
+ var gitPushStatus = cleanText(source.gitPushStatus || source.git_push_status || source.githubPushStatus || source.github_push_status || source.githubCommitReachableStatus || source.github_commit_reachable_status, 160);
551
551
  var blockers = required
552
552
  ? githubCommitProofBlockers({
553
553
  channel: channel,
@@ -582,7 +582,7 @@ function evaluateResolveIOAIManagerHotfixGitProof(value, channelHint) {
582
582
  ? ['commit_and_push_hotfix_to_github', 'verify_github_commit_url_and_push_status', 'record_hotfix_evidence']
583
583
  : [],
584
584
  requiredEvidence: required
585
- ? ['full 40-character sourceCommitSha', 'matching GitHub commit URL', 'passed gitPushStatus or gitCommitStatus']
585
+ ? ['full 40-character sourceCommitSha', 'matching GitHub commit URL', 'passed gitPushStatus']
586
586
  : []
587
587
  };
588
588
  }
@@ -834,7 +834,7 @@ function hotfixEvidenceFieldPresent(evidence, field) {
834
834
  case 'githubCommitUrl':
835
835
  return !!extractGithubCommitSha(evidence.githubCommitUrl || '');
836
836
  case 'gitPushStatus':
837
- return hotfixStatusPassed(evidence.gitPushStatus) || hotfixStatusPassed(evidence.gitCommitStatus);
837
+ return hotfixStatusPassed(evidence.gitPushStatus);
838
838
  case 'compiledArtifactPath':
839
839
  return !!cleanText(evidence.compiledArtifactPath, 500);
840
840
  case 'builtDistPath':
@@ -1747,7 +1747,7 @@ function recoveryReleaseRequiredEvidence(policy) {
1747
1747
  return Array.from(new Set(__spreadArray(__spreadArray(__spreadArray([], __read(policy.requiredEvidence), false), __read(stepEvidence), false), __read((policy.hotfixPreferred ? [
1748
1748
  'full 40-character sourceCommitSha',
1749
1749
  'matching githubCommitUrl',
1750
- 'passed gitPushStatus or gitCommitStatus before any live hotfix is treated as durable'
1750
+ 'passed gitPushStatus before any live hotfix is treated as durable'
1751
1751
  ] : [])), false).map(function (entry) { return cleanText(entry, 500); }).filter(Boolean))).slice(0, 30);
1752
1752
  }
1753
1753
  function recoveryReleaseSuccessEvidence(policy) {