From c84fd9a993e416fc3f9be193af45ec0fdf74d46b Mon Sep 17 00:00:00 2001 From: astebenkova Date: Thu, 10 Aug 2023 14:37:07 +0300 Subject: [PATCH] [chromedriver] Amend upstream download link The upstream changed the structure of the JSON API endpoints (now they contain both chrome and chromedriver binaries) https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints Change-Id: Idaa38f3c2522f4709c396e99090b7fa6d9790c8d --- roles/deploy-selenium/tasks/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/deploy-selenium/tasks/main.yaml b/roles/deploy-selenium/tasks/main.yaml index 313596256..fa4140725 100644 --- a/roles/deploy-selenium/tasks/main.yaml +++ b/roles/deploy-selenium/tasks/main.yaml @@ -56,7 +56,7 @@ shell: |- set -ex CHROME_VERSION=$(dpkg -s google-chrome-stable | grep -Po '(?<=^Version: ).*' | awk -F'.' '{print $1"."$2"."$3}') - DRIVER_URL=$(wget -qO- https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r --arg chrome_version "$CHROME_VERSION" '.channels.Stable.downloads.chrome[] | select(.platform=="linux64" and (.url | test($chrome_version))).url') + DRIVER_URL=$(wget -qO- https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r --arg chrome_version "$CHROME_VERSION" '.channels.Stable.downloads.chromedriver[] | select(.platform=="linux64" and (.url | test($chrome_version))).url') wget -O /tmp/chromedriver.zip ${DRIVER_URL} args: executable: /bin/bash @@ -65,5 +65,7 @@ unarchive: src: /tmp/chromedriver.zip dest: /etc/selenium + extra_opts: ["-j"] + include: ["*/chromedriver"] remote_src: yes ...