fix(ci): calibrate hosted startup memory

This commit is contained in:
Peter Steinberger
2026-07-09 19:52:02 -04:00
parent 53378459cd
commit dc3d06c5d6
3 changed files with 16 additions and 1 deletions

View File

@@ -718,6 +718,17 @@ describe("ci workflow guards", () => {
expect(buildArtifactSteps.some((step) => step.run === "pnpm ui:build")).toBe(false);
});
it("keeps the hosted plugin-list memory allowance scoped to GitHub-hosted runners", () => {
const workflow = readCiWorkflow();
const startupMemoryStep = workflow.jobs["build-artifacts"].steps.find(
(step) => step.name === "Check CLI startup memory",
);
expect(startupMemoryStep.env.OPENCLAW_STARTUP_MEMORY_PLUGINS_LIST_MB).toBe(
"${{ runner.environment == 'github-hosted' && '425' || '350' }}",
);
});
it("restores the dist build cache before building and saves only cache misses", () => {
const workflow = readCiWorkflow();
const buildArtifactSteps = workflow.jobs["build-artifacts"].steps;