Skip to content

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

fix(ci): refresh Playwright artifact freshness marker

Steven Enamakel083fb5a231ee
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.yml
index bd370ded17..46cca5016e 100644
--- a/.github/workflows/ci-full.yml
+++ b/.github/workflows/ci-full.yml
@@ -323,6 +323,11 @@ jobs:
set -euo pipefail
tar -xzf e2e-playwright-linux.tar.gz
cp -a repo/app/dist-web app/
+ # This bundle is built in a separate checkout (or restored from the
+ # exact source-hash cache above). Its marker mtime predates this
+ # job's fresh checkout, so refresh it after restoring the artifact;
+ # the content-addressed key proves the bundle matches these inputs.
+ touch app/dist-web/openhuman-e2e-bundle.marker
mkdir -p target
cp -a repo/target/. target/
rm -rf repo e2e-playwright-linux.tar.gz
diff --git a/scripts/__tests__/e2e-web-bundle-guard.test.mjs b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
index e4bf2a3ec9..ed130a1364 100644
--- a/scripts/__tests__/e2e-web-bundle-guard.test.mjs
+++ b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
@@ -197,6 +197,20 @@ test("the session accepts a marked bundle and proceeds past the guard", () => {
}
});
+test("CI Full refreshes the E2E marker after restoring its content-keyed artifact", () => {
+ const workflow = fs.readFileSync(
+ path.join(repoRoot, ".github/workflows/ci-full.yml"),
+ "utf8",
+ );
+ const restoreStep = workflow.match(
+ /- name: Restore Playwright E2E artifact([\s\S]*?)(?=\n - name: |\n [a-zA-Z_-]+:|$)/,
+ )?.[1];
+
+ 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/);
+});
+
test("e2e-web-build.sh marks the bundle it builds, recording the E2E settings", () => {
const tree = makeTree("e2e-web-build.sh");
try {