From 0358d92f8ccb65f88a82cb4b3451137a0f990b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Fri, 6 Nov 2026 14:01:36 -0800 Subject: [PATCH] chore(e2e): force-include copied packages when pushing test actors apify-cli 1.11.1-beta.8 leaves gitignored files out of `apify push`, so the locally built packages copied into each test actor (ignored via `test/e2e/**/packages`) stopped being uploaded and every PLATFORM build failed with `"/packages": not found`. Write an `.actorignore` with `!packages` next to them to force-include them. --- .gitignore | 1 + test/e2e/tools.mjs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 5b8eb9c4d0cf..f3820b0e2008 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ crawlee_storage storage .turbo test/e2e/**/packages +test/e2e/**/.actorignore .yarn diff --git a/test/e2e/tools.mjs b/test/e2e/tools.mjs index 6c4fe1bc7ac1..59dac4bd3e0b 100644 --- a/test/e2e/tools.mjs +++ b/test/e2e/tools.mjs @@ -298,6 +298,8 @@ async function copyPackages(dirName) { const srcPackagesDir = join(dirname(fileURLToPath(import.meta.url)), '..', '..', 'packages'); const destPackagesDir = join(dirName, 'packages'); await fs.remove(destPackagesDir); + // `apify push` skips gitignored files, and the copied packages are gitignored. + await fs.writeFile(join(dirName, '.actorignore'), '!packages\n'); // npm (used when building the actor on the platform) understands neither pnpm's `workspace:` // protocol nor its `catalog:` protocol. Parse the catalog from pnpm-workspace.yaml so @@ -412,6 +414,7 @@ async function copyPackages(dirName) { export async function clearPackages(dirName) { const destPackagesDir = join(dirName, 'actor', 'packages'); await fs.remove(destPackagesDir); + await fs.remove(join(dirName, 'actor', '.actorignore')); } /**