Skip to content

Commit

Permalink
Provisioning: Pin version of Chrome and chromedriver for WASM tests
Browse files Browse the repository at this point in the history
Install Chrome and chromedriver from our cache with
specific version for better CI stability.

Fixes: QTQAINFRA-6465
Change-Id: I34f84563c6eb5feea4f112adbd20136974b211c8
Reviewed-by: Morten Johan Sørvig <[email protected]>
  • Loading branch information
Piotr Wierciński committed Sep 11, 2024
1 parent 0e21095 commit 963d722
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -ex

# This script will install up-to-date google Chrome needed for Webassembly auto tests.

# shellcheck source=../common/unix/DownloadURL.sh
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"

# shellcheck source=../common/unix/DownloadURL.sh
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh"

Expand All @@ -22,3 +25,14 @@ sudo zypper -nq install --no-confirm google-chrome-stable
# Install Chromedriver Chromium
sudo zypper -nq install chromedriver

chromeVersion="chrome-for-testing-115"
sha="7242ece1055bdbf503527f8e87c4b5da37c3c60e"
chromeUrl="https://ci-files01-hki.ci.qt.io/input/wasm/chrome/${chromeVersion}.tar.gz"
target="/tmp/chrome-for-testing-115.tar.gz"

DownloadURL "$chromeUrl" "" "$sha" "$target"
sudo tar -xzf "$target" -C "${HOME}"
sudo rm -f "$target"

SetEnvVar "BROWSER_FOR_WASM" "${HOME}/${chromeVersion}/chrome"
SetEnvVar "CHROMEDRIVER_PATH" "${HOME}/${chromeVersion}/chromedriver"

0 comments on commit 963d722

Please sign in to comment.