From 79c41018501b11840d7bab0dd97215a6efce665f Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Tue, 7 Jul 2026 12:25:52 +0200 Subject: [PATCH 1/2] try running gui-tests without docker --- .gitignore | 1 + justfiles/testing.just | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4bfed8322..13a5ccc68 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ target .rustwide-docker archive_cache .workspace +node_modules diff --git a/justfiles/testing.just b/justfiles/testing.just index a99bbff1d..ca300555a 100644 --- a/justfiles/testing.just +++ b/justfiles/testing.just @@ -155,7 +155,8 @@ run-gui-tests: _ensure_db_and_s3_are_running cli-db-migrate compose-up-web just cli-build-crate zbus 5.15.0 just cli-build-add-essential-files - just _cli gui_tests + npm install + node gui-tests/tester.js _build-test-binaries: #!/usr/bin/env bash From 739a99e750ebe5d8336f9d2945d63083d0854021 Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Tue, 7 Jul 2026 12:48:01 +0200 Subject: [PATCH 2/2] no image --- docker-compose.yml | 16 ------ dockerfiles/Dockerfile-gui-tests | 84 -------------------------------- 2 files changed, 100 deletions(-) delete mode 100644 dockerfiles/Dockerfile-gui-tests diff --git a/docker-compose.yml b/docker-compose.yml index b94f73248..a4543f397 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -279,22 +279,6 @@ services: - metrics - full - gui_tests: - platform: "linux/amd64" - build: - context: . - dockerfile: ./dockerfiles/Dockerfile-gui-tests - <<: *docker-cache - network_mode: "host" - extra_hosts: - - "host.docker.internal:host-gateway" - volumes: - - "${PWD}:/build/out" - profiles: - # gui_tests should not be run as background daemon. - # Run via `just run-gui-tests`. - - manual - volumes: postgres-data: {} minio-data: {} diff --git a/dockerfiles/Dockerfile-gui-tests b/dockerfiles/Dockerfile-gui-tests deleted file mode 100644 index cb83e4fcf..000000000 --- a/dockerfiles/Dockerfile-gui-tests +++ /dev/null @@ -1,84 +0,0 @@ -FROM node:24-trixie-slim - -ENV DEBIAN_FRONTEND=noninteractive - -# Install packaged dependencies -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - build-essential \ - git \ - curl \ - cmake \ - gcc \ - g++ \ - pkg-config \ - libmagic-dev \ - libssl-dev \ - zlib1g-dev \ - ca-certificates \ - docker.io \ - xz-utils - -# Install dependencies for chromium browser -# hadolint ignore=DL3008 -RUN apt-get install -y --no-install-recommends \ - libasound2 \ - libatk1.0-0 \ - libatk-bridge2.0-0 \ - chromium \ - libc6 \ - libcairo2 \ - libcups2 \ - libdbus-1-3 \ - libexpat1 \ - libfontconfig1 \ - libgbm-dev \ - libgcc1 \ - libglib2.0-0 \ - libgtk-3-0 \ - libnspr4 \ - libpango-1.0-0 \ - libpangocairo-1.0-0 \ - libstdc++6 \ - libx11-6 \ - libx11-xcb1 \ - libxcb1 \ - libxcomposite1 \ - libxcursor1 \ - libxdamage1 \ - libxext6 \ - libxfixes3 \ - libxi6 \ - libxrandr2 \ - libxrender1 \ - libxss1 \ - libxtst6 \ - fonts-liberation \ - libnss3 \ - lsb-release \ - xdg-utils \ - wget - -RUN apt-get clean \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /build - -RUN mkdir out - -COPY ../package.json /build/package.json - -ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium - -# 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 --unsafe-perm=true --loglevel verbose --force - -# Used in gui-tests/tester.js -ENV NODE_MODULE_PATH="/build/node_modules" - -CMD ["node", "/build/out/gui-tests/tester.js"]