mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:30:47 +00:00
ci: shard release validation hotspots
This commit is contained in:
@@ -114,6 +114,23 @@ describe("docker build helper", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("times and parallelizes release installer E2E agent turns after gateway startup", () => {
|
||||
const runner = readFileSync(INSTALL_E2E_RUNNER_PATH, "utf8");
|
||||
const wrapper = readFileSync("scripts/test-install-sh-e2e-docker.sh", "utf8");
|
||||
|
||||
expect(runner).toContain(
|
||||
'AGENT_TURNS_PARALLEL="${OPENCLAW_INSTALL_E2E_AGENT_TURNS_PARALLEL:-1}"',
|
||||
);
|
||||
expect(runner).toContain("time_phase");
|
||||
expect(runner).toContain("phase_mark_start");
|
||||
expect(runner).toContain("run_agent_turn_bg");
|
||||
expect(runner).toContain("wait_agent_turn_batch");
|
||||
expect(runner).toContain('run_agent_turn_bg "read proof"');
|
||||
expect(runner).toContain('run_agent_turn_bg "image write"');
|
||||
expect(runner).toContain('run_agent_turn_logged "read proof copy"');
|
||||
expect(wrapper).toContain("OPENCLAW_INSTALL_E2E_AGENT_TURNS_PARALLEL");
|
||||
});
|
||||
|
||||
it("keeps package acceptance plugin coverage offline-capable", () => {
|
||||
const scenarios = readFileSync(DOCKER_E2E_SCENARIOS_PATH, "utf8");
|
||||
|
||||
@@ -214,7 +231,7 @@ describe("docker build helper", () => {
|
||||
|
||||
expect(runner).toContain('rm -f "$workspace/BOOTSTRAP.md"');
|
||||
expect(runner.indexOf('rm -f "$workspace/BOOTSTRAP.md"')).toBeLessThan(
|
||||
runner.indexOf('echo "==> Agent turns ($profile)"'),
|
||||
runner.indexOf('phase_mark_start "Agent turns ($profile)"'),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -177,6 +177,15 @@ describe("package artifact reuse", () => {
|
||||
expect(workflow).toContain("suite_id: native-live-extensions-media-music-google");
|
||||
expect(workflow).toContain("suite_id: native-live-extensions-media-music-minimax");
|
||||
expect(workflow).toContain("suite_id: native-live-extensions-media-video");
|
||||
expect(workflow).toContain("suite_group: native-live-extensions-media-video");
|
||||
expect(workflow).toContain("OPENCLAW_LIVE_VIDEO_GENERATION_PROVIDERS=google,minimax");
|
||||
expect(workflow).toContain("OPENCLAW_LIVE_VIDEO_GENERATION_PROVIDERS=openai,openrouter,xai");
|
||||
expect(workflow).toContain("suite_group: native-live-src-gateway-profiles-opencode-go");
|
||||
expect(workflow).toContain("opencode-go/mimo-v2-omni");
|
||||
expect(workflow).toContain(
|
||||
"inputs.live_suite_filter == 'native-live-src-gateway-profiles-opencode-go'",
|
||||
);
|
||||
expect(workflow).toContain("inputs.live_suite_filter == 'native-live-extensions-media-video'");
|
||||
expect(workflow).not.toContain("needs_ffmpeg: true");
|
||||
expect(retryHelper).toContain("OPENCLAW_LIVE_COMMAND_ATTEMPTS:-2");
|
||||
expect(retryHelper).toContain("ECONNRESET");
|
||||
|
||||
@@ -201,6 +201,8 @@ describe("bun global install smoke", () => {
|
||||
expect(workflow).toContain("install-smoke-fast:");
|
||||
expect(workflow).toContain("run_fast_install_smoke");
|
||||
expect(workflow).toContain("run_full_install_smoke");
|
||||
expect(workflow).toContain("cache-from: type=gha,scope=openclaw-dockerfile-smoke");
|
||||
expect(workflow).toContain("cache-to: type=gha,scope=openclaw-dockerfile-smoke,mode=max");
|
||||
expect(workflow).toContain('OPENCLAW_INSTALL_SMOKE_SKIP_NPM_GLOBAL: "1"');
|
||||
expect(releaseChecks).toContain("install_smoke_release_checks:");
|
||||
expect(releaseChecks).toContain("uses: ./.github/workflows/install-smoke.yml");
|
||||
|
||||
Reference in New Issue
Block a user