You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by da...@apache.org on 2026/10/23 12:03:35 UTC

(wicket) branch ci-headless-chrome-deps-9.x created (now fceee2ecf2)

This is an automated email from the ASF dual-hosted git repository.

dashorst pushed a change to branch ci-headless-chrome-deps-9.x
in repository https://gitbox.apache.org/repos/asf/wicket.git


      at fceee2ecf2 Run CI on Ubuntu 24.04 and install only headless Chrome's libraries

This branch includes the following new commits:

     new fceee2ecf2 Run CI on Ubuntu 24.04 and install only headless Chrome's libraries

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(wicket) 01/01: Run CI on Ubuntu 24.04 and install only headless Chrome's libraries

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dashorst pushed a commit to branch ci-headless-chrome-deps-9.x
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit fceee2ecf23d519886cc69b05e253cb42ae2bc90
Author: Martijn Dashorst <ma...@topicus.nl>
AuthorDate: Fri Oct 23 14:03:18 2026 +0200

    Run CI on Ubuntu 24.04 and install only headless Chrome's libraries
    
    ubuntu-latest moved to Ubuntu 26.04, which has no libgdk-pixbuf2.0-0
    anymore, so the package step failed on every run before Maven started.
    
    The workflow now pins ubuntu-24.04, as master and wicket-10.x do, and
    installs the libraries and fonts headless Chrome needs in the form
    master has used since 615af3ee95, without chromium-browser: that package
    installs Chromium as a snap, which Puppeteer never uses because it
    downloads its own browser. The Chromium of Puppeteer 19.7.5, the version
    on this branch, starts and renders a page in an Ubuntu 24.04 container
    with only these libraries installed.
    
    Java 11 now comes from actions/setup-java, as on the other branches,
    instead of from apt with JAVA_HOME set by hand.
    
    Generated-by: Claude Code (Claude Opus 5.5)
---
 .github/workflows/maven.yml | 50 ++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 43 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 8e4260753f..5311d9210e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -5,16 +5,54 @@ on: [push, pull_request]
 jobs:
   build:
 
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
 
     steps:
     - uses: actions/checkout@v4
 
-    - name: Apt update
-      run: sudo apt update
+    - name: Setup Temurin JDK
+      uses: actions/setup-java@v5
+      with:
+        distribution: 'temurin'
+        java-version: '11'
 
-    - name: Install Java & Puppeteer's dependencies
-      run: sudo apt-get install -y openjdk-11-jdk chromium-browser fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libasound2t64 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgdk-pixbuf2.0-0 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 l [...]
+    # Puppeteer brings its own Chrome; only Chrome's shared libraries are needed here.
+    - name: Install headless Chrome's dependencies
+      run: |
+        sudo apt-get update
+        sudo apt-get install -y --no-install-recommends \
+          ca-certificates \
+          fonts-freefont-ttf \
+          fonts-ipafont-gothic \
+          fonts-kacst \
+          fonts-liberation \
+          fonts-thai-tlwg \
+          fonts-wqy-zenhei \
+          libasound2t64 \
+          libatk-bridge2.0-0t64 \
+          libatk1.0-0t64 \
+          libc6 \
+          libcairo2 \
+          libcups2t64 \
+          libdbus-1-3 \
+          libdrm2 \
+          libexpat1 \
+          libgbm1 \
+          libglib2.0-0t64 \
+          libgtk-3-0t64 \
+          libnspr4 \
+          libnss3 \
+          libpango-1.0-0 \
+          libvulkan1 \
+          libx11-6 \
+          libxcb1 \
+          libxcomposite1 \
+          libxdamage1 \
+          libxext6 \
+          libxfixes3 \
+          libxkbcommon0 \
+          libxrandr2 \
+          xdg-utils
 
     - name: Cache Maven packages
       uses: actions/cache@v3
@@ -29,8 +67,6 @@ jobs:
         wget --retry-connrefused --tries=5 --waitretry=5 --read-timeout=20 --timeout=15 https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
         tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz
         export PATH=$PWD/apache-maven-${MAVEN_VERSION}/bin:$PATH
-        export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 
-        export PATH=$JAVA_HOME/bin:$PATH
         java -version
         mvn -version
         mvn clean verify -Pjs-test