fix(ci): retry stable closeout package lookup · openclaw/openclaw@b5811ea
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -119,9 +119,17 @@ describe("package acceptance workflow", () => {
|
119 | 119 | expect(workflow).toContain('evidence_checksum_asset="${evidence_asset}.sha256"'); |
120 | 120 | expect(workflow).toContain('--pattern "$evidence_checksum_asset"'); |
121 | 121 | expect(workflow).toContain('fallback_package_version="${BASH_REMATCH[1]}"'); |
| 122 | +expect(workflow).toContain('tag_package_content="$RUNNER_TEMP/tag-package-content.b64"'); |
| 123 | +expect(workflow).toContain('gh api "repos/$GITHUB_REPOSITORY/contents/package.json?ref=$tag"'); |
| 124 | +expect(workflow).toContain("for attempt in 1 2 3; do"); |
| 125 | +expect(workflow).toContain("sleep $((attempt * 5))"); |
122 | 126 | expect(workflow).toContain( |
123 | | -'tag_package_version="$(gh api "repos/$GITHUB_REPOSITORY/contents/package.json?ref=$tag"', |
| 127 | +"Stable closeout could not read package.json for $tag from GitHub API.", |
124 | 128 | ); |
| 129 | +expect(workflow).toContain( |
| 130 | +"Stable closeout package.json content for $tag was not valid base64.", |
| 131 | +); |
| 132 | +expect(workflow).toContain('tag_package_version="$(jq -r'); |
125 | 133 | expect(workflow).toContain('evidence_source_tag="v$fallback_package_version"'); |
126 | 134 | expect(workflow).toContain('gh release download "$evidence_source_tag"'); |
127 | 135 | expect(workflow).toContain("Checkout fallback evidence tag"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。