Skip to content

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

fix(ci): hash core build inputs for Playwright artifacts

Steven Enamakelbd03738d86c8
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.yml
index dac72ee216..021c7c8a75 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/tsconfig*.json', 'app/package.json', 'packages/**', 'pnpm-lock.yaml', 'app/scripts/e2e-web-build.sh', 'app/scripts/build-parallel.mjs') }}
+ key: e2e-playwright-linux-${{ hashFiles('src/**', 'crates/**', 'vendor/**', 'Cargo.toml', 'Cargo.lock', 'build.rs', '.cargo/**', 'rust-toolchain.toml', 'scripts/ci/product-features.*', '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 48f8efc7a5..f5ba2788ce 100644
--- a/scripts/__tests__/e2e-web-bundle-guard.test.mjs
+++ b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
@@ -214,6 +214,11 @@ test("CI Full refreshes the E2E marker after restoring its content-keyed artifac
/- 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, /crates\/\*\*/);
+ assert.match(cacheStep, /vendor\/\*\*/);
+ assert.match(cacheStep, /build\.rs/);
+ assert.match(cacheStep, /\.cargo\/\*\*/);
+ assert.match(cacheStep, /scripts\/ci\/product-features\.\*/);
assert.match(cacheStep, /app\/tsconfig\*\.json/);
assert.match(cacheStep, /packages\/\*\*/);
});