@@ -92,59 +92,6 @@ RUN chmod a+x /checode/out/server-main.js \
9292# ## Beginning of tests
9393# Do not change line above! It is used to cut this section to skip tests
9494
95- # Compile tests
96- RUN ./node_modules/.bin/gulp compile-extension:vscode-api-tests \
97- compile-extension:markdown-language-features \
98- compile-extension:typescript-language-features \
99- compile-extension:emmet \
100- compile-extension:git \
101- compile-extension:ipynb \
102- compile-extension-media \
103- compile-extension:configuration-editing
104-
105- # Compile test suites
106- # https://github.com/microsoft/vscode/blob/cdde5bedbf3ed88f93b5090bb3ed9ef2deb7a1b4/test/integration/browser/README.md#compile
107- RUN if [ "$(uname -m)" = "x86_64" ]; then npm --prefix test/smoke run compile && npm --prefix test/integration/browser run compile; fi
108-
109- # install test dependencies
110- ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=0
111- RUN if [ "$(uname -m)" = "x86_64" ]; then npm run playwright-install; fi
112- # Install procps to manage to kill processes and centos stream repository
113- RUN if [ "$(uname -m)" = "x86_64" ]; then \
114- ARCH=$(uname -m) && \
115- yum install --nobest -y procps \
116- https://vault.centos.org/centos/8/extras/${ARCH}/os/Packages/epel-release-8-11.el8.noarch.rpm \
117- https://vault.centos.org/8-stream/BaseOS/${ARCH}/os/Packages/centos-gpg-keys-8-3.el8.noarch.rpm \
118- https://vault.centos.org/8-stream/BaseOS/${ARCH}/os/Packages/centos-stream-repos-8-3.el8.noarch.rpm; \
119- fi
120-
121- RUN if [ "$(uname -m)" = "x86_64" ]; then \
122- sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* \
123- && yum install -y chromium \
124- && PLAYWRIGHT_CHROMIUM_PATH=$(echo /opt/app-root/src/.cache/ms-playwright/chromium-*/) \
125- && rm "${PLAYWRIGHT_CHROMIUM_PATH}/chrome-linux/chrome" \
126- && ln -s /usr/bin/chromium-browser "${PLAYWRIGHT_CHROMIUM_PATH}/chrome-linux/chrome" ; \
127- fi
128-
129- # use of retry and timeout
130- COPY /build/scripts/helper/retry.sh /opt/app-root/src/retry.sh
131- RUN chmod u+x /opt/app-root/src/retry.sh
132-
133- # Run integration tests (Browser)
134- RUN if [ "$(uname -m)" = "x86_64" ]; then \
135- NODE_ARCH=$(echo "console.log(process.arch)" | node) \
136- VSCODE_REMOTE_SERVER_PATH="$(pwd)/../vscode-reh-web-linux-${NODE_ARCH}" \
137- MACHINE_EXEC_MAX_RETRIES=1 \
138- /opt/app-root/src/retry.sh -v -t 3 -s 2 -- timeout -v 5m ./scripts/test-web-integration.sh --browser chromium; \
139- fi
140-
141- # Run smoke tests (Browser)
142- RUN if [ "$(uname -m)" = "x86_64" ]; then \
143- NODE_ARCH=$(echo "console.log(process.arch)" | node) \
144- VSCODE_REMOTE_SERVER_PATH="$(pwd)/../vscode-reh-web-linux-${NODE_ARCH}" \
145- /opt/app-root/src/retry.sh -v -t 3 -s 2 -- timeout -v 5m npm run smoketest-no-compile -- --web --headless --electronArgs="--disable-dev-shm-usage --use-gl=swiftshader" ; \
146- fi
147-
14895# Do not change line below! It is used to cut this section to skip tests
14996# ## Ending of tests
15097
0 commit comments