Skip to content

Commit 0eafd2c

Browse files
committed
fix(skills): compose missing-root and Windows path repairs
2 parents 73e22af + 6fc1c2d commit 0eafd2c

788 files changed

Lines changed: 29666 additions & 11312 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.

‎.agents/skills/control-ui-e2e/SKILL.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ When running mocked Control UI/dashboard validation for a user-facing feature, p
4141
- After or alongside the focused E2E test, run the mocked Control UI app when available, for example `pnpm dev:ui:mock -- --port <port>`.
4242
- Drive Chromium with Playwright against the local mock URL and capture a video plus screenshots for each meaningful state: initial view, interaction input, result state, and final/paginated/selected state.
4343
- Use `browser.newContext({ recordVideo: { dir, size }, viewport })`, `page.screenshot({ path })`, and close the context before reporting the video path.
44-
- Put artifacts under `.artifacts/control-ui-e2e/<short-feature-name>/` or another clearly named local temp directory, and report the absolute paths in the final answer.
44+
- Allocate retained proof with `createControlUiE2eArtifactDir(scope, parentDir?)` from `ui/src/test-helpers/control-ui-e2e-artifacts.ts`. Each call atomically creates a fresh directory and logs its actual path. An explicit parent wins, then the trimmed existing `OPENCLAW_UI_E2E_ARTIFACT_DIR`, then the repository's `.artifacts/control-ui-e2e` parent. Existing custom output controls select parents; do not add or rewrite env vars to enable capture.
45+
- Allocate during the test/scenario or `beforeEach`, once per attempt; standalone scripts allocate once per invocation. Pass the owner explicitly to shared capture helpers. Keep the original gates, feature/stage names, viewports, waits, and recording options. Use distinct filenames for distinct stages and keep screenshots, reports, and video together.
46+
- Retain successful and failed evidence. Report actual allocated paths, including relocated filename overrides. Manually delete only exact owned directories after review; never clear shared parents before a replay. Disposable build/media fixtures and owned temporary raw video may keep their cleanup. New synthetic captures do not recover overwritten evidence.
47+
- Timeout diagnostics use fresh children beneath their existing diagnostic parent. Mantis retains every capture attempt under an invocation-owned directory and refuses to overwrite reports. Real-Gateway suites, `chat-outbox-*`, and `chat-attachment-read-lifecycle` remain separate owners; coordinate before claiming replay-safe retention there.
4548
- Treat recording as validation, not only demo capture. If the recorder fails or shows surprising behavior, stop, fix the behavior, add or update a regression test, then rerecord.
4649
- If visual proof is blocked, state the exact blocker and still report the textual E2E evidence.
4750

@@ -74,4 +77,4 @@ When recording an already-running mocked Control UI URL, use a temporary Playwri
7477
- Open the mock URL, interact through stable `data-*` selectors or user-facing role selectors, and wait on asserted states instead of relying on fixed sleeps.
7578
- Assert both visible UI state and mocked Gateway traffic for request-driven flows. For example, verify the expected count/row is visible and that `sessions.list` was called with the expected `search`, `offset`, and `limit`.
7679
- Use short sleeps only after assertions to make the captured video readable.
77-
- Store the generated video under `.artifacts/control-ui-e2e/<feature>/`; do not commit it.
80+
- Store the generated video in the invocation's fresh allocated directory; do not commit it or remove older captures.

‎.agents/skills/openclaw-changelog-update/SKILL.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ every human `Thanks @...` attribution.
4343
- record the successful Full Release Validation run id and attempt
4444
- stop if any product/version/backport change is still pending
4545
2. Audit history, including direct commits:
46-
- `git log --first-parent --date=iso-strict --pretty=format:'%h%x09%ad%x09%s' <base-tag>..<target-ref>`
47-
- `git log --first-parent --grep='(#' --date=short --pretty=format:'%h%x09%ad%x09%s' <base-tag>..<target-ref>`
46+
- `git log --topo-order --date=iso-strict --pretty=format:'%h%x09%ad%x09%s' <base-tag>..<target-ref>`
47+
- `git log --topo-order --grep='(#' --date=short --pretty=format:'%h%x09%ad%x09%s' <base-tag>..<target-ref>`
48+
- Include every commit reachable from the target but not the base, including merged side branches. Resolve PR associations before deduplicating and subtracting shipped records; retain the existing revert exclusions.
4849
- also inspect `--since='24 hours ago'` when main moved during the release.
4950
3. Generate the complete contribution record and editorial manifest before
5051
writing grouped prose:

‎.agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,8 @@ function sourceCommits(base, target, mainRef, releaseProvenance = []) {
10471047
}
10481048
const output = git([
10491049
"log",
1050-
"--first-parent",
1050+
// Merged side branches carry source PRs too; first-parent hides their credit.
1051+
"--topo-order",
10511052
"--reverse",
10521053
"--format=%H%x1f%s%x1f%an%x1f%ae%x1f%cI%x1f%B%x1e",
10531054
`${mergeBase}..${targetCommit}`,

‎.github/workflows/ci.yml‎

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,17 +3049,16 @@ jobs:
30493049
sparse-checkout-cone-mode: false
30503050
persist-credentials: false
30513051

3052-
# A few real-CLI E2E tests need a current dist tree. Build it before
3053-
# Vitest starts so the shard's worker processes cannot consume the
3054-
# cgroup memory that the build admission check must reserve. Reuse the
3055-
# CI artifact profile: these runtime readers do not need global declarations.
3052+
# Build the CLI runtime before Vitest workers consume memory or import dist.
3053+
# qaRuntime supplies the shared JavaScript, assets, and freshness stamps;
3054+
# build-artifacts owns SDK declaration and Control UI validation.
30563055
- name: Build Node test runtime
30573056
if: matrix.pretest_build_mode != null
30583057
env:
30593058
NODE_OPTIONS: --max-old-space-size=8192
30603059
OPENCLAW_BUILD_PRIVATE_QA: ${{ matrix.pretest_build_mode == 'private-qa' && '1' || '0' }}
30613060
VITEST: "1"
3062-
run: pnpm build:ci-artifacts
3061+
run: pnpm build qaRuntime
30633062

30643063
- name: Install ripgrep for native grep tests
30653064
if: matrix.requires_ripgrep == true && runner.os == 'Linux'
@@ -3341,11 +3340,15 @@ jobs:
33413340
lint_args=(--only=scripts --threads=1)
33423341
fi
33433342
export GOMAXPROCS=2
3343+
# Match local Go GC policy; thread limits alone leave the
3344+
# extension semantic graph too large for a 16GB runner.
3345+
export GOGC=30 GOMEMLIMIT=3GiB
33443346
elif [ "$(nproc)" -lt 8 ]; then
33453347
# Fork PRs build each semantic Program once. Bound both oxlint
33463348
# and its Go helper within the 4-core/16GB hosted runner.
33473349
lint_args=(--threads=1)
33483350
export GOMAXPROCS=2
3351+
export GOGC=30 GOMEMLIMIT=3GiB
33493352
fi
33503353
if [[ ! -f scripts/run-oxlint-shards.mts ]]; then
33513354
# The candidate's older shard runner owns all three source
@@ -4105,7 +4108,6 @@ jobs:
41054108
timeout-minutes: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || github.event_name == 'workflow_dispatch' || github.run_attempt > 1 || github.repository != 'openclaw/openclaw' || (github.event_name == 'pull_request' && !contains(fromJSON('["OWNER","MEMBER","COLLABORATOR","CONTRIBUTOR"]'), github.event.pull_request.author_association))) && 30 || 20 }}
41064109
env:
41074110
HISTORICAL_TARGET: ${{ needs.preflight.outputs.compatibility_target }}
4108-
SWIFT_TEST_EXECUTION: ${{ (github.event_name == 'workflow_dispatch' || github.run_attempt > 1) && 'serial' || 'parallel' }}
41094111
steps:
41104112
- *platform_checkout_step
41114113

@@ -4311,17 +4313,21 @@ jobs:
43114313
swift build "${swift_test_args[@]}" --build-tests
43124314
echo "debug-tests-built=true" >> "$GITHUB_OUTPUT"
43134315
swift_test_args+=(--skip-build)
4314-
if [[ "$SWIFT_TEST_EXECUTION" == "parallel" ]]; then
4315-
swift_test_args+=(--parallel)
4316-
else
4317-
swift_test_args+=(--no-parallel)
4318-
fi
43194316
if [[ -f scripts/test-macos-native.mts ]]; then
4317+
logical_cpu="$(sysctl -n hw.logicalcpu)"
4318+
if [[ ! "$logical_cpu" =~ ^[1-9][0-9]*$ ]]; then
4319+
echo "Invalid macOS logical CPU count: $logical_cpu" >&2
4320+
exit 1
4321+
fi
4322+
swift_test_width=$(( logical_cpu < 12 ? logical_cpu : 12 ))
4323+
echo "[macos-swift] Swift Testing parallelization width: $swift_test_width"
4324+
swift_test_args+=(--experimental-maximum-parallelization-width "$swift_test_width")
43204325
node scripts/test-macos-native.mts default "${swift_test_args[@]}" --skip AppStateIsolationTests
43214326
node scripts/test-macos-native.mts named "${swift_test_args[@]}" --filter AppStateIsolationTests
43224327
elif [[ "$HISTORICAL_TARGET" == "true" ]]; then
43234328
# Frozen release targets predate the resource-owner script and its tests.
43244329
# Their original suite still runs only on this disposable macOS worker.
4330+
swift_test_args+=(--no-parallel)
43254331
swift test "${swift_test_args[@]}"
43264332
else
43274333
echo "Current CI targets must provide scripts/test-macos-native.mts." >&2

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

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ on:
1818
outputs:
1919
state:
2020
description: Candidate acquisition state
21-
value: ${{ jobs.finalize.outputs.state }}
21+
value: ${{ jobs.resolve_candidate.outputs.state }}
2222
source:
2323
description: Whether the ready candidate was reused or freshly produced
24-
value: ${{ jobs.finalize.outputs.source }}
24+
value: ${{ jobs.resolve_candidate.outputs.source }}
2525
reuse_reason:
2626
description: Candidate acquisition result
2727
value: ${{ jobs.discover.outputs.reuse_reason }}
@@ -33,10 +33,10 @@ on:
3333
value: ${{ jobs.discover.outputs.request_sha256 }}
3434
binding_json:
3535
description: Validated immutable candidate binding
36-
value: ${{ jobs.finalize.outputs.binding_json }}
36+
value: ${{ jobs.resolve_candidate.outputs.binding_json }}
3737
candidate_artifact_json:
3838
description: Candidate artifact tuple for child workflows
39-
value: ${{ jobs.finalize.outputs.candidate_artifact_json }}
39+
value: ${{ jobs.resolve_candidate.outputs.candidate_artifact_json }}
4040

4141
permissions:
4242
actions: read
@@ -140,16 +140,17 @@ jobs:
140140
resolve_candidate:
141141
name: Resolve release candidate
142142
needs: [discover, prepare]
143-
if: ${{ always() && needs.discover.result == 'success' && (needs.prepare.result == 'success' || needs.prepare.result == 'skipped') }}
143+
if: always()
144144
runs-on: ubuntu-24.04
145145
timeout-minutes: 5
146146
outputs:
147-
state: ${{ steps.resolve.outputs.state }}
148-
source: ${{ steps.resolve.outputs.source }}
149-
binding_json: ${{ steps.resolve.outputs.binding_json }}
150-
candidate_artifact_json: ${{ steps.resolve.outputs.candidate_artifact_json }}
147+
state: ${{ steps.result.outputs.state }}
148+
source: ${{ steps.result.outputs.source }}
149+
binding_json: ${{ steps.result.outputs.binding_json }}
150+
candidate_artifact_json: ${{ steps.result.outputs.candidate_artifact_json }}
151151
steps:
152152
- name: Checkout candidate binding authority
153+
if: ${{ !cancelled() && needs.discover.result == 'success' && (needs.prepare.result == 'success' || needs.prepare.result == 'skipped') }}
153154
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
154155
with:
155156
ref: ${{ github.sha }}
@@ -166,6 +167,7 @@ jobs:
166167
persist-credentials: false
167168

168169
- name: Resolve candidate binding
170+
if: ${{ success() && needs.discover.result == 'success' && (needs.prepare.result == 'success' || needs.prepare.result == 'skipped') }}
169171
id: resolve
170172
env:
171173
CANDIDATE_REQUEST_JSON: ${{ needs.discover.outputs.request_json }}
@@ -193,36 +195,29 @@ jobs:
193195
printf 'candidate_artifact_json=%s\n' "$(jq -r '.candidateArtifactJson' <<< "$result")"
194196
} >> "$GITHUB_OUTPUT"
195197
196-
finalize:
197-
name: Finalize release candidate acquisition
198-
needs: [discover, prepare, resolve_candidate]
199-
if: always()
200-
runs-on: ubuntu-24.04
201-
timeout-minutes: 5
202-
outputs:
203-
state: ${{ steps.result.outputs.state }}
204-
source: ${{ steps.result.outputs.source }}
205-
binding_json: ${{ steps.result.outputs.binding_json }}
206-
candidate_artifact_json: ${{ steps.result.outputs.candidate_artifact_json }}
207-
steps:
198+
# A failed or cancelled binding must never publish ready, even if it wrote outputs.
199+
# Runner loss may omit this projection; callers also require acquisition success.
208200
- name: Record candidate acquisition result
201+
if: always()
209202
id: result
210203
env:
204+
JOB_STATUS: ${{ job.status }}
211205
DISCOVERY_RESULT: ${{ needs.discover.result }}
212206
DISCOVERY_STATE: ${{ needs.discover.outputs.state }}
213207
PREPARE_RESULT: ${{ needs.prepare.result }}
214-
RESOLVE_RESULT: ${{ needs.resolve_candidate.result }}
215-
RESOLVED_STATE: ${{ needs.resolve_candidate.outputs.state }}
216-
RESOLVED_SOURCE: ${{ needs.resolve_candidate.outputs.source }}
217-
BINDING_JSON: ${{ needs.resolve_candidate.outputs.binding_json }}
218-
CANDIDATE_ARTIFACT_JSON: ${{ needs.resolve_candidate.outputs.candidate_artifact_json }}
208+
RESOLVE_RESULT: ${{ steps.resolve.outcome }}
209+
RESOLVED_STATE: ${{ steps.resolve.outputs.state }}
210+
RESOLVED_SOURCE: ${{ steps.resolve.outputs.source }}
211+
BINDING_JSON: ${{ steps.resolve.outputs.binding_json }}
212+
CANDIDATE_ARTIFACT_JSON: ${{ steps.resolve.outputs.candidate_artifact_json }}
219213
run: |
220214
set -euo pipefail
221215
state=unavailable
222216
source=""
223217
binding_json=""
224218
candidate_artifact_json=""
225-
if [[ "$DISCOVERY_RESULT" == "success" &&
219+
if [[ "$JOB_STATUS" == "success" &&
220+
"$DISCOVERY_RESULT" == "success" &&
226221
"$DISCOVERY_STATE" != "unavailable" &&
227222
"$PREPARE_RESULT" =~ ^(success|skipped)$ &&
228223
"$RESOLVE_RESULT" == "success" &&
@@ -240,6 +235,7 @@ jobs:
240235
} >> "$GITHUB_OUTPUT"
241236
242237
- name: Enforce candidate acquisition
238+
if: always()
243239
env:
244240
STATE: ${{ steps.result.outputs.state }}
245241
run: |

0 commit comments

Comments
 (0)