mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
perf(ci): make push/PR preflight dependency-free and prune the store archive
The manifest planner closure and the protocol coverage script import only node builtins and relative files (verified importing the full closure with an empty node_modules under native type stripping), so push/PR preflight drops the pnpm store restore and install (~30s off the barrier every lane waits behind). Manual dispatches keep the tsx path for frozen targets, and the coverage script inlines the record guard under the documented dependency-free exception. The store archive accretes every prior lockfile generation through prefix-key restores (measured 2.05 GiB, ~36s restore in every hosted job); the warmup writer now prunes to the current lockfile closure before saving.
This commit is contained in:
@@ -5602,7 +5602,10 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
|
||||
(step: WorkflowStep) => step.name === "Run check shard",
|
||||
).run;
|
||||
|
||||
expect(coverageStep.run).toBe("node scripts/check-protocol-event-coverage.mjs");
|
||||
// Push/PR preflight is dependency-free and runs the .mts natively;
|
||||
// dispatches (frozen targets) keep the tsx shim path.
|
||||
expect(coverageStep.run).toContain("node scripts/check-protocol-event-coverage.mts");
|
||||
expect(coverageStep.run).toContain("node scripts/check-protocol-event-coverage.mjs");
|
||||
expect(coverageStep.if).toBe("steps.manifest.outputs.run_protocol_event_coverage == 'true'");
|
||||
expect(checkShardRun).not.toContain("check:protocol-coverage");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user