The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
ci: use runner Chrome for headless workflows (#6967)
Devin Foley524e18b060e4
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.ymlindex 8d15462704..119e76e868 100644--- a/.github/workflows/e2e.yml+++ b/.github/workflows/e2e.yml@@ -29,9 +29,11 @@ jobs:- run: pnpm install --frozen-lockfile- run: pnpm build- - run: npx playwright install --with-deps chromium+ - run: google-chrome --version- name: Run e2e tests+ env:+ PAPERCLIP_PLAYWRIGHT_CHANNEL: "chrome"run: pnpm run test:e2e- uses: actions/upload-artifact@v4diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.ymlindex fa0817968d..8ed50ba1b5 100644--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@ -273,8 +273,11 @@ jobs:- name: Install dependenciesrun: pnpm install --frozen-lockfile- - name: Install Playwright- run: npx playwright install --with-deps chromium+ - name: Verify runner Chrome+ # GitHub's Ubuntu runner image already ships Google Chrome, so use that+ # directly for the headless e2e lane instead of downloading Playwright+ # browser bundles inside the 30 minute job budget.+ run: google-chrome --version- name: Generate Paperclip configrun: |@@ -294,6 +297,7 @@ jobs:- name: Run e2e testsenv:PAPERCLIP_E2E_SKIP_LLM: "true"+ PAPERCLIP_PLAYWRIGHT_CHANNEL: "chrome"run: pnpm run test:e2e- name: Upload Playwright reportdiff --git a/.github/workflows/release-smoke.yml b/.github/workflows/release-smoke.ymlindex 823a578cf1..8ab96aeba0 100644--- a/.github/workflows/release-smoke.yml+++ b/.github/workflows/release-smoke.yml@@ -58,8 +58,10 @@ jobs:- name: Install dependenciesrun: pnpm install --no-frozen-lockfile- - name: Install Playwright browser- run: npx playwright install --with-deps chromium+ - name: Verify runner Chrome+ # Release smoke also runs headless on GitHub's Ubuntu image, so use the+ # runner's preinstalled Chrome instead of a Playwright browser download.+ run: google-chrome --version- name: Launch Docker smoke harnessrun: |@@ -89,6 +91,7 @@ jobs:PAPERCLIP_RELEASE_SMOKE_BASE_URL: ${{ env.SMOKE_BASE_URL }}PAPERCLIP_RELEASE_SMOKE_EMAIL: ${{ env.SMOKE_ADMIN_EMAIL }}PAPERCLIP_RELEASE_SMOKE_PASSWORD: ${{ env.SMOKE_ADMIN_PASSWORD }}+ PAPERCLIP_PLAYWRIGHT_CHANNEL: "chrome"run: pnpm run test:release-smoke- name: Capture Docker logsdiff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.tsindex 4f1c720668..89ad041d88 100644--- a/tests/e2e/playwright.config.ts+++ b/tests/e2e/playwright.config.ts@@ -8,6 +8,7 @@ import { defineConfig } from "@playwright/test";const PORT = Number(process.env.PAPERCLIP_E2E_PORT ?? 3199);const BASE_URL = `http://127.0.0.1:${PORT}`;const PAPERCLIP_HOME = fs.mkdtempSync(path.join(os.tmpdir(), "paperclip-e2e-home-"));+const PLAYWRIGHT_CHANNEL = process.env.PAPERCLIP_PLAYWRIGHT_CHANNEL;export default defineConfig({testDir: ".",@@ -26,7 +27,10 @@ export default defineConfig({projects: [{name: "chromium",- use: { browserName: "chromium" },+ use: {+ browserName: "chromium",+ ...(PLAYWRIGHT_CHANNEL ? { channel: PLAYWRIGHT_CHANNEL } : {}),+ },},],// The webServer directive bootstraps a throwaway instance and then starts it.diff --git a/tests/release-smoke/playwright.config.ts b/tests/release-smoke/playwright.config.tsindex 76e278f9d8..fbdc9ffdae 100644--- a/tests/release-smoke/playwright.config.ts+++ b/tests/release-smoke/playwright.config.ts@@ -2,6 +2,7 @@ import { defineConfig } from "@playwright/test";const BASE_URL =process.env.PAPERCLIP_RELEASE_SMOKE_BASE_URL ?? "http://127.0.0.1:3232";+const PLAYWRIGHT_CHANNEL = process.env.PAPERCLIP_PLAYWRIGHT_CHANNEL;export default defineConfig({testDir: ".",@@ -20,7 +21,10 @@ export default defineConfig({projects: [{name: "chromium",- use: { browserName: "chromium" },+ use: {+ browserName: "chromium",+ ...(PLAYWRIGHT_CHANNEL ? { channel: PLAYWRIGHT_CHANNEL } : {}),+ },},],outputDir: "./test-results",