> Revision 11 · Revision changelog
Speeds up the repository's real-Docker Playwright E2E job without reducing coverage or changing runner scheduling.
⚠️ Production changes: please review in depth
Almost all of this PR is CI and test tooling. Two files reach what ships, and they deserve a careful look:
- Root
Dockerfile(the published image). The build order changes so that a source-only change reuses the slow layers (the E2E job builds this image on every new commit):- Build stage: the Node.js install for the frontend build moves before the csproj restore and
COPY . .. Same commands, new order. - Final stage: the Discord bot's runtime install (
docker/runtime/install-discord-bot-runtime.sh, unchanged) now runs beforeCOPY --from=build /app/publish ., in/app/tools/discord-botwith only the bot'spackage.jsonandpackage-lock.jsoncopied in. The publish COPY then adds the bot's sources next tonode_modules. A new check after the publish COPY fails the build if the app no longer shipstools/discord-bot/index.jsand its lockfile. - What to check: that the bot's dependencies installed from the build context's package files match the published bot (both come from
tools/discord-bot/of the same commit), and that nothing in the publish output is expected to overwrite or removenode_modules.
- Build stage: the Node.js install for the frontend build moves before the csproj restore and
fe/vite.config.ts.cacheDiris read fromLISTENARR_E2E_VITE_CACHE_DIR. When it is unset (production builds, normal dev) the value isundefinedand Vite keeps its defaultnode_modules/.vite.
Image comparison (canary dc14be034 against this PR's 09a04950f, both built from the root Dockerfile): 610 MB of uncompressed layers in both (+56 kB, the extra package-files COPY and check layers), 229 MB compressed (+10 kB); /app is identical, 4290 entries with the same mode, owner and size; all six...
Automated Canary build