perf: balance remaining Builder E2E shard work

This commit is contained in:
Oleg Isonen committed 2026-11-16 19:58:47 +00:00
1 parent 6820a7e71c
commit 35b41df660
7 files changed
+22 -6

No files matched your search

+13 -1
View File
@@ -22,7 +22,19 @@ runs:
- uses: ./.github/actions/ci-setup
with:
run-scripts: "true"
install-dependencies: "false"
- name: Install dependencies and pull E2E images
shell: bash
run: |
timeout --kill-after=10s "${E2E_DOCKER_PULL_TIMEOUT_SECONDS:-300}s" \
bash apps/builder/backend/run.sh snapshot pull --policy missing db postgrest &
image_pull=$!
trap 'kill "$image_pull" 2>/dev/null || true' EXIT
pnpm install --frozen-lockfile
wait "$image_pull"
trap - EXIT
- name: Cache Playwright Chromium
uses: actions/cache@v5
+4
View File
@@ -4,6 +4,9 @@ description: |
Sets up the CI environment for the project.
inputs:
install-dependencies:
description: Install workspace dependencies after setting up the tools and cache.
default: "true"
run-scripts:
description: Run dependency lifecycle scripts during installation.
default: "false"
@@ -23,4 +26,5 @@ runs:
install_args+=(--ignore-scripts)
fi
pnpm install "${install_args[@]}"
if: inputs.install-dependencies == 'true'
shell: bash
@@ -1,5 +1,5 @@
import { expect } from "@playwright/test";
import { createContentModeProject } from "../fixtures/content-mode-suite";
import { createProjectThroughApi } from "../fixtures/create-project";
import {
concurrencyPath,
startFormCallbackReceiver,
@@ -19,17 +19,17 @@ test("Generated Preview runs Form callbacks, concurrent Actions, and query navig
context,
}) => {
await startPreviewFormMcpClient();
const fixture = await createContentModeProject({
const projectId = await createProjectThroughApi({
context,
page,
email: "mcp-form-callbacks@webstudio.test",
title: "MCP Form callbacks",
assetNamePrefix: "mcp-form-callbacks-",
});
const receiver = await startFormCallbackReceiver();
try {
const { stdout } = await runFormAuthor(
"mcp-form-callbacks-and-actions-author",
fixture.projectId,
projectId,
managedPath,
concurrencyPath
);
@@ -41,7 +41,7 @@ test("Generated Preview runs Form callbacks, concurrent Actions, and query navig
middleResourceId: string;
};
await withGeneratedPreview({
projectId: fixture.projectId,
projectId,
evaluationReceiverPort: String(receiver.port),
callback: async ({ url }) => {
await page.route("**/*", (route) =>