Skip to content

Commit 7dbc1aa

Browse files
committed
fix(ci): keep native release verification bounded and complete
1 parent c5c6199 commit 7dbc1aa

6 files changed

Lines changed: 41 additions & 7 deletions

File tree

‎.github/workflows/openclaw-live-and-e2e-checks-reusable.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4019,7 +4019,7 @@ jobs:
40194019
include:
40204020
- suite_id: native-live-src-agents
40214021
label: Native live agents
4022-
command: node .release-harness/scripts/test-live-shard.mjs native-live-src-agents
4022+
command: OPENCLAW_LIVE_OPENAI_COMPACTION=1 OPENCLAW_LIVE_OPENAI_COMPACTION_FULL=0 node .release-harness/scripts/test-live-shard.mjs native-live-src-agents
40234023
timeout_minutes: 60
40244024
profile_env_only: false
40254025
profiles: stable full

‎docs/ci.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,8 @@ That keeps the same file coverage while making slow live provider failures easie
668668

669669
Gateway-profile shards and shards containing the image-tool provider or OpenAI plugin live tests prepare the `sourcePerformance` build profile before starting Vitest. This supplies executable provider and agent runtime artifacts without building declarations or the Control UI. Provider requests, assertions, and test deadlines remain unchanged; gateway diagnostic environment settings apply only to gateway-profile shards. Cold source-plugin Jiti import cost remains a separate performance follow-up, not live provider latency.
670670

671+
Stable/full release runs explicitly enable OpenAI AgentSession repeated compaction in `native-live-src-agents` with `OPENCLAW_LIVE_OPENAI_COMPACTION=1` and `OPENCLAW_LIVE_OPENAI_COMPACTION_FULL=0`. This uses the bounded 48k context profile and requires multiple compactions plus durable-marker recall. Manual shard runs retain the explicit opt-in; once enabled, a skipped compaction test fails the shard's pass-evidence gate. The separate 922k full-context stress profile remains a manual opt-in.
672+
671673
The native live media shards run in `ghcr.io/openclaw/openclaw-live-media-runner:ubuntu-24.04`, built by the `Live Media Runner Image` workflow. That image preinstalls `ffmpeg` and `ffprobe`; media jobs only verify the binaries before setup. Keep Docker-backed live suites on normal Blacksmith runners — container jobs are the wrong place to launch nested Docker tests.
672674

673675
Docker-backed live model/backend shards use a separate shared `ghcr.io/openclaw/openclaw-live-test:<sha>-<extensions>` image per selected commit. The live release workflow builds and pushes that image once, then the Docker live model, provider-sharded gateway, CLI backend, ACP bind, and Codex harness shards run with `OPENCLAW_SKIP_DOCKER_BUILD=1`. Gateway Docker shards carry explicit script-level `timeout` caps below the workflow job timeout so a stuck container or cleanup path fails fast instead of consuming the whole release-check budget. If those shards rebuild the full source Docker target independently, the release run is misconfigured and will waste wall clock on duplicate image builds.

‎scripts/test-live-shard.mts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ const OPTIONAL_LIVE_SHARD_FILE_ENVS = new Map([
3030
["src/agents/embedded-agent-runner.cache.live.test.ts", ["OPENCLAW_LIVE_CACHE_TEST"]],
3131
["src/agents/live-cache-regression.live.test.ts", ["OPENCLAW_LIVE_CACHE_TEST"]],
3232
["src/agents/provider-headers.live.test.ts", ["OPENCLAW_LIVE_CACHE_TEST"]],
33+
[
34+
"src/agents/sessions/agent-session.openai-compaction.live.test.ts",
35+
["OPENCLAW_LIVE_OPENAI_COMPACTION"],
36+
],
3337
["src/agents/subagents/announce/subagent-announce.live.test.ts", ["OPENCLAW_LIVE_SUBAGENT_E2E"]],
3438
["src/agents/tools/image-tool.ollama.live.test.ts", ["OPENCLAW_LIVE_OLLAMA_IMAGE"]],
3539
["src/agents/tools/image-tool.providers.live.test.ts", ["OPENCLAW_LIVE_IMAGE_TOOL_TEST"]],

‎src/skills/workshop/history-scan.live.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ let workspaceDir = "";
2222
function liveConfig(): OpenClawConfig {
2323
const modelId = process.env.OPENCLAW_LIVE_SKILL_HISTORY_MODEL ?? "gpt-5.6-luna";
2424
return {
25+
// This eval needs only OpenAI and the built-in Workshop tool.
26+
plugins: { allow: ["openai"] },
2527
models: {
2628
providers: {
2729
openai: {

‎test/scripts/package-acceptance-workflow.test.ts‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4322,9 +4322,17 @@ describe("package artifact reuse", () => {
43224322
expect(workflow).not.toContain("command: pnpm test:live\n");
43234323
expect(workflow).toContain("suite_id: native-live-src-agents");
43244324
expect(workflow).toContain("Checkout trusted live shard harness");
4325-
expect(workflow).toContain(
4326-
"command: node .release-harness/scripts/test-live-shard.mjs native-live-src-agents",
4327-
);
4325+
expect(
4326+
workflowMatrixEntry(
4327+
LIVE_E2E_WORKFLOW,
4328+
"validate_live_provider_suites",
4329+
"native-live-src-agents",
4330+
),
4331+
).toMatchObject({
4332+
command:
4333+
"OPENCLAW_LIVE_OPENAI_COMPACTION=1 OPENCLAW_LIVE_OPENAI_COMPACTION_FULL=0 node .release-harness/scripts/test-live-shard.mjs native-live-src-agents",
4334+
profiles: "stable full",
4335+
});
43284336
expect(workflow).toContain("suite_id: native-live-src-agents-zai-coding");
43294337
expect(workflow).toContain(
43304338
"command: ZAI_CODING_LIVE_TEST=1 node .release-harness/scripts/test-live-shard.mjs native-live-src-agents-zai-coding",

‎test/scripts/test-live-shard.test.ts‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,13 @@ describe("scripts/test-live-shard", () => {
450450
});
451451
});
452452

453-
it("allows the experience review live file to be skipped until its env is enabled", () => {
454-
const reviewFile = "src/skills/workshop/experience-review.live.test.ts";
453+
it.each([
454+
["src/skills/workshop/experience-review.live.test.ts", "OPENCLAW_LIVE_SKILL_EXPERIENCE_REVIEW"],
455+
[
456+
"src/agents/sessions/agent-session.openai-compaction.live.test.ts",
457+
"OPENCLAW_LIVE_OPENAI_COMPACTION",
458+
],
459+
])("respects explicit opt-in and pass evidence for %s", (reviewFile, optInEnv) => {
455460
const payload = {
456461
numPassedTests: 1,
457462
numTotalTests: 2,
@@ -473,12 +478,25 @@ describe("scripts/test-live-shard", () => {
473478
});
474479
expect(
475480
validateLiveShardReportPayload(payload, expectedFiles, process.cwd(), {
476-
OPENCLAW_LIVE_SKILL_EXPERIENCE_REVIEW: "1",
481+
[optInEnv]: "1",
477482
}),
478483
).toEqual({
479484
ok: false,
480485
reason: `Vitest report selected live test files had no passing assertions: ${reviewFile}`,
481486
});
487+
const passingPayload = {
488+
...payload,
489+
numPassedTests: 2,
490+
testResults: payload.testResults.map((result) => ({
491+
...result,
492+
assertionResults: [{ status: "passed" }],
493+
})),
494+
};
495+
expect(
496+
validateLiveShardReportPayload(passingPayload, expectedFiles, process.cwd(), {
497+
[optInEnv]: "1",
498+
}),
499+
).toEqual({ ok: true });
482500
});
483501

484502
it("allows GPT-Live files to be skipped until their shared opt-in is enabled", () => {

0 commit comments

Comments
 (0)