Skip to content

Commit 6157855

Browse files
Merge branch 'main' into fix/cli-runtime-alias-harness-selection
2 parents b5a42f0 + d7896ed commit 6157855

263 files changed

Lines changed: 8868 additions & 1082 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actions/setup-pnpm-store-cache/action.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,29 @@ runs:
4747
echo "::error::Invalid pnpm-version input: '$PNPM_VERSION'"
4848
exit 2
4949
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
5073
corepack enable
5174
for attempt in 1 2 3; do
5275
if corepack prepare "pnpm@$PNPM_VERSION" --activate; then

‎.github/pull_request_template.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ If this PR fixes a plugin beta-release blocker, title it `fix(<plugin-id>): beta
99
- What changed:
1010
- What did NOT change (scope boundary):
1111

12+
## Motivation
13+
14+
Explain why this change should exist now. Link it to the user pain, failure mode, maintainer need, or product goal. If this is purely mechanical, write `N/A`.
15+
16+
-
17+
1218
## Change Type (select all)
1319

1420
- [ ] Bug fix
@@ -35,12 +41,6 @@ If this PR fixes a plugin beta-release blocker, title it `fix(<plugin-id>): beta
3541
- Related #
3642
- [ ] This PR fixes a bug or regression
3743

38-
## Motivation
39-
40-
Explain why this change should exist now. Link it to the user pain, failure mode, maintainer need, or product goal. If this is purely mechanical, write `N/A`.
41-
42-
-
43-
4444
## Real behavior proof (required for external PRs)
4545

4646
External contributors must show after-fix evidence from a real OpenClaw setup. Unit tests, mocks, lint, typechecks, snapshots, and CI are supplemental only. Screenshots are encouraged even for CLI, console, text, or log changes; terminal screenshots and copied live output count. Be mindful of private information like IP addresses, API keys, phone numbers, non-public endpoints, or other private details when providing evidence.

‎.github/workflows/docker-release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
cache-from: type=gha,scope=docker-release-amd64
156156
cache-to: type=gha,mode=max,scope=docker-release-amd64
157157
build-args: |
158-
OPENCLAW_EXTENSIONS=diagnostics-otel
158+
OPENCLAW_EXTENSIONS=diagnostics-otel,codex
159159
tags: ${{ steps.tags.outputs.value }}
160160
labels: ${{ steps.labels.outputs.value }}
161161
sbom: true
@@ -253,7 +253,7 @@ jobs:
253253
cache-from: type=gha,scope=docker-release-arm64
254254
cache-to: type=gha,mode=max,scope=docker-release-arm64
255255
build-args: |
256-
OPENCLAW_EXTENSIONS=diagnostics-otel
256+
OPENCLAW_EXTENSIONS=diagnostics-otel,codex
257257
tags: ${{ steps.tags.outputs.value }}
258258
labels: ${{ steps.labels.outputs.value }}
259259
sbom: true

‎.github/workflows/full-release-validation.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ permissions:
108108

109109
concurrency:
110110
group: full-release-validation-${{ inputs.ref }}-${{ inputs.rerun_group }}
111-
cancel-in-progress: ${{ inputs.ref == 'main' && inputs.rerun_group == 'all' }}
111+
cancel-in-progress: ${{ (inputs.ref == 'main' && inputs.rerun_group == 'all') || startsWith(inputs.ref, 'tideclaw/alpha/') }}
112112

113113
env:
114114
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

‎.github/workflows/labeler.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ jobs:
760760
core.info(`Processed ${processed} pull requests.`);
761761
762762
label-issues:
763+
if: github.event_name == 'issues'
763764
permissions:
764765
issues: write
765766
runs-on: ubuntu-24.04

‎.github/workflows/mantis-telegram-desktop-proof.yml‎

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ jobs:
484484
- name: Release leaked Telegram proof leases
485485
if: ${{ always() }}
486486
env:
487+
CRABBOX_PROVIDER: ${{ needs.resolve_request.outputs.crabbox_provider }}
487488
OPENCLAW_QA_CONVEX_SECRET_CI: ${{ secrets.OPENCLAW_QA_CONVEX_SECRET_CI }}
488489
OPENCLAW_QA_CONVEX_SITE_URL: ${{ secrets.OPENCLAW_QA_CONVEX_SITE_URL }}
489490
shell: bash
@@ -492,17 +493,34 @@ jobs:
492493
if [[ ! -d .artifacts/qa-e2e ]]; then
493494
exit 0
494495
fi
496+
status=0
497+
mapfile -d '' session_files < <(sudo find .artifacts/qa-e2e -path '*/telegram-user-crabbox/*/session.json' -type f -print0)
498+
for session_file in "${session_files[@]}"; do
499+
lease_file="${session_file%/session.json}/.session/lease.json"
500+
if [[ ! -f "$lease_file" ]]; then
501+
continue
502+
fi
503+
if ! sudo -u codex env \
504+
OPENCLAW_QA_CONVEX_SECRET_CI="$OPENCLAW_QA_CONVEX_SECRET_CI" \
505+
OPENCLAW_QA_CONVEX_SITE_URL="$OPENCLAW_QA_CONVEX_SITE_URL" \
506+
OPENCLAW_TELEGRAM_USER_CRABBOX_BIN=/usr/local/bin/crabbox \
507+
OPENCLAW_TELEGRAM_USER_CRABBOX_PROVIDER="$CRABBOX_PROVIDER" \
508+
node --import tsx "$GITHUB_WORKSPACE/scripts/e2e/telegram-user-crabbox-proof.ts" \
509+
finish --session "$session_file" --preview-crop telegram-window; then
510+
status=1
511+
fi
512+
done
495513
mapfile -d '' lease_files < <(sudo find .artifacts/qa-e2e -path '*/telegram-user-crabbox/*/.session/lease.json' -type f -print0)
496-
if [[ "${#lease_files[@]}" -eq 0 ]]; then
497-
exit 0
498-
fi
499514
for lease_file in "${lease_files[@]}"; do
500-
sudo -u codex env \
515+
if ! sudo -u codex env \
501516
OPENCLAW_QA_CONVEX_SECRET_CI="$OPENCLAW_QA_CONVEX_SECRET_CI" \
502517
OPENCLAW_QA_CONVEX_SITE_URL="$OPENCLAW_QA_CONVEX_SITE_URL" \
503518
node --import tsx "$GITHUB_WORKSPACE/scripts/e2e/telegram-user-credential.ts" \
504-
release --lease-file "$lease_file"
519+
release --lease-file "$lease_file"; then
520+
status=1
521+
fi
505522
done
523+
exit "$status"
506524
507525
- name: Inspect Mantis evidence manifest
508526
id: inspect

‎.github/workflows/openclaw-npm-release.yml‎

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on:
3232

3333
concurrency:
3434
group: openclaw-npm-release-${{ github.event_name == 'workflow_dispatch' && format('{0}-{1}', inputs.tag, inputs.npm_dist_tag) || github.ref }}
35-
cancel-in-progress: false
35+
cancel-in-progress: ${{ github.event_name == 'workflow_dispatch' && inputs.preflight_only && inputs.npm_dist_tag == 'alpha' }}
3636

3737
env:
3838
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
@@ -511,10 +511,25 @@ jobs:
511511
preferred_name="openclaw-npm-preflight-${RELEASE_TAG}"
512512
rm -rf preflight-tarball
513513
mkdir -p preflight-tarball
514-
if gh run download "${PREFLIGHT_RUN_ID}" \
515-
--repo "${GITHUB_REPOSITORY}" \
516-
--name "${preferred_name}" \
517-
--dir preflight-tarball; then
514+
515+
download_named_artifact() {
516+
local artifact_name="$1"
517+
for attempt in 1 2 3; do
518+
if gh run download "${PREFLIGHT_RUN_ID}" \
519+
--repo "${GITHUB_REPOSITORY}" \
520+
--name "${artifact_name}" \
521+
--dir preflight-tarball; then
522+
return 0
523+
fi
524+
if [[ "$attempt" != "3" ]]; then
525+
echo "::warning::Artifact download for ${artifact_name} failed on attempt ${attempt}; retrying."
526+
sleep $((attempt * 10))
527+
fi
528+
done
529+
return 1
530+
}
531+
532+
if download_named_artifact "${preferred_name}"; then
518533
echo "Downloaded ${preferred_name}."
519534
return 0
520535
fi
@@ -530,10 +545,7 @@ jobs:
530545
exit 1
531546
fi
532547
fallback_name="${matches[0]}"
533-
gh run download "${PREFLIGHT_RUN_ID}" \
534-
--repo "${GITHUB_REPOSITORY}" \
535-
--name "${fallback_name}" \
536-
--dir preflight-tarball
548+
download_named_artifact "${fallback_name}"
537549
echo "Downloaded fallback preflight artifact ${fallback_name}."
538550
}
539551

‎.github/workflows/openclaw-release-checks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ on:
8181

8282
concurrency:
8383
group: openclaw-release-checks-${{ inputs.expected_sha || inputs.ref }}-${{ inputs.rerun_group }}
84-
cancel-in-progress: false
84+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/heads/tideclaw/alpha/') }}
8585

8686
env:
8787
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

‎.github/workflows/openclaw-release-publish.yml‎

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,25 @@ jobs:
153153
preflight_dir="${RUNNER_TEMP}/openclaw-npm-preflight-manifest"
154154
rm -rf "${preflight_dir}"
155155
mkdir -p "${preflight_dir}"
156-
if gh run download "${PREFLIGHT_RUN_ID}" \
157-
--repo "${GITHUB_REPOSITORY}" \
158-
--name "${preferred_name}" \
159-
--dir "${preflight_dir}"; then
156+
157+
download_named_artifact() {
158+
local artifact_name="$1"
159+
for attempt in 1 2 3; do
160+
if gh run download "${PREFLIGHT_RUN_ID}" \
161+
--repo "${GITHUB_REPOSITORY}" \
162+
--name "${artifact_name}" \
163+
--dir "${preflight_dir}"; then
164+
return 0
165+
fi
166+
if [[ "$attempt" != "3" ]]; then
167+
echo "::warning::Artifact download for ${artifact_name} failed on attempt ${attempt}; retrying."
168+
sleep $((attempt * 10))
169+
fi
170+
done
171+
return 1
172+
}
173+
174+
if download_named_artifact "${preferred_name}"; then
160175
echo "name=${preferred_name}" >> "$GITHUB_OUTPUT"
161176
exit 0
162177
fi
@@ -172,10 +187,7 @@ jobs:
172187
exit 1
173188
fi
174189
fallback_name="${matches[0]}"
175-
gh run download "${PREFLIGHT_RUN_ID}" \
176-
--repo "${GITHUB_REPOSITORY}" \
177-
--name "${fallback_name}" \
178-
--dir "${preflight_dir}"
190+
download_named_artifact "${fallback_name}"
179191
echo "name=${fallback_name}" >> "$GITHUB_OUTPUT"
180192
181193
- name: Download full release validation manifest
@@ -645,10 +657,14 @@ jobs:
645657
--workflow-ref "${CHILD_WORKFLOW_REF}"
646658
--full-release-validation-run "${FULL_RELEASE_VALIDATION_RUN_ID}"
647659
--plugin-npm-run "${plugin_npm_run_id}"
648-
--plugin-clawhub-run "${plugin_clawhub_run_id}"
649660
--openclaw-npm-run "${openclaw_npm_run_id}"
650661
--evidence-out "${evidence_path}"
651662
)
663+
if [[ "${WAIT_FOR_CLAWHUB}" == "true" ]]; then
664+
verify_args+=(--plugin-clawhub-run "${plugin_clawhub_run_id}")
665+
else
666+
verify_args+=(--skip-clawhub)
667+
fi
652668
if [[ -n "${PLUGINS// }" ]]; then
653669
verify_args+=(--plugins "${PLUGINS}")
654670
fi
@@ -671,11 +687,11 @@ jobs:
671687
echo "- Release SHA: \`${TARGET_SHA}\`"
672688
echo "- Plugin npm and ClawHub publish: dispatched in parallel"
673689
if [[ "${PUBLISH_OPENCLAW_NPM}" == "true" ]]; then
674-
echo "- OpenClaw npm publish: starts after plugin npm succeeds; final verification waits for ClawHub"
690+
echo "- OpenClaw npm publish: starts after plugin npm succeeds"
675691
else
676692
echo "- OpenClaw npm publish: skipped by input"
677693
fi
678-
if [[ "${WAIT_FOR_CLAWHUB}" == "true" || "${PUBLISH_OPENCLAW_NPM}" == "true" ]]; then
694+
if [[ "${WAIT_FOR_CLAWHUB}" == "true" ]]; then
679695
echo "- Workflow completion waits for ClawHub"
680696
else
681697
echo "- Workflow completion does not wait for ClawHub; monitor the dispatched ClawHub run separately"
@@ -717,7 +733,7 @@ jobs:
717733
718734
clawhub_result=""
719735
clawhub_pid=""
720-
if [[ "${WAIT_FOR_CLAWHUB}" == "true" || "${PUBLISH_OPENCLAW_NPM}" == "true" ]]; then
736+
if [[ "${WAIT_FOR_CLAWHUB}" == "true" ]]; then
721737
clawhub_result="$RUNNER_TEMP/clawhub-result.txt"
722738
wait_run_pid=""
723739
wait_for_run_background plugin-clawhub-release.yml "${plugin_clawhub_run_id}" "${clawhub_result}"

0 commit comments

Comments
 (0)