Code Monkey home page Code Monkey logo

cypress's People

Contributors

bhackett1024 avatar ryanjduffy avatar

Watchers

 avatar  avatar

Forkers

ryanjduffy

cypress's Issues

Can't be installed in `node:16.13-bullseye-slim` docker image

Earthfile:

VERSION  0.6

FROM --platform linux/amd64 node:16.13-bullseye-slim

deps:
  COPY package.json package-lock.json .
  RUN npm ci

package.json:

{
  "name": "test",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@replayio/cypress": "^0.2.0"
  }
}

package-lock.json: https://gist.github.com/jazzdan/e78f2dbf33700d2349a145055f05f309

Repro steps

  1. Add all of the above files to a directory
  2. Run earthly +deps

What I expected

I expected npm ci inside of the container to complete successfully.

What actually happened

npm ci fails with this error:


 1. Init ๐Ÿš€
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

Note: the interactive debugger, interactive RUN commands, and fast output via embedded registry do not yet work on Earthly Satellites.

The following feature flags are recommended for use with Satellites and will be auto-enabled:
--new-platform, --use-registry-for-with-docker

           satellite | Connecting to test


 2. Build ๐Ÿ”ง
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

node:16.13-bullseye-slim | --> Load metadata linux/amd64
             ongoing | node:16.13-bullseye-slim (10 seconds ago)
             context | --> local context .
               +base | --> FROM node:16.13-bullseye-slim
               +base | [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ] 100% resolve docker.io/library/node:16.13-bullseye-slim@sha256:b11d894be588b116c46f2375fde8664b2e3d7a4c1c40a37649e111a43caccfeb
             context | [          ]   0% transferring .:
             context | [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ] 100% transferring .:
               +deps | --> COPY package.json package-lock.json .
               +deps | --> RUN npm ci
             ongoing | +deps (5 seconds ago)
               +deps | npm notice
               +deps | npm notice New minor version of npm available! 8.1.2 -> 8.13.2
               +deps | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.13.2>
               +deps | npm notice Run `npm install -g [email protected]` to update!
               +deps | npm notice
               +deps | npm ERR! code 1
               +deps | npm ERR! path /node_modules/@replayio/cypress
               +deps | npm ERR! command failed
               +deps | npm ERR! command sh -c npm run if:source || node ./bin/replayio-cypress first-run
               +deps | npm ERR! Installing Replay browsers for cypress
               +deps | npm ERR! Installing browsers for linux
               +deps | npm ERR! Downloading linux-replay-playwright.tar.xz from replay.io (Attempt 1 / 5)
               +deps | npm ERR! Saving firefox to /root/.replay/playwright
               +deps | npm ERR! Downloading linux-replay-chromium.tar.xz from replay.io (Attempt 1 / 5)
               +deps | npm ERR! Saving chrome-linux to /root/.replay/playwright
               +deps | npm ERR! npm ERR! Missing script: "if:source"
               +deps | npm ERR! npm ERR!
               +deps | npm ERR! npm ERR! To see a list of scripts, run:
               +deps | npm ERR! npm ERR!   npm run
               +deps | npm ERR!
               +deps | npm ERR! npm ERR! A complete log of this run can be found in:
               +deps | npm ERR! npm ERR!     /root/.npm/_logs/2022-07-02T19_05_34_237Z-debug.log
               +deps | npm ERR! node:fs:980
               +deps | npm ERR!   handleErrorFromBinding(ctx);
               +deps | npm ERR!   ^
               +deps | npm ERR!
               +deps | npm ERR! Error: ENOENT: no such file or directory, rename '/root/.replay/playwright/replay-chromium' -> '/root/.replay/playwright/chrome-linux'
               +deps | npm ERR!     at Object.renameSync (node:fs:980:3)
               +deps | npm ERR!     at installReplayBrowser (/node_modules/@replayio/replay/src/install.js:129:22)
               +deps | npm ERR!     at runMicrotasks (<anonymous>)
               +deps | npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:96:5)
               +deps | npm ERR!     at async ensurePlaywrightBrowsersInstalled (/node_modules/@replayio/replay/src/install.js:39:17)
               +deps | npm ERR!     at async install (/node_modules/@replayio/cypress/src/install.js:9:9) {
               +deps | npm ERR!   errno: -2,
               +deps | npm ERR!   syscall: 'rename',
               +deps | npm ERR!   code: 'ENOENT',
               +deps | npm ERR!   path: '/root/.replay/playwright/replay-chromium',
               +deps | npm ERR!   dest: '/root/.replay/playwright/chrome-linux'
               +deps | npm ERR! }
               +deps |
               +deps | npm ERR! A complete log of this run can be found in:
               +deps | npm ERR!     /root/.npm/_logs/2022-07-02T19_05_38_415Z-debug.log
               +deps | Command /bin/sh -c 'npm ci' failed with exit code 1
               +deps |
               +deps | ERROR: Command exited with non-zero code: RUN npm ci

============================ โŒ FAILURE [2. Build ๐Ÿ”ง] ============================

Repeating the output of the command that caused the failure
               +deps *failed* | --> RUN npm ci
               +deps *failed* | npm notice
               +deps *failed* | npm notice New minor version of npm available! 8.1.2 -> 8.13.2
               +deps *failed* | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.13.2>
               +deps *failed* | npm notice Run `npm install -g [email protected]` to update!
               +deps *failed* | npm notice
               +deps *failed* | npm ERR! code 1
               +deps *failed* | npm ERR! path /node_modules/@replayio/cypress
               +deps *failed* | npm ERR! command failed
               +deps *failed* | npm ERR! command sh -c npm run if:source || node ./bin/replayio-cypress first-run
               +deps *failed* | npm ERR! Installing Replay browsers for cypress
               +deps *failed* | npm ERR! Installing browsers for linux
               +deps *failed* | npm ERR! Downloading linux-replay-playwright.tar.xz from replay.io (Attempt 1 / 5)
               +deps *failed* | npm ERR! Saving firefox to /root/.replay/playwright
               +deps *failed* | npm ERR! Downloading linux-replay-chromium.tar.xz from replay.io (Attempt 1 / 5)
               +deps *failed* | npm ERR! Saving chrome-linux to /root/.replay/playwright
               +deps *failed* | npm ERR! npm ERR! Missing script: "if:source"
               +deps *failed* | npm ERR! npm ERR!
               +deps *failed* | npm ERR! npm ERR! To see a list of scripts, run:
               +deps *failed* | npm ERR! npm ERR!   npm run
               +deps *failed* | npm ERR!
               +deps *failed* | npm ERR! npm ERR! A complete log of this run can be found in:
               +deps *failed* | npm ERR! npm ERR!     /root/.npm/_logs/2022-07-02T19_05_34_237Z-debug.log
               +deps *failed* | npm ERR! node:fs:980
               +deps *failed* | npm ERR!   handleErrorFromBinding(ctx);
               +deps *failed* | npm ERR!   ^
               +deps *failed* | npm ERR!
               +deps *failed* | npm ERR! Error: ENOENT: no such file or directory, rename '/root/.replay/playwright/replay-chromium' -> '/root/.replay/playwright/chrome-linux'
               +deps *failed* | npm ERR!     at Object.renameSync (node:fs:980:3)
               +deps *failed* | npm ERR!     at installReplayBrowser (/node_modules/@replayio/replay/src/install.js:129:22)
               +deps *failed* | npm ERR!     at runMicrotasks (<anonymous>)
               +deps *failed* | npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:96:5)
               +deps *failed* | npm ERR!     at async ensurePlaywrightBrowsersInstalled (/node_modules/@replayio/replay/src/install.js:39:17)
               +deps *failed* | npm ERR!     at async install (/node_modules/@replayio/cypress/src/install.js:9:9) {
               +deps *failed* | npm ERR!   errno: -2,
               +deps *failed* | npm ERR!   syscall: 'rename',
               +deps *failed* | npm ERR!   code: 'ENOENT',
               +deps *failed* | npm ERR!   path: '/root/.replay/playwright/replay-chromium',
               +deps *failed* | npm ERR!   dest: '/root/.replay/playwright/chrome-linux'
               +deps *failed* | npm ERR! }

               +deps *failed* | npm ERR! A complete log of this run can be found in:
               +deps *failed* | npm ERR!     /root/.npm/_logs/2022-07-02T19_05_38_415Z-debug.log
               +deps *failed* | Command /bin/sh -c 'npm ci' failed with exit code 1
               +deps *failed* |                +deps *failed* | ERROR: Command exited with non-zero code: RUN npm ci
Shareable link: https://ci.earthly.dev/logs?logId=eb1d4cf0-1fa2-465c-accd-95ba1bde6bde
Error: build target: build main: failed to solve: process "/bin/sh -c NODE_VERSION=16.13.2 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin YARN_VERSION=1.22.15 /usr/bin/earth_debugger /bin/sh -c 'npm ci'" did not complete successfully: exit code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.