fix: repair release validation follow-up checks · openclaw/openclaw@110fa97
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -421,7 +421,7 @@ describe("createEmbeddedLobsterRunner", () => {
|
421 | 421 | await loadEmbeddedToolRuntimeFromPackage(); |
422 | 422 | |
423 | 423 | const corePath = requireForTest.resolve("@clawdbot/lobster/core"); |
424 | | -const validationPath = corePath.replace(/\/core\/index\.js$/, "/validation.js"); |
| 424 | +const validationPath = path.join(path.dirname(path.dirname(corePath)), "validation.js"); |
425 | 425 | const validationModule = (await import(pathToFileURL(validationPath).href)) as { |
426 | 426 | sharedAjv: import("ajv").default; |
427 | 427 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -60,13 +60,13 @@ describe("test-install-sh-docker", () => {
|
60 | 60 | expect(script).toContain('echo "==> Reuse local dist/ from Docker image: $image"'); |
61 | 61 | }); |
62 | 62 | |
63 | | -it("allows release branch head refs for secret-backed Docker release checks", () => { |
| 63 | +it("allows repository branch history and release tags for secret-backed Docker release checks", () => { |
64 | 64 | const workflow = readFileSync(LIVE_E2E_WORKFLOW_PATH, "utf8"); |
65 | 65 | |
66 | | -expect(workflow).toContain("WORKFLOW_REF_NAME: ${{ github.ref_name }}"); |
67 | | -expect(workflow).toContain("release-branch-head"); |
68 | | -expect(workflow).toContain("refs/remotes/origin/${WORKFLOW_REF_NAME}"); |
69 | | -expect(workflow).toContain("match the current release branch head"); |
| 66 | +expect(workflow).toContain("git fetch --no-tags origin '+refs/heads/*:refs/remotes/origin/*'"); |
| 67 | +expect(workflow).toContain("repository-branch-history"); |
| 68 | +expect(workflow).toContain("git tag --points-at \"$selected_sha\" | grep -Eq '^v'"); |
| 69 | +expect(workflow).toContain("reachable from an OpenClaw branch or release tag"); |
70 | 70 | }); |
71 | 71 | |
72 | 72 | it("prints package size audits for release smoke tarballs", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。