Skip to content

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

fix(ci): pin Playwright artifact image

Steven Enamakelb6feced3204b
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.yml
index 1507c4cfee..058caab520 100644
--- a/.github/workflows/ci-full.yml
+++ b/.github/workflows/ci-full.yml
@@ -65,7 +65,7 @@ jobs:
name: Rust E2E (mock backend)
runs-on: ubuntu-22.04
container:
- image: ghcr.io/tinyhumansai/openhuman_ci:latest
+ image: ghcr.io/tinyhumansai/openhuman_ci:latest@sha256:c3c20d625bcc9f75e50c3c2c2b75c88d3e60a3f4352b0f19f5327b490438722d
timeout-minutes: 30
env:
CARGO_INCREMENTAL: "0"
@@ -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('.github/workflows/ci-full.yml', '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/e2e-ports.sh', 'app/scripts/build-parallel.mjs') }}
+ key: e2e-playwright-linux-c3c20d625bcc9f75e50c3c2c2b75c88d3e60a3f4352b0f19f5327b490438722d-${{ hashFiles('.github/workflows/ci-full.yml', '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/e2e-ports.sh', 'app/scripts/build-parallel.mjs') }}
- name: Install dependencies
if: steps.playwright-artifact-cache.outputs.cache-hit != 'true'
@@ -279,7 +279,7 @@ jobs:
needs: [build-playwright-e2e-artifact]
runs-on: ubuntu-22.04
container:
- image: ghcr.io/tinyhumansai/openhuman_ci:latest
+ image: ghcr.io/tinyhumansai/openhuman_ci:latest@sha256:c3c20d625bcc9f75e50c3c2c2b75c88d3e60a3f4352b0f19f5327b490438722d
timeout-minutes: 90
# TODO(ci-flaky, #3615): several specs consistently hit toBeVisible
# timeouts under CI resource contention. Run the lane but don't block
diff --git a/scripts/__tests__/e2e-web-bundle-guard.test.mjs b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
index 3ecd47fd23..106ffe2a41 100644
--- a/scripts/__tests__/e2e-web-bundle-guard.test.mjs
+++ b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
@@ -215,6 +215,15 @@ test("CI Full refreshes the E2E marker after restoring its content-keyed artifac
)?.[1];
assert.ok(cacheStep, "CI Full must keep a Playwright artifact cache step");
assert.match(cacheStep, /\.github\/workflows\/ci-full\.yml/);
+ assert.match(
+ cacheStep,
+ /e2e-playwright-linux-c3c20d625bcc9f75e50c3c2c2b75c88d3e60a3f4352b0f19f5327b490438722d-/,
+ );
+ assert.equal(
+ (workflow.match(/image: ghcr\.io\/tinyhumansai\/openhuman_ci:latest@sha256:c3c20d625bcc9f75e50c3c2c2b75c88d3e60a3f4352b0f19f5327b490438722d/g) ?? []).length,
+ 2,
+ "Playwright artifact producer and consumer must use the same pinned CI image",
+ );
assert.match(cacheStep, /crates\/\*\*/);
assert.match(cacheStep, /vendor\/\*\*/);
assert.match(cacheStep, /build\.rs/);