Skip to content

Commit

Permalink
[build.webkit.org] Add WebKitGTK and WPE bots for Ubuntu 22.04
Browse files Browse the repository at this point in the history
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
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295521 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
dpino committed Jun 14, 2022
1 parent fe40e70 commit c28c6a1
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 15 deletions.
22 changes: 19 additions & 3 deletions Tools/CISupport/build-webkit-org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand All @@ -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": [
Expand Down Expand Up @@ -467,11 +469,17 @@
"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"],
Expand Down Expand Up @@ -613,18 +621,26 @@
"workernames": ["wpe-linux-bot-9"]
},
{
"name": "WPE-Linux-64-bit-Release-Ubuntu-LTS-Build", "factory": "BuildFactory",
"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-11"]
}
],

"schedulers": [ { "type": "AnyBranchScheduler", "name": "main", "change_filter": "main_filter", "treeStableTimer": 45.0,
"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",
Expand Down
25 changes: 24 additions & 1 deletion Tools/CISupport/build-webkit-org/factories_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,17 @@ class TestExpectedBuildSteps(unittest.TestCase):
'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',
Expand Down Expand Up @@ -1633,7 +1644,19 @@ class TestExpectedBuildSteps(unittest.TestCase):
'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):
Expand Down
15 changes: 13 additions & 2 deletions Tools/glib/dependencies/apt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,25 @@

# 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
echo $2
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
Expand Down Expand Up @@ -58,9 +69,9 @@ PACKAGES=(
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
Expand Down
18 changes: 9 additions & 9 deletions Tools/gtk/dependencies/apt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ PACKAGES+=(
geoclue-2.0
gnome-common
libedit-dev
libenchant-dev
libfaad-dev
libffi-dev
libgirepository1.0-dev
Expand Down Expand Up @@ -35,24 +34,24 @@ PACKAGES+=(
libxtst-dev
nasm
xfonts-utils
$(aptIfExists libenchant-dev)

# These are dependencies necessary for running tests.
cups-daemon
dbus-x11
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
flex
gobject-introspection
icon-naming-utils
libcroco3-dev
libcups2-dev
libdrm-dev
libevdev-dev
Expand All @@ -75,18 +74,19 @@ PACKAGES+=(
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)
)

0 comments on commit c28c6a1

Please sign in to comment.