@@ -111,7 +111,7 @@ describe("package acceptance workflow", () => {
|
111 | 111 | 'if [[ "$main_version" != "$release_package_version" &&', |
112 | 112 | ); |
113 | 113 | const evidenceDownloadIndex = workflow.indexOf( |
114 | | -'if ! gh release download "$evidence_source_tag"', |
| 114 | +'gh_with_retry release download "$evidence_source_tag"', |
115 | 115 | ); |
116 | 116 | const partialRepairIndex = workflow.indexOf('if [[ -f "$closeout_json_path" ]]; then'); |
117 | 117 | const existingCloseoutEvidenceMatchIndex = workflow.indexOf( |
@@ -122,7 +122,9 @@ describe("package acceptance workflow", () => {
|
122 | 122 | expect(workflow).toContain('--pattern "$evidence_checksum_asset"'); |
123 | 123 | expect(workflow).toContain('fallback_package_version="${BASH_REMATCH[1]}"'); |
124 | 124 | expect(workflow).toContain('tag_package_content="$RUNNER_TEMP/tag-package-content.b64"'); |
125 | | -expect(workflow).toContain('gh api "repos/$GITHUB_REPOSITORY/contents/package.json?ref=$tag"'); |
| 125 | +expect(workflow).toContain( |
| 126 | +'gh_with_retry api "repos/$GITHUB_REPOSITORY/contents/package.json?ref=$tag"', |
| 127 | +); |
126 | 128 | expect(workflow).toContain("for attempt in 1 2 3; do"); |
127 | 129 | expect(workflow).toContain("sleep $((attempt * 5))"); |
128 | 130 | expect(workflow).toContain( |
@@ -133,7 +135,7 @@ describe("package acceptance workflow", () => {
|
133 | 135 | ); |
134 | 136 | expect(workflow).toContain('tag_package_version="$(jq -r'); |
135 | 137 | expect(workflow).toContain('evidence_source_tag="v$fallback_package_version"'); |
136 | | -expect(workflow).toContain('gh release download "$evidence_source_tag"'); |
| 138 | +expect(workflow).toContain('gh_with_retry release download "$evidence_source_tag"'); |
137 | 139 | expect(workflow).toContain("Checkout fallback evidence tag"); |
138 | 140 | expect(workflow).toContain("Bind fallback correction to the published package source"); |
139 | 141 | expect(workflow).toContain( |
|