From 5358498b501e35a73e8450840cff2918436143c6 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 15 May 2021 17:12:09 +0200 Subject: [PATCH] Update install of browser-ui-test package in CI --- .../docker/host-x86_64/x86_64-gnu-tools/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile index 214b20bee042..605d988dad71 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile @@ -66,14 +66,16 @@ COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/ RUN curl -sL https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz | tar -xJ ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}" +# For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries +# to create a new folder. For reference: +# https://github.com/puppeteer/puppeteer/issues/375 +# +# We also specify the version in case we need to update it to go around cache limitations. +RUN npm install -g browser-ui-test@0.2.12 --unsafe-perm=true + ENV RUST_CONFIGURE_ARGS \ --build=x86_64-unknown-linux-gnu \ --save-toolstates=/tmp/toolstate/toolstates.json -# Install required dependencies from browser-UI-test framework -# For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries -# to create a new folder. For reference: -# https://github.com/puppeteer/puppeteer/issues/375 ENV SCRIPT /tmp/checktools.sh ../x.py && \ - npm install -g browser-ui-test --unsafe-perm=true && \ NODE_PATH=`npm root -g` python3 ../x.py test src/test/rustdoc-gui --stage 2