Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(ci): key Playwright artifacts by package inputs

Steven Enamakel264d831b5e85
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.yml
index 46cca5016e..dac72ee216 100644
--- a/.github/workflows/ci-full.yml
+++ b/.github/workflows/ci-full.yml
@@ -217,7 +217,7 @@ jobs:
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: .ci/artifacts/e2e-playwright-linux.tar.gz
- key: e2e-playwright-linux-${{ hashFiles('src/**', 'crates/openhuman-core/**', 'crates/openhuman-tui/**', 'Cargo.toml', 'Cargo.lock', 'rust-toolchain.toml', 'app/src/**', 'app/public/**', 'app/index.html', 'app/vite.config.*', 'app/tailwind.config.*', 'app/postcss.config.*', 'app/package.json', 'pnpm-lock.yaml', 'app/scripts/e2e-web-build.sh', 'app/scripts/build-parallel.mjs') }}
+ key: e2e-playwright-linux-${{ hashFiles('src/**', 'crates/openhuman-core/**', 'crates/openhuman-tui/**', 'Cargo.toml', 'Cargo.lock', 'rust-toolchain.toml', 'app/src/**', 'app/public/**', 'app/index.html', 'app/vite.config.*', 'app/tailwind.config.*', 'app/postcss.config.*', 'app/tsconfig*.json', 'app/package.json', 'packages/**', 'pnpm-lock.yaml', 'app/scripts/e2e-web-build.sh', 'app/scripts/build-parallel.mjs') }}
- name: Install dependencies
if: steps.playwright-artifact-cache.outputs.cache-hit != 'true'
diff --git a/scripts/__tests__/e2e-web-bundle-guard.test.mjs b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
index ed130a1364..48f8efc7a5 100644
--- a/scripts/__tests__/e2e-web-bundle-guard.test.mjs
+++ b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
@@ -209,6 +209,13 @@ test("CI Full refreshes the E2E marker after restoring its content-keyed artifac
assert.ok(restoreStep, "CI Full must keep a Playwright artifact restore step");
assert.match(restoreStep, /cp -a repo\/app\/dist-web app\//);
assert.match(restoreStep, /touch app\/dist-web\/openhuman-e2e-bundle\.marker/);
+
+ const cacheStep = workflow.match(
+ /- name: Restore cached Playwright E2E artifact([\s\S]*?)(?=\n - name: |\n [a-zA-Z_-]+:|$)/,
+ )?.[1];
+ assert.ok(cacheStep, "CI Full must keep a Playwright artifact cache step");
+ assert.match(cacheStep, /app\/tsconfig\*\.json/);
+ assert.match(cacheStep, /packages\/\*\*/);
});
test("e2e-web-build.sh marks the bundle it builds, recording the E2E settings", () => {