Title: [295521] trunk/Tools
Revision
295521
Author
[email protected]
Date
2022-06-14 07:10:51 -0700 (Tue, 14 Jun 2022)

Log Message

[build.webkit.org] Add WebKitGTK and WPE bots for Ubuntu 22.04
https://bugs.webkit.org/show_bug.cgi?id=241335

Reviewed by Adrian Perez de Castro and Aakash Jain.

* Tools/CISupport/build-webkit-org/config.json: Add two new entries for
  building WebKitGTK and WPE on Ubuntu 20.04. The current Ubuntu LTS
  bots are now building WebKitGTK and WPE on Ubuntu 22.04.
* Tools/CISupport/build-webkit-org/factories_unittest.py: Add two new
  entries for testing WebKitGTK and WPE on Ubuntu 20.04.
* Tools/glib/dependencies/apt: Install package 'python-gi' only if available.
* Tools/gtk/dependencies/apt: Install packages only if available.

Canonical link: https://commits.webkit.org/251526@main

Modified Paths

Diff

Modified: trunk/Tools/CISupport/build-webkit-org/config.json (295520 => 295521)


--- trunk/Tools/CISupport/build-webkit-org/config.json	2022-06-14 10:12:28 UTC (rev 295520)
+++ trunk/Tools/CISupport/build-webkit-org/config.json	2022-06-14 14:10:51 UTC (rev 295521)
@@ -119,6 +119,7 @@
                     { "name": "gtk-linux-bot-18", "platform": "gtk" },
                     { "name": "gtk-linux-bot-19", "platform": "gtk" },
                     { "name": "gtk-linux-bot-20", "platform": "gtk" },
+                    { "name": "gtk-linux-bot-21", "platform": "gtk" },
 
                     { "name": "jsconly-linux-igalia-bot-1", "platform": "jsc-only" },
                     { "name": "jsconly-linux-igalia-bot-2", "platform": "jsc-only" },
@@ -135,7 +136,8 @@
                     { "name": "wpe-linux-bot-7", "platform": "wpe" },
                     { "name": "wpe-linux-bot-8", "platform": "wpe" },
                     { "name": "wpe-linux-bot-9", "platform": "wpe" },
-                    { "name": "wpe-linux-bot-10", "platform": "wpe" }
+                    { "name": "wpe-linux-bot-10", "platform": "wpe" },
+                    { "name": "wpe-linux-bot-11", "platform": "wpe" }
                   ],
 
     "builders":   [
@@ -467,12 +469,18 @@
                       "workernames": ["gtk-linux-bot-10"]
                     },
                     {
-                      "name": "GTK-Linux-64-bit-Release-Ubuntu-LTS-Build", "factory": "BuildFactory",
+                      "name": "GTK-Linux-64-bit-Release-Ubuntu-2004-Build", "factory": "BuildFactory",
                       "platform": "gtk", "configuration": "release", "architectures": ["x86_64"],
                       "additionalArguments": ["--no-experimental-features"],
                       "workernames": ["gtk-linux-bot-11"]
                     },
                     {
+                      "name": "GTK-Linux-64-bit-Release-Ubuntu-LTS-Build", "factory": "BuildFactory",
+                      "platform": "gtk", "configuration": "release", "architectures": ["x86_64"],
+                      "additionalArguments": ["--no-experimental-features"],
+                      "workernames": ["gtk-linux-bot-21"]
+                    },
+                    {
                       "name": "GTK-Linux-64bit-Release-Packaging-Nightly-Ubuntu1804", "factory": "BuildAndGenerateMiniBrowserBundleFactory",
                       "platform": "gtk", "configuration": "release", "architectures": ["x86_64"],
                       "additionalArguments": ["--no-bubblewrap-sandbox"],
@@ -613,10 +621,16 @@
                       "workernames": ["wpe-linux-bot-9"]
                     },
                     {
+                      "name": "WPE-Linux-64-bit-Release-Ubuntu-2004-Build", "factory": "BuildFactory",
+                      "platform": "wpe", "configuration": "release", "architectures": ["x86_64"],
+                      "additionalArguments": ["--no-experimental-features"],
+                      "workernames": ["wpe-linux-bot-10"]
+                    },
+                    {
                       "name": "WPE-Linux-64-bit-Release-Ubuntu-LTS-Build", "factory": "BuildFactory",
                       "platform": "wpe", "configuration": "release", "architectures": ["x86_64"],
                       "additionalArguments": ["--no-experimental-features"],
-                      "workernames": ["wpe-linux-bot-10"]
+                      "workernames": ["wpe-linux-bot-11"]
                     }
                   ],
 
@@ -624,7 +638,9 @@
                       "builderNames": ["GTK-Linux-64-bit-Release-Build", "GTK-Linux-64-bit-Debug-Build",
                                        "GTK-Linux-64-bit-Release-Clang",
                                        "GTK-Linux-64-bit-Release-Debian-Stable-Build",
+                                       "GTK-Linux-64-bit-Release-Ubuntu-2004-Build",
                                        "GTK-Linux-64-bit-Release-Ubuntu-LTS-Build",
+                                       "WPE-Linux-64-bit-Release-Ubuntu-2004-Build",
                                        "WPE-Linux-64-bit-Release-Ubuntu-LTS-Build",
                                        "JSCOnly-Linux-AArch64-Release",
                                        "JSCOnly-Linux-ARMv7-Thumb2-Release", "JSCOnly-Linux-ARMv7-Thumb2-SoftFP-Release",

Modified: trunk/Tools/CISupport/build-webkit-org/factories_unittest.py (295520 => 295521)


--- trunk/Tools/CISupport/build-webkit-org/factories_unittest.py	2022-06-14 10:12:28 UTC (rev 295520)
+++ trunk/Tools/CISupport/build-webkit-org/factories_unittest.py	2022-06-14 14:10:51 UTC (rev 295521)
@@ -1235,6 +1235,17 @@
             'delete-stale-build-files',
             'compile-webkit'
         ],
+        'GTK-Linux-64-bit-Release-Ubuntu-2004-Build': [
+            'configure-build',
+            'configuration',
+            'clean-and-update-working-directory',
+            'checkout-specific-revision',
+            'show-identifier',
+            'kill-old-processes',
+            'delete-WebKitBuild-directory',
+            'delete-stale-build-files',
+            'compile-webkit'
+        ],
         'GTK-Linux-64bit-Release-Packaging-Nightly-Ubuntu1804': [
             'configure-build',
             'configuration',
@@ -1633,7 +1644,19 @@
             'delete-stale-build-files',
             'jhbuild',
             'compile-webkit'
-        ]
+        ],
+        'WPE-Linux-64-bit-Release-Ubuntu-2004-Build': [
+            'configure-build',
+            'configuration',
+            'clean-and-update-working-directory',
+            'checkout-specific-revision',
+            'show-identifier',
+            'kill-old-processes',
+            'delete-WebKitBuild-directory',
+            'delete-stale-build-files',
+            'jhbuild',
+            'compile-webkit'
+        ],
     }
 
     def setUp(self):

Modified: trunk/Tools/glib/dependencies/apt (295520 => 295521)


--- trunk/Tools/glib/dependencies/apt	2022-06-14 10:12:28 UTC (rev 295520)
+++ trunk/Tools/glib/dependencies/apt	2022-06-14 14:10:51 UTC (rev 295521)
@@ -2,7 +2,7 @@
 
 # If the package $1 is available, prints it. Otherwise prints $2.
 # Useful for handling when a package is renamed on new versions of Debian/Ubuntu.
-function aptIfElse {
+aptIfElse() {
     if apt-cache show $1 &>/dev/null; then
         echo $1
     else
@@ -10,6 +10,17 @@
     fi
 }
 
+aptIfExists() {
+    local ret=$(apt show "$1" 2>/dev/null)
+    if [[ $? -ne 0 ]]; then
+        return
+    fi
+    if [[ "$ret" =~ "(virtual)" ]]; then
+        return
+    fi
+    echo "$1"
+}
+
 PACKAGES=(
     # These are dependencies necessary for building WebKitGTK/WPE.
     autoconf
@@ -58,9 +69,9 @@
     libcgi-pm-perl
     psmisc
     pulseaudio-utils
-    python-gi
     ruby-highline
     ruby-json
+    $(aptIfExists python-gi)
 
     # These are dependencies necessary for building with the Flatpak SDK.
     flatpak

Modified: trunk/Tools/gtk/dependencies/apt (295520 => 295521)


--- trunk/Tools/gtk/dependencies/apt	2022-06-14 10:12:28 UTC (rev 295520)
+++ trunk/Tools/gtk/dependencies/apt	2022-06-14 14:10:51 UTC (rev 295521)
@@ -7,7 +7,6 @@
     geoclue-2.0
     gnome-common
     libedit-dev
-    libenchant-dev
     libfaad-dev
     libffi-dev
     libgirepository1.0-dev
@@ -35,6 +34,7 @@
     libxtst-dev
     nasm
     xfonts-utils
+    $(aptIfExists libenchant-dev)
 
     # These are dependencies necessary for running tests.
     cups-daemon
@@ -42,10 +42,10 @@
     hunspell
     hunspell-en-gb
     hunspell-en-us
-    python-psutil
-    python-yaml
     weston
     xvfb
+    $(aptIfExists python-psutil)
+    $(aptIfExists python-yaml)
 
     # These are dependencies necessary for building the jhbuild.
     bison
@@ -52,7 +52,6 @@
     flex
     gobject-introspection
     icon-naming-utils
-    libcroco3-dev
     libcups2-dev
     libdrm-dev
     libevdev-dev
@@ -75,18 +74,19 @@
     libxfont-dev
     libxkbcommon-x11-dev
     libxkbfile-dev
-    python-dev
     ragel
-    x11proto-bigreqs-dev
-    x11proto-composite-dev
     x11proto-gl-dev
     x11proto-input-dev
     x11proto-randr-dev
-    x11proto-resource-dev
     x11proto-scrnsaver-dev
     x11proto-video-dev
-    x11proto-xcmisc-dev
     x11proto-xf86dri-dev
     xtrans-dev
     xutils-dev
+    $(aptIfExists libcroco3-dev)
+    $(aptIfExists python-dev)
+    $(aptIfExists x11proto-bigreqs-dev)
+    $(aptIfExists x11proto-composite-dev)
+    $(aptIfExists x11proto-resource-dev)
+    $(aptIfExists x11proto-xcmisc-dev)
 )
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to