Skip to content

Commit 25a5bb4

Browse files
espyjanl
authored andcommitted
ci: avoid azure mirrors if possible
1 parent fb063f4 commit 25a5bb4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

bin/run-test.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,14 @@ pouchdb-build-node() {
8383
}
8484

8585
if [[ $CI = true ]] && [[ $CLIENT != node ]]; then
86-
# npx playwright install --with-deps "$CLIENT"
87-
# The full install with deps was glacially slow on CI
88-
npx playwright install "$CLIENT"
89-
sudo apt-get update
90-
sudo apt-get install -y libwoff1 libvpx9 libevent-2.1-7t64 libopus0 libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0 libgstreamer-plugins-bad1.0-0 libflite1 libavif16 libharfbuzz-icu0 libsecret-1-0 libhyphen0 libwayland-server0 libmanette-0.2-0 libgles2 gstreamer1.0-libav
86+
# Change Ubuntu mirror priorities.
87+
# azure.archive.ubuntu.com is very slow, especially if the US is awake.
88+
# From https://github.com/servo/servo/pull/39190
89+
sudo sed -i '/archive.ubuntu.com\/ubuntu\/\tpriority/ s/priority:2/priority:0/' /etc/apt/apt-mirrors.txt
90+
sudo sed -i '/azure.archive.ubuntu.com\/ubuntu\/\tpriority/ s/priority:0/priority:1/' /etc/apt/apt-mirrors.txt
91+
sudo sed -i '/security.ubuntu.com\/ubuntu\/\tpriority/ s/priority:3/priority:2/' /etc/apt/apt-mirrors.txt
92+
sudo cat /etc/apt/apt-mirrors.txt
93+
npx playwright install --with-deps "$CLIENT"
9194
fi
9295

9396
if [[ -n $SERVER ]]; then

0 commit comments

Comments
 (0)