triggerdotdev/trigger.dev

bug: [Chrome] Playwright extension deployment build error

Opened this issue · 0 comments

Provide environment information

System:
OS: macOS 15.5
CPU: (11) arm64 Apple M3 Pro
Memory: 131.31 MB / 18.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 23.11.0 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.9.2 - /opt/homebrew/bin/npm
pnpm: 10.12.4 - /opt/homebrew/bin/pnpm

Describe the bug

Getting this error using the playwright extension during deployment. Running on v4.0.1. Can confirm this is only for chrome, I tried deploying with Firefox and got no errors with it.

10 |     RUN INSTALL_DIR=$(grep "Install location:" /tmp/chromium-info.txt | cut -d':' -f2- | xargs) &&           DIR_NAME=$(basename "$INSTALL_DIR") &&           if [ -z "$DIR_NAME" ]; then echo "Failed to extract installation directory for chromium"; exit 1; fi &&           MS_DIR="/ms-playwright/$DIR_NAME" &&           mkdir -p "$MS_DIR"
11 |     RUN DOWNLOAD_URL=$(grep "Download url:" /tmp/chromium-info.txt | cut -d':' -f2- | xargs | sed "s/mac-arm64/linux/g" | sed "s/mac-15-arm64/ubuntu-20.04/g") &&           if [ -z "$DOWNLOAD_URL" ]; then echo "Failed to extract download URL for chromium"; exit 1; fi &&           echo "Downloading chromium from $DOWNLOAD_URL" &&           curl -L -o /tmp/chromium.zip "$DOWNLOAD_URL" &&           if [ $? -ne 0 ]; then echo "Failed to download chromium"; exit 1; fi &&           unzip -q /tmp/chromium.zip -d "/ms-playwright/$(basename $(grep "Install location:" /tmp/chromium-info.txt | cut -d':' -f2- | xargs))" &&           if [ $? -ne 0 ]; then echo "Failed to extract chromium"; exit 1; fi &&           chmod -R +x "/ms-playwright/$(basename $(grep "Install location:" /tmp/chromium-info.txt | cut -d':' -f2- | xargs))" &&           rm /tmp/chromium.zip
--------------------
ERROR: failed to solve: process "/bin/sh -c grep -A5 \"browser: chromium-headless-shell\" /tmp/browser-info.txt > /tmp/chromium-info.txt" did not complete successfully: exit code: 1

Reproduction repo

N/A

To reproduce

Deploy to a project using this config with the playwright extension

import { playwright } from "@trigger.dev/build/extensions/playwright";

export default defineConfig({
  project: "proj_rhgzkngsrgqitnzybwjn",
  // rest of the config
  build: {
    extensions: [
      playwright({
        browsers: ["chromium"],
      }),
      // other build extensions
    ],
  },
});

Additional information

No response