Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit 61dadca

Browse files
committed
Upgrade Selenium minor to from 3.2.0 to 3.3.1
1 parent 51ce38a commit 61dadca

File tree

10 files changed

+86
-36
lines changed

10 files changed

+86
-36
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,35 @@ Note image ids also change after scm-source.json has being updated which trigger
77
###### To get container versions
88
docker exec grid versions
99

10+
## TBD_DOCKER_TAG
11+
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/326af92110685041616f79b4...TBD_CUR_COMM (TBD_DATE)
12+
+ Upgrade Selenium minor to from 3.2.0 to 3.3.1
13+
+ Upgrade Firefox major from 51.0.1 to 52.0.2
14+
+ Upgrade GeckoDriver from 0.14.0 to 0.15.0
15+
+ Chore: Grab Selenium 3 version using `--version`
16+
+ Docker push major tags: e.g. 3, 3.2, 3.2.0 and of course the specific one
17+
+ **Image tag details:**
18+
+ Selenium 2: TBD_SELENIUM_2_VERSION (TBD_SELENIUM_2_REVISION)
19+
+ Selenium 3: TBD_SELENIUM_3_VERSION (TBD_SELENIUM_3_REVISION)
20+
+ Chrome stable: TBD_CHROME_STABLE
21+
+ Firefox for Selenium 2: TBD_FIREFOX_FOR_SEL2
22+
+ Firefox for Selenium 3: TBD_FIREFOX_FOR_SEL3
23+
+ Geckodriver: TBD_GECKO_DRIVER
24+
+ Chromedriver: TBD_CHROME_DRIVER (TBD_CHROMEDRIVER_COMMIT)
25+
+ Java: TBD_JAVA_VENDOR Java TBD_JAVA_BUILD
26+
+ Timezone: TBD_TIME_ZONE
27+
+ FROM ubuntu:UBUNTU_FLAVOR-UBUNTU_DATE
28+
+ Python: TBD_PYTHON_VERSION
29+
+ Tested on kernel dev host: 4.4.0-70-generic x86_64
30+
+ Tested on kernel CI host: TBD_HOST_UNAME
31+
+ Built at dev host with: Docker version 17.03.1-ce, build c6d412e
32+
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD
33+
+ Built at dev host with: Docker Compose version 1.11.2, build dfed245
34+
+ Built at CI host with: Docker Compose version TBD_DOCKER_COMPOSE_VERS, build TBD_DOCKER_COMPOSE_BUILD
35+
+ Image size: TBD_IMAGE_SIZE
36+
+ Digest: TBD_DIGEST
37+
+ Image ID: TBD_IMAGE_ID
38+
1039
## 3.2.0-p4
1140
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/b2f04d2c7a4c109413...326af92110685041616f79b4 (2017-03-29)
1241
+ Improve stop-video functionality via VIDEO_TMP_FILE_EXTENSION & others

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For pull requests or local commits:
1212

1313
For repository owners only:
1414

15-
git commit -m "Video stopping resilience from Zalenium side"
15+
git commit -m "Upgrade Selenium minor to from 3.2.0 to 3.3.1"
1616
git tag -d latest && git tag `cat VERSION` && git push origin tmp-`cat VERSION` && git push --tags
1717

1818
-- Wait for Travis to pass OK

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@ RUN export SELBASE="https://selenium-release.storage.googleapis.com" \
236236
# Selenium 3
237237
#============
238238
# Layer size: medium ~22 MB
239-
ENV SEL_DIRECTORY="3.2" \
240-
SEL_VER="3.2.0"
239+
ENV SEL_DIRECTORY="3.3" \
240+
SEL_VER="3.3.1"
241241
RUN export SELBASE="https://selenium-release.storage.googleapis.com" \
242242
&& export SELPATH="${SEL_DIRECTORY}/selenium-server-standalone-${SEL_VER}.jar" \
243243
&& wget -nv ${SELBASE}/${SELPATH} \
244244
&& ln -s "selenium-server-standalone-${SEL_VER}.jar" \
245245
"selenium-server-standalone-3.jar"
246246

247-
LABEL selenium_version "3.2.0"
247+
LABEL selenium_version "3.3.1"
248248

249249
#=============================
250250
# sudo by default from now on

TBD_DOCKER_TAG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
+ TBD_COMMIT_MSG
44
+ **Image tag details:**
55
+ Selenium 2: TBD_SELENIUM_2_VERSION (TBD_SELENIUM_2_REVISION)
6-
+ Selenium 3: 3.2.0 (8c03df6)
6+
+ Selenium 3: TBD_SELENIUM_3_VERSION (TBD_SELENIUM_3_REVISION)
77
+ Chrome stable: TBD_CHROME_STABLE
88
+ Firefox for Selenium 2: TBD_FIREFOX_FOR_SEL2
99
+ Firefox for Selenium 3: TBD_FIREFOX_FOR_SEL3

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.0-p4
1+
3.3.1-p0

bin/selenium_2_revision_version

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# log_file="selenium_version.log"
5+
# java -jar ${SELENIUM_JAR_PATH} \
6+
# -port ${SELENIUM_HUB_PORT} \
7+
# -log ${log_file} \
8+
# >/dev/null 2>&1 &
9+
# pid=$!
10+
# sleep 1 && kill ${pid} || true
11+
# rm -f ${log_file}
12+
13+
[ -z "${USE_SELENIUM}" ] && export USE_SELENIUM="$(cat USE_SELENIUM)"
14+
[ -z "${SELENIUM_JAR_PATH}" ] && export SELENIUM_JAR_PATH="$(cat SELENIUM_JAR_PATH)"
15+
[ -z "${SELENIUM_HUB_PORT}" ] && export SELENIUM_HUB_PORT="$(cat SELENIUM_HUB_PORT)"
16+
[ -z "${LOGS_DIR}" ] && export LOGS_DIR="$(cat LOGS_DIR)"
17+
18+
# --version not supported here so hard-coding
19+
echo "a36b8b1"

bin/selenium_2_version

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# log_file="selenium_version.log"
5+
# java -jar ${SELENIUM_JAR_PATH} \
6+
# -port ${SELENIUM_HUB_PORT} \
7+
# -log ${log_file} \
8+
# >/dev/null 2>&1 &
9+
# pid=$!
10+
# sleep 1 && kill ${pid} || true
11+
# rm -f ${log_file}
12+
13+
[ -z "${USE_SELENIUM}" ] && export USE_SELENIUM="$(cat USE_SELENIUM)"
14+
[ -z "${SELENIUM_JAR_PATH}" ] && export SELENIUM_JAR_PATH="$(cat SELENIUM_JAR_PATH)"
15+
[ -z "${SELENIUM_HUB_PORT}" ] && export SELENIUM_HUB_PORT="$(cat SELENIUM_HUB_PORT)"
16+
[ -z "${LOGS_DIR}" ] && export LOGS_DIR="$(cat LOGS_DIR)"
17+
18+
# --version not supported here so hard-coding
19+
echo "2.53.1"

bin/selenium_revision_version

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,10 @@ set -e
1515
[ -z "${SELENIUM_HUB_PORT}" ] && export SELENIUM_HUB_PORT="$(cat SELENIUM_HUB_PORT)"
1616
[ -z "${LOGS_DIR}" ] && export LOGS_DIR="$(cat LOGS_DIR)"
1717

18-
if [ "${USE_SELENIUM}" == "2" ]; then
19-
# Selenium 2 - Example:
20-
#=> 35ae25b
21-
java -jar ${SELENIUM_JAR_PATH} -port ${SELENIUM_HUB_PORT} 2>&1 \
18+
# Selenium 3 - Example:
19+
#=> 5234b32
20+
if [ "${USE_SELENIUM}" == "3" ]; then
21+
java -jar ${SELENIUM_JAR_PATH} --version \
2222
| grep revision \
23-
| grep -Po '(?<=revision )([a-z0-9\.]+)'
24-
else
25-
# Selenium 3 - Example:
26-
#=> 3169782
27-
log_file="${LOGS_DIR}/selenium-hub-stderr.log"
28-
cat ${log_file} \
29-
| grep revision \
30-
| grep -Po "(?<=revision: ')([a-z0-9\.]+)" \
31-
| sed "s/'//g" \
32-
| sed "s/,//g"
23+
| grep -Po '(?<=revision: )([a-z0-9\.]+)'
3324
fi

bin/selenium_version

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,11 @@ set -e
1515
[ -z "${SELENIUM_HUB_PORT}" ] && export SELENIUM_HUB_PORT="$(cat SELENIUM_HUB_PORT)"
1616
[ -z "${LOGS_DIR}" ] && export LOGS_DIR="$(cat LOGS_DIR)"
1717

18-
if [ "${USE_SELENIUM}" == "2" ]; then
19-
# Selenium 2 - Example:
20-
#=> 2.53.1
21-
java -jar ${SELENIUM_JAR_PATH} -port ${SELENIUM_HUB_PORT} 2>&1 \
22-
| grep revision \
23-
| grep -Po '(?<=Core v)([a-z0-9\.]+)' \
18+
# Selenium 3 - Example:
19+
#=> 3.3.1
20+
if [ "${USE_SELENIUM}" == "3" ]; then
21+
java -jar ${SELENIUM_JAR_PATH} --version \
22+
| grep version \
23+
| grep -Po '(?<=version: )([a-z0-9\.]+)' \
2424
| sed 's/\.$//'
25-
else
26-
# Selenium 3 - Example:
27-
#=> 3.0.0-beta4
28-
log_file="${LOGS_DIR}/selenium-hub-stderr.log"
29-
cat ${log_file} \
30-
| grep revision \
31-
| grep -Po "(?<=version:\s).*([a-z0-9\.\-]+)'," \
32-
| sed "s/'//g" \
33-
| sed "s/,//g"
3425
fi

bin/versions

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

3-
echo "selenium_version=$(selenium_version) selenium_revision_version=$(selenium_revision_version)"
3+
echo "selenium 3 version=$(selenium_version) revision=$(selenium_revision_version)"
4+
echo "selenium 2 version=$(selenium_2_version) revision=$(selenium_2_revision_version)"
45

56
echo "chrome_stable_version=$(chrome_stable_version)"
67
google-chrome-stable --version

0 commit comments

Comments
 (0)