ci(release): stabilize beta validation gates · openclaw/openclaw@79197b3
steipete
·
2026-05-20
·
via Recent Commits to openclaw:main
File tree
.github/actions/setup-pnpm-store-cache
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -47,6 +47,29 @@ runs:
|
47 | 47 | echo "::error::Invalid pnpm-version input: '$PNPM_VERSION'" |
48 | 48 | exit 2 |
49 | 49 | fi |
| 50 | + if [[ -n "${RUNNER_TOOL_CACHE:-}" && -n "${NODE_VERSION:-}" ]]; then |
| 51 | + requested_node="${NODE_VERSION#v}" |
| 52 | + node_tool_root="${RUNNER_TOOL_CACHE}/node" |
| 53 | + node_bin="" |
| 54 | + if [[ "$requested_node" == *x ]]; then |
| 55 | + requested_major="${requested_node%%.*}" |
| 56 | + node_bin="$( |
| 57 | + find "$node_tool_root" -path "*/bin/node" -type f 2>/dev/null | |
| 58 | + awk -F/ -v major="$requested_major" '$(NF-2) ~ ("^" major "\\.") { print }' | |
| 59 | + sort -r | |
| 60 | + head -n 1 |
| 61 | + )" |
| 62 | + elif [[ -d "${node_tool_root}/${requested_node}" ]]; then |
| 63 | + node_bin="$(find "${node_tool_root}/${requested_node}" -path "*/bin/node" -type f 2>/dev/null | head -n 1)" |
| 64 | + fi |
| 65 | + if [[ -n "$node_bin" ]]; then |
| 66 | + export PATH="$(dirname "$node_bin"):$PATH" |
| 67 | + hash -r |
| 68 | + fi |
| 69 | + fi |
| 70 | + node -v |
| 71 | + command -v node |
| 72 | + command -v corepack |
50 | 73 | corepack enable |
51 | 74 | for attempt in 1 2 3; do |
52 | 75 | if corepack prepare "pnpm@$PNPM_VERSION" --activate; then |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -791,6 +791,7 @@ describe("runCodexAppServerAttempt", () => {
|
791 | 791 | const workspaceDir = path.join(tempDir, "workspace"); |
792 | 792 | const params = createParams(sessionFile, workspaceDir); |
793 | 793 | params.disableTools = false; |
| 794 | +params.runtimePlan = createCodexRuntimePlanFixture(); |
794 | 795 | const sandboxSessionKey = params.sessionKey; |
795 | 796 | if (!sandboxSessionKey) { |
796 | 797 | throw new Error("createParams must provide a sessionKey for Codex dynamic tool tests."); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。