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

Commit ab29210

Browse files
committed
Upgrade Chromedriver to 2.25 (was 2.24)
1 parent ae2cace commit ab29210

File tree

19 files changed

+100
-86
lines changed

19 files changed

+100
-86
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ matrix:
5959
- docker
6060
env:
6161
- DOCKER_VERSION="stable"
62-
DOCKER_COMPOSE_VERSION="1.9.0-rc1"
62+
DOCKER_COMPOSE_VERSION="1.9.0-rc2"
6363
# Linux with docker:beta/older compose:stable
6464
- os: linux
6565
language: c
@@ -69,7 +69,7 @@ matrix:
6969
- docker
7070
env:
7171
- DOCKER_VERSION="1.12.2-rc2"
72-
DOCKER_COMPOSE_VERSION="1.9.0-rc1"
72+
DOCKER_COMPOSE_VERSION="1.9.0-rc2"
7373
# Mac OSX: only test native docker version
7474
- os: osx
7575
osx_image: xcode8

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,42 @@ 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+
+ Date: TBD_DATE
12+
+ Upgrade Chromedriver to 2.25 (was 2.24)
13+
+ Move back from Java 9 to Java 8 to save space
14+
+ Added option -e VIDEO_STOP_SLEEP_SECS="1"
15+
+ Image tag details:
16+
+ Selenium 2: TBD_SELENIUM_2_VERSION (TBD_SELENIUM_2_REVISION)
17+
+ Selenium 3: 3.0.1 (1969d75)
18+
+ Chrome stable: TBD_CHROME_STABLE
19+
+ Firefox for Selenium 2: TBD_FIREFOX_FOR_SEL2
20+
+ Firefox for Selenium 3: TBD_FIREFOX_FOR_SEL3
21+
+ Geckodriver: TBD_GECKO_DRIVER
22+
+ Chromedriver: TBD_CHROME_DRIVER (TBD_CHROMEDRIVER_COMMIT)
23+
+ Java: TBD_JAVA_VENDOR Java TBD_JAVA_BUILD
24+
+ Timezone: TBD_TIME_ZONE
25+
+ FROM ubuntu:UBUNTU_FLAVOR-UBUNTU_DATE
26+
+ Python: TBD_PYTHON_VERSION
27+
+ Sauce Connect TBD_SAUCE_CONNECT_VERS, build TBD_SAUCE_CONNECT_BUILD TBD_SAUCE_CONNECT_REVISION
28+
+ BrowserStack Local version TBD_BROWSER_STACK_VERSION
29+
+ Tested on kernel dev host: 4.4.0-45-generic x86_64
30+
+ Tested on kernel CI host: TBD_HOST_UNAME
31+
+ Built at dev host with: Docker version 1.12.3, build 6b644ec
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.8.1, build 878cff1
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.0.1a
1140
+ Date: 2016-10-24
1241
+ Upgrade Selenium 3 patch 3.0.1 (was 3.0.0)
1342
+ Upgrade Chrome patch to 54.0.2840.71
1443
+ Upgrade Firefox patch to 49.0.2
1544
+ Upgrade Sauce Connect patch to 4.4.1 (was 4.4.0)
45+
+ Upgrade BrowserStack minor to 6.4 (was 6.3)
1646
+ Image tag details:
1747
+ Selenium 2: 2.53.1 (a36b8b1)
1848
+ Selenium 3: 3.0.1 (1969d75)

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ For pull requests or local commits:
77
docker exec grid versions && ./test/after_script && travis lint
88
open ./images/grid2_console.png && open ./images/grid3_console.png && open ./videos/mobile_emulation/*.mkv
99
open test/seleIDE/videos/rc/sele_ide.mkv
10-
git checkout -b tmp-3.0.1a && git checkout ./images/grid2_console.png && git checkout ./images/grid3_console.png
10+
git checkout -b tmp-3.0.1b && git checkout ./images/grid2_console.png && git checkout ./images/grid3_console.png
1111
#git add ... git commit ... git push ... open pull request
1212

1313
For repository owners only:
1414

15-
git commit -m "Upgrade Selenium 3 patch 3.0.1 (was 3.0.0)"
16-
git tag -d latest && git tag 3.0.1a && git push origin tmp-3.0.1a && git push --tags
15+
git commit -m "Upgrade Chromedriver to 2.25 (was 2.24)"
16+
git tag -d latest && git tag 3.0.1b && git push origin tmp-3.0.1b && git push --tags
1717

1818
-- Wait for Travis to pass OK
1919
-- Make sure changes got merged into master by elgalubot
2020

21-
git checkout master && git pull && git branch -d tmp-3.0.1a && git push origin --delete tmp-3.0.1a
21+
git checkout master && git pull && git branch -d tmp-3.0.1b && git push origin --delete tmp-3.0.1b
2222

2323
-- Re-add TBD_* section in CHANGELOG.md starting with TBD_DOCKER_TAG
2424
-- If Chrome version changed upload:
@@ -36,9 +36,9 @@ Keep certain bins if chrome version changed for example:
3636
## Retry
3737
Failed in Travis? retry
3838

39-
git tag -d 3.0.1a && git push origin :3.0.1a
39+
git tag -d 3.0.1b && git push origin :3.0.1b
4040
#git add ...
41-
git commit --amend && git tag 3.0.1a && git push --force origin tmp-3.0.1a && git push --tags
41+
git commit --amend && git tag 3.0.1b && git push --force origin tmp-3.0.1b && git push --tags
4242

4343
## Docker push from Travis CI
4444
Travis [steps](https://docs.travis-ci.com/user/docker/#Pushing-a-Docker-Image-to-a-Registry) involve `docker login` and docker credentials encryptions.

Dockerfile

Lines changed: 42 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,17 @@
1-
###################################################
2-
# Selenium standalone docker for Chrome & Firefox #
3-
###################################################
41
#== Ubuntu xenial is 16.04, i.e. FROM ubuntu:16.04
5-
# search for more at https://registry.hub.docker.com/_/ubuntu/tags/manage/
2+
# Find latest images at https://hub.docker.com/r/library/ubuntu/
63
FROM ubuntu:xenial-20161010
74
ENV UBUNTU_FLAVOR="xenial" \
85
UBUNTU_DATE="20161010"
96

10-
#== Ubuntu wily is 15.10, i.e. FROM ubuntu:15.10
11-
# FROM ubuntu:wily-20151208
12-
# ENV UBUNTU_FLAVOR wily
13-
14-
#== Ubuntu vivid is 15.04, i.e. FROM ubuntu:15.04
15-
# https://cloud-images.ubuntu.com/releases/15.04/
16-
# FROM ubuntu:vivid-20150611
17-
# ENV UBUNTU_FLAVOR vivid
18-
19-
#== Ubuntu trusty is 14.04, i.e. FROM ubuntu:14.04
20-
#== Could also use ubuntu:latest but for the sake I replicating an precise env...
21-
# https://cloud-images.ubuntu.com/releases/14.04/
22-
# FROM ubuntu:trusty-20150630
23-
# ENV UBUNTU_FLAVOR trusty
24-
25-
#== Ubuntu precise is 12.04, i.e. FROM ubuntu:12.04
26-
#== Could also use ubuntu:latest but for the sake I replicating an precise env...
27-
# https://cloud-images.ubuntu.com/releases/12.04/
28-
# FROM ubuntu:precise-20150612
29-
# ENV UBUNTU_FLAVOR precise
30-
317
#== Ubuntu flavors - common
328
RUN echo "deb http://archive.ubuntu.com/ubuntu ${UBUNTU_FLAVOR} main universe\n" > /etc/apt/sources.list \
33-
&& echo "deb http://archive.ubuntu.com/ubuntu ${UBUNTU_FLAVOR}-updates main universe\n" >> /etc/apt/sources.list
9+
&& echo "deb http://archive.ubuntu.com/ubuntu ${UBUNTU_FLAVOR}-updates main universe\n" >> /etc/apt/sources.list \
10+
&& echo "deb http://archive.ubuntu.com/ubuntu ${UBUNTU_FLAVOR}-security main universe\n" >> /etc/apt/sources.list
3411

35-
MAINTAINER Leo Gallucci <[email protected]>
12+
MAINTAINER Leo Gallucci <elgalu3+team-tip@gmail.com>
3613

14+
# No interactive frontend during docker build
3715
ENV DEBIAN_FRONTEND=noninteractive \
3816
DEBCONF_NONINTERACTIVE_SEEN=true
3917

@@ -172,29 +150,6 @@ RUN echo "Setting time zone to '${TZ}'" \
172150
# Regarding urandom see
173151
# http://stackoverflow.com/q/26021181/511069
174152
# https://github.com/SeleniumHQ/docker-selenium/issues/14#issuecomment-67414070
175-
# RUN apt-get -qqy update \
176-
# && apt-get -qqy install \
177-
# software-properties-common \
178-
# && echo debconf shared/accepted-oracle-license-v1-1 \
179-
# select true | debconf-set-selections \
180-
# && echo debconf shared/accepted-oracle-license-v1-1 \
181-
# seen true | debconf-set-selections \
182-
# && add-apt-repository ppa:webupd8team/java \
183-
# && apt-get -qqy update \
184-
# && apt-get -qqy install \
185-
# oracle-java8-installer \
186-
# && sed -i 's/securerandom.source=file:\/dev\/urandom/securerandom.source=file:\/dev\/.\/urandom/g' \
187-
# /usr/lib/jvm/java-8-oracle/jre/lib/security/java.security \
188-
# && sed -i 's/securerandom.source=file:\/dev\/random/securerandom.source=file:\/dev\/.\/urandom/g' \
189-
# /usr/lib/jvm/java-8-oracle/jre/lib/security/java.security \
190-
# && rm -rf /var/lib/apt/lists/*
191-
192-
#==================
193-
# Java9 - Oracle
194-
#==================
195-
# Regarding urandom see
196-
# http://stackoverflow.com/q/26021181/511069
197-
# https://github.com/SeleniumHQ/docker-selenium/issues/14#issuecomment-67414070
198153
RUN apt-get -qqy update \
199154
&& apt-get -qqy install \
200155
software-properties-common \
@@ -205,13 +160,36 @@ RUN apt-get -qqy update \
205160
&& add-apt-repository ppa:webupd8team/java \
206161
&& apt-get -qqy update \
207162
&& apt-get -qqy install \
208-
oracle-java9-installer \
163+
oracle-java8-installer \
209164
&& sed -i 's/securerandom.source=file:\/dev\/urandom/securerandom.source=file:\/dev\/.\/urandom/g' \
210-
/usr/lib/jvm/java-9-oracle/conf/security/java.security \
165+
/usr/lib/jvm/java-8-oracle/jre/lib/security/java.security \
211166
&& sed -i 's/securerandom.source=file:\/dev\/random/securerandom.source=file:\/dev\/.\/urandom/g' \
212-
/usr/lib/jvm/java-9-oracle/conf/security/java.security \
167+
/usr/lib/jvm/java-8-oracle/jre/lib/security/java.security \
213168
&& rm -rf /var/lib/apt/lists/*
214169

170+
#================
171+
# Java9 - Oracle
172+
#================
173+
# Regarding urandom see
174+
# http://stackoverflow.com/q/26021181/511069
175+
# https://github.com/SeleniumHQ/docker-selenium/issues/14#issuecomment-67414070
176+
# RUN apt-get -qqy update \
177+
# && apt-get -qqy install \
178+
# software-properties-common \
179+
# && echo debconf shared/accepted-oracle-license-v1-1 \
180+
# select true | debconf-set-selections \
181+
# && echo debconf shared/accepted-oracle-license-v1-1 \
182+
# seen true | debconf-set-selections \
183+
# && add-apt-repository ppa:webupd8team/java \
184+
# && apt-get -qqy update \
185+
# && apt-get -qqy install \
186+
# oracle-java9-installer \
187+
# && sed -i 's/securerandom.source=file:\/dev\/urandom/securerandom.source=file:\/dev\/.\/urandom/g' \
188+
# /usr/lib/jvm/java-9-oracle/conf/security/java.security \
189+
# && sed -i 's/securerandom.source=file:\/dev\/random/securerandom.source=file:\/dev\/.\/urandom/g' \
190+
# /usr/lib/jvm/java-9-oracle/conf/security/java.security \
191+
# && rm -rf /var/lib/apt/lists/*
192+
215193
#=========================
216194
# Fonts & video libraries
217195
#=========================
@@ -353,9 +331,9 @@ RUN mkdir -p ${NORMAL_USER_HOME}/tmp && cd ${NORMAL_USER_HOME}/tmp \
353331
&& mv websockify-${WEBSOCKIFY_SHA} \
354332
${NORMAL_USER_HOME}/noVNC/utils/websockify
355333

356-
#===============================
357-
# ffmpeg/libav and video codecs
358-
#===============================
334+
#======================================
335+
# ffmpeg/libav/avconv and video codecs
336+
#======================================
359337
# ffmpeg (ffmpeg): Is a better alternative to Pyvnc2swf
360338
# (use in Ubuntu >= 15) packages: ffmpeg
361339
# RUN apt-get -qqy update \
@@ -366,9 +344,9 @@ RUN mkdir -p ${NORMAL_USER_HOME}/tmp && cd ${NORMAL_USER_HOME}/tmp \
366344
# ffmpeg \
367345
# && rm -rf /var/lib/apt/lists/*
368346

369-
#===============================
370-
# ffmpeg/libav and video codecs
371-
#===============================
347+
#======================================
348+
# ffmpeg/libav/avconv and video codecs
349+
#======================================
372350
# libav-tools (avconv): Is a fork of ffmpeg
373351
# (use in Ubuntu <= 14) packages: libav-tools libx264-142
374352
RUN apt-get -qqy update \
@@ -800,7 +778,7 @@ ENV CHROME_DRIVER_FILE "chromedriver_linux${CPU_ARCH}.zip"
800778
ENV CHROME_DRIVER_BASE "chromedriver.storage.googleapis.com"
801779
# Gets latest chrome driver version. Or you can hard-code it, e.g. 2.15
802780
RUN mkdir -p ${NORMAL_USER_HOME}/tmp && cd ${NORMAL_USER_HOME}/tmp \
803-
&& CHROME_DRIVER_VERSION="2.24" \
781+
&& CHROME_DRIVER_VERSION="2.25" \
804782
&& CHROME_DRIVER_URL="https://${CHROME_DRIVER_BASE}/${CHROME_DRIVER_VERSION}/${CHROME_DRIVER_FILE}" \
805783
&& wget -nv -O chromedriver_linux${CPU_ARCH}.zip ${CHROME_DRIVER_URL} \
806784
&& cd ${SEL_HOME} \
@@ -1113,7 +1091,6 @@ ENV DEFAULT_SELENIUM_HUB_PORT="24444" \
11131091
# Run docker from inside docker
11141092
# Usage: docker run -v /var/run/docker.sock:/var/run/docker.sock
11151093
# -v $(which docker):$(which docker)
1116-
11171094
ENV FIREFOX_VERSION="${FF_VER}" \
11181095
USE_SELENIUM="2" \
11191096
CHROME_FLAVOR="stable" \
@@ -1205,6 +1182,7 @@ ENV FIREFOX_VERSION="${FF_VER}" \
12051182
VIDEO_FLUSH_SECS="0.5" \
12061183
VIDEO_CHUNK_SECS="00:05:00" \
12071184
VIDEO_CHUNKS_MAX=999 \
1185+
VIDEO_STOP_SLEEP_SECS="1" \
12081186
VIDEOS_DIR="${NORMAL_USER_HOME}/videos" \
12091187
XMANAGER="fluxbox" \
12101188
SAUCE_TUNNEL="false" \
@@ -1316,6 +1294,7 @@ WORKDIR ${NORMAL_USER_HOME}
13161294
# ENTRYPOINT ["entry.sh"]
13171295
# CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
13181296

1319-
# Using the string form `CMD "entry.sh"` causes Docker to run your process
1320-
# using bash which doesn’t handle signals properly
1297+
# IMPORTANT: Using the string form `CMD "entry.sh"` without
1298+
# brackets [] causes Docker to run your process
1299+
# And using `bash` which doesn’t handle signals properly
13211300
CMD ["entry.sh"]

TBD_DOCKER_TAG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
+ BrowserStack Local version TBD_BROWSER_STACK_VERSION
1818
+ Tested on kernel dev host: 4.4.0-45-generic x86_64
1919
+ Tested on kernel CI host: TBD_HOST_UNAME
20-
+ Built at dev host with: Docker version 1.12.2, build bb80604
20+
+ Built at dev host with: Docker version 1.12.3, build 6b644ec
2121
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD
2222
+ Built at dev host with: Docker Compose version 1.8.1, build 878cff1
2323
+ Built at CI host with: Docker Compose version TBD_DOCKER_COMPOSE_VERS, build TBD_DOCKER_COMPOSE_BUILD

browserstack/bin/start-browserstack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function shutdown {
4040
# Now wait for the tunnel to be ready
4141
timeout --foreground ${BSTACK_WAIT_TIMEOUT} wait-browserstack.sh
4242

43-
# Run function shutdown() when this process a killer signal
43+
# Run function shutdown() when this process receives a killing signal
4444
trap shutdown SIGTERM SIGINT SIGKILL
4545

4646
# tells bash to wait until child processes have exited

host-scripts/expose_ports.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ for i in "${MYAPP_PORTS[@]}"; do
4545
ssh ${BASE_SSH_CMD} -R localhost:${i}:localhost:${i} &
4646
done
4747

48-
# Run function shutdown() when this process a killer signal
48+
# Run function shutdown() when this process receives a killing signal
4949
trap shutdown SIGTERM SIGINT SIGKILL
5050

5151
# tells bash to wait until child processes have exited

saucelabs/bin/start-saucelabs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ while ! ls -l "${SAUCE_TUNNEL_READY_FILE}" >/dev/null 2>&1; do sleep 0.1; done
7676
# Now wait for the tunnel to be ready
7777
timeout --foreground ${SAUCE_WAIT_TIMEOUT} wait-saucelabs.sh
7878

79-
# Run function shutdown() when this process a killer signal
79+
# Run function shutdown() when this process receives a killing signal
8080
trap shutdown SIGTERM SIGINT SIGKILL
8181

8282
# tells bash to wait until child processes have exited

selenium-node-chrome/bin/start-selenium-node-chrome.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function trappedFn {
5959
echo "-- INFO: Trapped SIGTERM/SIGINT on Chrome NODE"
6060
shutdown
6161
}
62-
# Run function shutdown() when this process a killer signal
62+
# Run function shutdown() when this process receives a killing signal
6363
trap trappedFn SIGTERM SIGINT SIGKILL
6464

6565
# tells bash to wait until child processes have exited

selenium-node-firefox/bin/start-selenium-node-firefox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function trappedFn {
6161
echo "-- INFO: Trapped SIGTERM/SIGINT on Firefox NODE"
6262
shutdown
6363
}
64-
# Run function shutdown() when this process a killer signal
64+
# Run function shutdown() when this process receives a killing signal
6565
trap trappedFn SIGTERM SIGINT SIGKILL
6666

6767
# tells bash to wait until child processes have exited

0 commit comments

Comments
 (0)