[chromedriver] Loosen compatibility up with Chrome

Chromedriver had strict version selection. This commit allows
it to pick the closest patch version to google-chrome-stable

Change-Id: I435985573f69ee4bb0f6009416452649f302c0fe
This commit is contained in:
astebenkova 2024-05-01 11:07:04 +03:00 committed by Vladimir Kozhukalov
parent 4bc249d540
commit 93aec7e807
3 changed files with 5 additions and 5 deletions

View File

@ -55,8 +55,8 @@
- name: Get selenium chromedriver archive
shell: |-
set -ex
CHROME_VERSION=$(dpkg -s google-chrome-stable | sed -n 's/^Version: \(.*\)-.*$/\1/p')
DRIVER_URL=$(wget -qO- https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json | jq -r --arg chrome_version "$CHROME_VERSION" '.versions[] | select(.version == $chrome_version) | .downloads.chromedriver[] | select(.platform=="linux64").url')
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/known-good-versions-with-downloads.json | jq -r --arg chrome_version "$CHROME_VERSION" '.versions[] | select(.version | test($chrome_version)) | .downloads.chromedriver[] | select(.platform=="linux64").url' | tail -1)
wget -O /tmp/chromedriver.zip ${DRIVER_URL}
args:
executable: /bin/bash

View File

@ -275,11 +275,11 @@
- ^tools/deployment/ceph-adapter-rook\.sh$
- job:
name: openstack-helm-infra-tls-2023-1-ubuntu_focal
name: openstack-helm-infra-tls-2024-1-ubuntu_jammy
description: |
This job uses OSH Ceph charts for managing Ceph cluster.
The job is run on 1 32GB node.
parent: openstack-helm-tls-2023-1-ubuntu_focal
parent: openstack-helm-tls-2024-1-ubuntu_jammy
files:
- ^helm-toolkit/.*
- ^roles/.*

View File

@ -30,7 +30,7 @@
- openstack-helm-infra-compute-kit-2023-2-ubuntu_jammy
- openstack-helm-infra-cinder-2023-1-ubuntu_focal
- openstack-helm-infra-cinder-2024-1-ubuntu_jammy
- openstack-helm-infra-tls-2023-1-ubuntu_focal
- openstack-helm-infra-tls-2024-1-ubuntu_jammy
- openstack-helm-infra-compute-kit-dpdk-2023-2-ubuntu_jammy
gate:
jobs: