Skip to content

Commit faf2dc4

Browse files
committed
fix(sessions): compose streaming imports with physical store repairs
Preserve the landed streaming readers and finalization while forwarding physical SQLite ownership and logical selection throughout startup and Doctor repair. Avoid provider setup discovery when Doctor has no auth profile state to repair, and isolate mock provider credentials in both session lifecycle proof modes.
2 parents 1a6534b + 7573b91 commit faf2dc4

1,051 files changed

Lines changed: 43566 additions & 14840 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/openclaw-pr-maintainer/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ gh search issues --repo openclaw/openclaw --match title,body --limit 50 \
367367
- PR-create merge-ref race recognition: the dropped/killed pull_request CI run appears as `startup_failure`/`BuildFailed` (`(Unknown event)`) and is not rerunnable — close/reopen or wait for the hourly `pr-ci-sweeper`; rerun attempts are wasted.
368368
- Preferred PR/issue media upload: when the command help exposes `--attach`, use the repeatable flag on `gh issue create`, `gh issue edit`, `gh issue comment`, and the matching `gh pr` commands. Example: `gh pr comment <pr> --repo openclaw/openclaw --body-file <comment.md> --attach <proof.mp4>`.
369369
- `gh --attach` video rules: accepted extensions are `.mp4`, `.mov`, and `.webm`; the local maximum is 100 MB, while GitHub's account limit may be lower. Do not add `#alt` to a video path. `gh` inserts a bare URL so GitHub renders a player, and the uploaded asset cannot be deleted.
370-
- Compatibility fallback: if the installed `gh` lacks `--attach`, use the raw user-attachments upload command in root `AGENTS.md`. For that endpoint, 422 = unsupported type and 404 = bad repo id/no push. Use `content_type` `video/mp4`, `video/quicktime`, or `video/webm`, and put the returned URL on its own bare line; `![]()` does not render the player. Transcode Playwright webm via `ffmpeg -i in.webm -c:v libx264 -pix_fmt yuv420p out.mp4` for broad playback. Non-media artifacts or endpoint failure: Crabbox artifact publishing plus the manifest URL.
370+
- Compatibility fallback: if the installed `gh` lacks `--attach`, upload directly with `curl -s "https://uploads.github.com/user-attachments/assets?name=<file>&content_type=<mime>&repository_id=$(gh api repos/<owner>/<repo> --jq .id)" -X POST -H "Authorization: Bearer $(gh auth token)" -H "Accept: application/json" --data-binary @<file>`, then embed the returned `.url`: images as `![alt](url)`, video as a bare line so GitHub renders a player. For that endpoint, 422 = unsupported type and 404 = bad repo id/no push. Use `content_type` `video/mp4`, `video/quicktime`, or `video/webm`; `![]()` does not render the player. Transcode Playwright webm via `ffmpeg -i in.webm -c:v libx264 -pix_fmt yuv420p out.mp4` for broad playback. Both paths use the same drag-drop CDN, inherit repository visibility, and need no browser/computer use. Non-media artifacts or endpoint failure: Crabbox artifact publishing plus the manifest URL.
371371
- Use standard Git commands and stage only the files intended for each commit.
372372
- Keep commit messages concise and action-oriented.
373373
- Group related changes; avoid bundling unrelated refactors.

‎.agents/skills/openclaw-testing/SKILL.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ sync the current checkout on every run, and stop it before handoff.
116116
proportional to the touched contract. Untrusted repository tooling never runs
117117
locally. Remote proof requires a remote-environment or isolation reason.
118118
- Prefer GitHub Actions for release/Docker proof when the workflow already has the prepared image and secrets.
119+
- Standing up a local container Gateway for UI proof goes through `scripts/docker/setup.sh` (see `docs/install/docker.md`). It seeds `gateway.controlUi.allowedOrigins` for the published host port; a hand-rolled `docker run` skips that and the dashboard dead-ends on "Browser origin not allowed" with the Gateway logging `code=4008 reason=connect failed`. Never reuse the Compose defaults for a proof: they bind-mount the operator's real `~/.openclaw` and claim port 18789.
119120
- Use standard Git commands when committing; stage only your files.
120121
- If dependencies are missing on the selected host, run `pnpm install`, retry
121122
once, then report the first actionable error.
107 KB
Loading
142 KB
Loading

‎.github/workflows/ci-build-artifacts-testbox.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ jobs:
175175
BYTEPLUS_API_KEY: ${{ secrets.BYTEPLUS_API_KEY }}
176176
CEREBRAS_API_KEY: ${{ secrets.CEREBRAS_API_KEY }}
177177
DEEPINFRA_API_KEY: ${{ secrets.DEEPINFRA_API_KEY }}
178+
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
178179
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
179180
FACTORY_API_KEY: ${{ secrets.FACTORY_API_KEY }}
180181
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }}

‎.github/workflows/ci-check-arm-testbox.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
BYTEPLUS_API_KEY: ${{ secrets.BYTEPLUS_API_KEY }}
8383
CEREBRAS_API_KEY: ${{ secrets.CEREBRAS_API_KEY }}
8484
DEEPINFRA_API_KEY: ${{ secrets.DEEPINFRA_API_KEY }}
85+
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
8586
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
8687
FACTORY_API_KEY: ${{ secrets.FACTORY_API_KEY }}
8788
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }}

‎.github/workflows/ci-check-testbox.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
BYTEPLUS_API_KEY: ${{ secrets.BYTEPLUS_API_KEY }}
7878
CEREBRAS_API_KEY: ${{ secrets.CEREBRAS_API_KEY }}
7979
DEEPINFRA_API_KEY: ${{ secrets.DEEPINFRA_API_KEY }}
80+
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
8081
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
8182
FACTORY_API_KEY: ${{ secrets.FACTORY_API_KEY }}
8283
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }}
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: CI Test Timings Refit
2+
3+
on:
4+
schedule:
5+
- cron: "43 9 * * *"
6+
workflow_dispatch:
7+
8+
permissions: {}
9+
10+
concurrency:
11+
group: ci-test-timings-refit
12+
cancel-in-progress: false
13+
14+
jobs:
15+
refit:
16+
if: github.repository == 'openclaw/openclaw' && github.ref == 'refs/heads/main'
17+
runs-on: ubuntu-24.04
18+
timeout-minutes: 30
19+
permissions:
20+
contents: read
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24+
with:
25+
ref: ${{ github.sha }}
26+
fetch-depth: 0
27+
persist-credentials: false
28+
29+
- name: Verify generated PR App permissions
30+
uses: ./.github/actions/create-generated-pr-tokens
31+
with:
32+
contents-client-id: Iv23liOECG0slfuhz093
33+
contents-private-key: ${{ secrets.CLAWSWEEPER_APP_PRIVATE_KEY }}
34+
pull-request-client-id: Iv23liPJCozR0uHm6P7G
35+
pull-request-private-key: ${{ secrets.MANTIS_GITHUB_APP_PRIVATE_KEY }}
36+
37+
- name: Setup Node environment
38+
uses: ./.github/actions/setup-node-env
39+
with:
40+
cache-mode: restore
41+
install-bun: "false"
42+
43+
- name: Refit measured test timings
44+
id: refit
45+
env:
46+
GH_TOKEN: ${{ github.token }}
47+
shell: bash
48+
run: |
49+
set -euo pipefail
50+
pnpm --silent ci:timings:refit > "$RUNNER_TEMP/ci-test-timings-report.md"
51+
if ! git diff --quiet -- config/ci-test-timings.json; then
52+
echo "changed=true" >> "$GITHUB_OUTPUT"
53+
delimiter="$(node -p 'crypto.randomUUID()')"
54+
{
55+
echo "report<<${delimiter}"
56+
cat "$RUNNER_TEMP/ci-test-timings-report.md"
57+
echo "${delimiter}"
58+
} >> "$GITHUB_OUTPUT"
59+
fi
60+
61+
- name: Update standing refit pull request
62+
if: steps.refit.outputs.changed == 'true'
63+
uses: ./.github/actions/publish-generated-pr
64+
with:
65+
contents-client-id: Iv23liOECG0slfuhz093
66+
contents-private-key: ${{ secrets.CLAWSWEEPER_APP_PRIVATE_KEY }}
67+
pull-request-client-id: Iv23liPJCozR0uHm6P7G
68+
pull-request-private-key: ${{ secrets.MANTIS_GITHUB_APP_PRIVATE_KEY }}
69+
base-branch: main
70+
head-branch: ci/test-timings-refit
71+
commit-message: "ci: refresh measured test timings"
72+
pr-title: "ci: refresh measured test timings"
73+
generated-paths: config/ci-test-timings.json
74+
invalidation-paths: |
75+
config/ci-test-timings.json
76+
scripts/ci-refit-test-timings.mts
77+
scripts/ci-run-timings.mjs
78+
scripts/lib/ci-test-timings-refit.mts
79+
scripts/lib/ci-test-timings-schema.mts
80+
scripts/lib/direct-run.mjs
81+
scripts/lib/numeric-options.mjs
82+
scripts/lib/plain-gh.mjs
83+
scripts/tsx.mjs
84+
package.json
85+
pnpm-lock.yaml
86+
.github/actions/create-generated-pr-tokens/action.yml
87+
.github/actions/publish-generated-pr/action.yml
88+
.github/workflows/ci-test-timings-refit.yml
89+
.github/workflows/ci.yml
90+
pr-body: |
91+
## What Problem This Solves
92+
93+
Refresh stale CI shard weights from successful main-push CI runs.
94+
95+
## Why This Change Was Made
96+
97+
The daily refit uses medians, rejects outliers and single samples, and keeps existing weights when the new median is within 15% of them. Keys absent from every contributing run are removed only when their profile has observations from at least three sampled runs; the table below lists each removal explicitly.
98+
99+
## User Impact
100+
101+
Only shard balance changes; test discovery still determines the complete test inventory. This standing branch is updated automatically and never pushes to main.
102+
103+
## Evidence
104+
105+
Generated with `pnpm ci:timings:refit`:
106+
107+
${{ steps.refit.outputs.report }}

‎.github/workflows/ci.yml‎

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,12 @@ jobs:
747747
const runnerProfile = process.env.OPENCLAW_CI_RUNNER_PROFILE ?? "blacksmith";
748748
const usesHostedRunnerProfile =
749749
runnerProfile === "github" || runnerProfile === "hybrid";
750-
const uiE2eShardCount = usesHostedRunnerProfile ? 12 : 4;
750+
// Control UI E2E is serial Chromium work: 2114s of measured body plus a
751+
// ~116s median per-shard floor (checkout, pnpm install, Vitest transform)
752+
// that every added row pays again. Sharding is the only lever on the
753+
// tallest row -- duration-weighted packing already lands within ~10% of
754+
// ideal -- so the count is set from that floor, not from packing slack.
755+
const uiE2eShardCount = usesHostedRunnerProfile ? 14 : 4;
751756
const qaSmokeCiPartCount = usesHostedRunnerProfile ? 6 : 4;
752757
const supportsNativeI18n =
753758
hasPackageScript("native:i18n:check") &&
@@ -1492,14 +1497,9 @@ jobs:
14921497
bun openclaw.mjs --help
14931498
bun openclaw.mjs status --json --timeout 1
14941499
1495-
# Doctor index proof, singleton smoke, and startup-memory check are
1496-
# independent dist readers; Blacksmith runners have the cores to overlap
1497-
# them, while hosted 4-core runners keep the serial order so the RSS
1498-
# measurement stays unperturbed under its higher hosted ceiling.
1499-
# Built-artifact verifiers and checks share one wave: the verifiers are
1500-
# independent dist readers, so overlapping them with the selected checks
1501-
# keeps them off this job's serial critical path. The step is
1502-
# unconditional because the verifiers always run; each check self-gates.
1500+
# Startup RSS is measured alone on every runner before independent dist
1501+
# readers share the artifact-check wave. The step is unconditional because
1502+
# the verifiers always run; each selected check self-gates.
15031503
- name: Run built artifact checks
15041504
env:
15051505
PARALLEL_GATEWAY_WATCH: ${{ runner.environment != 'github-hosted' && 'true' || 'false' }}
@@ -1579,19 +1579,22 @@ jobs:
15791579
startup_assets=success
15801580
node --import tsx scripts/ensure-cli-startup-build.mts || startup_assets=failure
15811581
1582-
# Hosted runners keep the verifiers serial: a concurrent verifier
1583-
# perturbs the RSS the startup-memory ceiling measures. Blacksmith
1584-
# leaves them running so they finish inside the checks wave below.
1582+
# Hosted runners keep the remaining verifiers serial; Blacksmith
1583+
# overlaps them with the selected checks below.
15851584
run_verifier() {
15861585
local name="$1"
15871586
shift
15881587
start_check "$name" "$@"
15891588
[ "$PARALLEL_BUILT_VERIFIERS" = "true" ] || wait_checks
15901589
}
15911590
1591+
# Concurrent checks perturb RSS even on Blacksmith. Complete this
1592+
# measurement before starting other verifiers without relaxing its ceiling.
1593+
run_verifier "startup-memory" node scripts/check-cli-startup-memory.mjs
1594+
wait_checks
1595+
15921596
run_verifier "doctor-plugin-index" run_doctor_plugin_index
15931597
run_verifier "plugin-singleton" pnpm test:build:singleton
1594-
run_verifier "startup-memory" node scripts/check-cli-startup-memory.mjs
15951598
15961599
if [ "$RUN_CHANNELS" = "true" ]; then
15971600
start_check "channels" env \
@@ -1828,7 +1831,7 @@ jobs:
18281831
OPENCLAW_UI_E2E_SKIP_REAL_GATEWAY: "1"
18291832
strategy:
18301833
fail-fast: false
1831-
max-parallel: ${{ (needs.preflight.outputs.runner_profile == 'github' || needs.preflight.outputs.runner_profile == 'hybrid') && 12 || 4 }}
1834+
max-parallel: ${{ (needs.preflight.outputs.runner_profile == 'github' || needs.preflight.outputs.runner_profile == 'hybrid') && 14 || 4 }}
18321835
matrix: ${{ fromJson(needs.preflight.outputs.ui_e2e_matrix) }}
18331836
steps:
18341837
- *linux_node_checkout_step

‎.github/workflows/crabbox-hydrate.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ jobs:
741741
BYTEPLUS_API_KEY: ${{ secrets.BYTEPLUS_API_KEY }}
742742
CEREBRAS_API_KEY: ${{ secrets.CEREBRAS_API_KEY }}
743743
DEEPINFRA_API_KEY: ${{ secrets.DEEPINFRA_API_KEY }}
744+
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
744745
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
745746
FACTORY_API_KEY: ${{ secrets.FACTORY_API_KEY }}
746747
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }}

0 commit comments

Comments
 (0)