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

Commit 025cb37

Browse files
committed
Upgrade Chrome major from 51 to 52.0.2743.82
1 parent 0be1cee commit 025cb37

File tree

9 files changed

+69
-49
lines changed

9 files changed

+69
-49
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ tmp/
22
tmp_make/
33
*_image/
44
binaries/*.deb
5+
binaries/*.md5
6+
binaries/*.sha
57
READMEBS.md
68
READMEZala.sh
79
.python-version

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,30 @@ 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 Chrome major from 51 to 52.0.2743.82
13+
+ Image tag details:
14+
+ Selenium: vTBD_SELENIUM_VERSION (TBD_SELENIUM_REVISION)
15+
+ Chrome stable: TBD_CHROME_STABLE
16+
+ Firefox stable: TBD_FIREFOX_STABLE
17+
+ Chromedriver: TBD_CHROME_DRIVER (TBD_CHROMEDRIVER_COMMIT)
18+
+ Java: TBD_JAVA_VENDOR Java TBD_JAVA_BUILD
19+
+ Timezone: TBD_TIME_ZONE
20+
+ FROM ubuntu:UBUNTU_FLAVOR-UBUNTU_DATE
21+
+ Python: TBD_PYTHON_VERSION
22+
+ Sauce Connect TBD_SAUCE_CONNECT_VERS, build TBD_SAUCE_CONNECT_BUILD TBD_SAUCE_CONNECT_REVISION
23+
+ BrowserStack Local version TBD_BROWSER_STACK_VERSION
24+
+ Tested on kernel dev host: 4.4.0-32-generic x86_64
25+
+ Tested on kernel CI host: TBD_HOST_UNAME
26+
+ Built at dev host with: Docker version 1.12.0-rc4, build e4a0dbc
27+
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD
28+
+ Built at dev host with: Docker Compose version 1.8.0-rc2, build c72c966
29+
+ Built at CI host with: Docker Compose version TBD_DOCKER_COMPOSE_VERS, build TBD_DOCKER_COMPOSE_BUILD
30+
+ Image size: TBD_IMAGE_SIZE
31+
+ Digest: TBD_DIGEST
32+
+ Image ID: TBD_IMAGE_ID
33+
1034
## 2.53.1p
1135
+ Date: 2016-07-19
1236
+ Upgrade Ubuntu xenial to 20160713

CONTRIBUTING.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ For pull requests or local commits:
88
open ./images/grid_console.png #to verify the versions are correct
99
git checkout ./images/grid_console.png && open ./videos/chrome/*.mkv
1010
travis lint #if you changed .travis.yml
11-
git checkout -b tmp-2.53.1p #name your branch according to your changes
11+
git checkout -b tmp-2.53.1q #name your branch according to your changes
1212
#git add ... git commit ... git push ... open pull request
1313

1414
For repository owners only:
1515

16-
git commit -m "Start xterm with a random geometry to differentiate nodes"
16+
git commit -m "Upgrade Chrome major from 51 to 52.0.2743.82"
1717
git tag -d latest #tag latest will be updated from TravisCI
18-
git tag 2.53.1p && git push origin tmp-2.53.1p && git push --tags
18+
git tag 2.53.1q && git push origin tmp-2.53.1q && git push --tags
1919

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

23-
git checkout master && git pull && git branch -d tmp-2.53.1p && git push origin --delete tmp-2.53.1p
23+
git checkout master && git pull && git branch -d tmp-2.53.1q && git push origin --delete tmp-2.53.1q
2424

2525
-- Re-add TBD_* section in CHANGELOG.md starting with TBD_DOCKER_TAG
2626
-- If Chrome version changed upload:
@@ -30,15 +30,17 @@ For repository owners only:
3030
### Chrome artifact
3131
Keep certain bins if chrome version changed for example:
3232

33-
VER="51.0.2704.106"
34-
wget -nv --show-progress -O binaries/google-chrome-stable_${VER}_amd64.deb "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
33+
VER="52.0.2743.82"
34+
cd binaries && NAME="google-chrome-stable_${VER}_amd64"
35+
wget -nv --show-progress -O ${NAME}.deb "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
36+
md5sum ${NAME}.deb > ${NAME}.md5 && shasum ${NAME}.deb > ${NAME}.sha
3537

3638
## Retry
3739
Failed in Travis? retry
3840

39-
git tag -d 2.53.1p && git push origin :2.53.1p
41+
git tag -d 2.53.1q && git push origin :2.53.1q
4042
#git add ...
41-
git commit --amend && git tag 2.53.1p && git push --force origin tmp-2.53.1p && git push --tags
43+
git commit --amend && git tag 2.53.1q && git push --force origin tmp-2.53.1q && git push --tags
4244

4345
## Docker push from Travis CI
4446
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: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,6 @@ RUN groupadd -g ${NORMAL_USER_GID} ${NORMAL_GROUP} \
251251
&& echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers
252252
ENV NORMAL_USER_HOME /home/${NORMAL_USER}
253253

254-
#==============
255-
# Back to sudo
256-
#==============
257-
USER root
258-
259254
#=====================================
260255
# Google Chrome - Latest through apt
261256
#=====================================
@@ -775,7 +770,7 @@ RUN mkdir -p ${NORMAL_USER_HOME}/tmp && cd ${NORMAL_USER_HOME}/tmp \
775770
# TODO: Use Google fingerprint to verify downloads
776771
# https://www.google.de/linuxrepositories/
777772
# Also fix .deb file names with correct version
778-
RUN latest_chrome_version_trigger="51.0.2704.106" \
773+
RUN latest_chrome_version_trigger="52.0.2743.82" \
779774
&& mkdir -p ${NORMAL_USER_HOME}/chrome-deb \
780775
&& export CHROME_URL="https://dl.google.com/linux/direct" \
781776
&& wget -nv -O \

Makefile

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ see: check_vncviewer
140140

141141
# Shortcut to VNC into Firefox
142142
seeff:
143-
$(MAKE) see browser=firefox
143+
@$(MAKE) -s see browser=firefox
144144

145145
# Shortcut to VNC into Chrome
146146
seech:
147-
$(MAKE) see browser=chrome
147+
@$(MAKE) -s see browser=chrome
148148

149149
env:
150150
env
@@ -164,8 +164,8 @@ cleanup:
164164
# like cleanup but verbose plus graceful stop-video
165165
down:
166166
@if [ "${VIDEO}" = "true" ]; then \
167-
$(MAKE) stop_videos_chrome ; \
168-
$(MAKE) stop_videos_firefox ; \
167+
$(MAKE) -s stop_videos_chrome ; \
168+
$(MAKE) -s stop_videos_firefox ; \
169169
fi
170170
docker-compose -f ${COMPOSE_FILE} -p ${COMPOSE_PROJ_NAME} down \
171171
--remove-orphans
@@ -177,19 +177,19 @@ stop_videos:
177177
done
178178

179179
stop_videos_chrome:
180-
@$(MAKE) stop_videos browser=chrome tot_nodes=${chrome}
180+
@$(MAKE) -s stop_videos browser=chrome tot_nodes=${chrome}
181181

182182
stop_videos_firefox:
183-
@$(MAKE) stop_videos browser=firefox tot_nodes=${firefox}
183+
@$(MAKE) -s stop_videos browser=firefox tot_nodes=${firefox}
184184

185185
scale:
186186
docker-compose -f ${COMPOSE_FILE} -p ${COMPOSE_PROJ_NAME} scale \
187187
${APP_NAME}=1 hub=1 chrome=${chrome} firefox=${firefox}
188-
$(MAKE) wait chrome=${chrome} firefox=${firefox}
188+
@$(MAKE) -s wait chrome=${chrome} firefox=${firefox}
189189

190190
compose: basic_reqs cleanup
191191
docker-compose -f ${COMPOSE_FILE} -p ${COMPOSE_PROJ_NAME} up -d
192-
$(MAKE) scale chrome=${chrome} firefox=${firefox}
192+
@$(MAKE) -s scale chrome=${chrome} firefox=${firefox}
193193

194194
wait:
195195
./mk/wait.sh
@@ -211,34 +211,34 @@ gather_videos:
211211
ls -la ./videos/
212212

213213
gather_videos_chrome:
214-
$(MAKE) gather_videos browser=chrome tot_nodes=${chrome}
214+
@$(MAKE) -s gather_videos browser=chrome tot_nodes=${chrome}
215215

216216
gather_videos_firefox:
217-
$(MAKE) gather_videos browser=firefox tot_nodes=${firefox}
217+
@$(MAKE) -s gather_videos browser=firefox tot_nodes=${firefox}
218218

219219
# Gather video artifacts
220220
videos: gather_videos_chrome gather_videos_firefox
221221

222222
# VNC open all. As of now only 4 are supported
223223
seeall: check_vncviewer
224-
$(MAKE) see browser=chrome node=1
224+
@$(MAKE) -s see browser=chrome node=1
225225
@sleep 0.3
226-
$(MAKE) see browser=firefox node=1
226+
@$(MAKE) -s see browser=firefox node=1
227227
@sleep 0.4
228-
$(MAKE) see browser=chrome node=2
228+
@$(MAKE) -s see browser=chrome node=2
229229
@sleep 0.5
230-
$(MAKE) see browser=firefox node=2
230+
@$(MAKE) -s see browser=firefox node=2
231231

232232
# Move them all. As of now only 4 are supported
233233
dock: check_wmctrl
234-
@sleep 0.5 #TODO Make active wait: http://stackoverflow.com/a/19441380/511069
235-
$(MAKE) move browser=chrome node=1
236-
@sleep 0.7 #TODO Make active wait
237-
$(MAKE) move browser=firefox node=1
238-
@sleep 0.9 #TODO Make active wait
239-
$(MAKE) move browser=chrome node=2
240-
@sleep 1.1 #TODO Make active wait
241-
$(MAKE) move browser=firefox node=2
234+
@sleep 0.2 #TODO Make active wait: http://stackoverflow.com/a/19441380/511069
235+
@$(MAKE) -s move browser=chrome node=1
236+
@sleep 0.2 #TODO Make active wait
237+
@$(MAKE) -s move browser=firefox node=1
238+
@sleep 0.2 #TODO Make active wait
239+
@$(MAKE) -s move browser=chrome node=2
240+
@sleep 0.2 #TODO Make active wait
241+
@$(MAKE) -s move browser=firefox node=2
242242

243243
# Run self tests
244244
test:

TBD_DOCKER_TAG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
+ Python: TBD_PYTHON_VERSION
1313
+ Sauce Connect TBD_SAUCE_CONNECT_VERS, build TBD_SAUCE_CONNECT_BUILD TBD_SAUCE_CONNECT_REVISION
1414
+ BrowserStack Local version TBD_BROWSER_STACK_VERSION
15-
+ Tested on kernel dev host: 4.4.0-31-generic x86_64
15+
+ Tested on kernel dev host: 4.4.0-32-generic x86_64
1616
+ Tested on kernel CI host: TBD_HOST_UNAME
1717
+ Built at dev host with: Docker version 1.12.0-rc4, build e4a0dbc
1818
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD

bin/entry.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ stop 2>&1 >/dev/null || true
66
rm -f ${LOGS_DIR}/*
77
rm -f ${RUN_DIR}/*
88

9-
# echo "-- INFO: Available Firefox Versions: ${FIREFOX_VERSIONS}"
10-
echo "-- INFO: Available Firefox Versions: ${FIREFOX_VERSION}"
9+
echo "-- INFO: Available Google Chrome Version: $(chrome_stable_version)"
10+
echo "-- INFO: Available Firefox...... Version: ${FIREFOX_VERSION}"
1111

1212
#---------------------
1313
# Fix/extend ENV vars
@@ -29,9 +29,6 @@ export CONTAINER_IP=$(ip addr show dev ${ETHERNET_DEVICE_NAME} | grep "inet " |
2929
export COMMON_CAPS="maxInstances=${MAX_INSTANCES},platform=LINUX,acceptSslCerts=true"
3030
export CHROME_PATH="/usr/bin/google-chrome-${CHROME_FLAVOR}"
3131
export CHROME_VERSION=$(${CHROME_PATH} --version 2>&1 | grep "Google Chrome" | grep -iEo "[0-9.]{2,20}.*")
32-
# We may need uid & gid from host machine
33-
export HOST_GID=$(stat -c "%g" ${VIDEOS_DIR})
34-
export HOST_UID=$(stat -c "%u" ${VIDEOS_DIR})
3532
# Video
3633
export FFMPEG_FRAME_SIZE="${SCREEN_WIDTH}x${SCREEN_HEIGHT}"
3734

@@ -346,7 +343,7 @@ fi
346343
#------------------
347344
# Fix running user
348345
#------------------
349-
RUN_PREFIX="sudo -E HOME=/home/$NORMAL_USER -u $NORMAL_USER"
346+
RUN_PREFIX="sudo --preserve-env HOME=/home/$NORMAL_USER -u $NORMAL_USER"
350347
WHOAMI=$(whoami)
351348
WHOAMI_EXIT_CODE=$?
352349
echo "-- INFO: Container USER var is: '$USER', \$(whoami) returns '$WHOAMI', UID is '$UID'"
@@ -391,19 +388,19 @@ if [ $WHOAMI_EXIT_CODE != 0 ]; then
391388
echo "-- INFO: Will try to fix uid before continuing"
392389
# TODO: fix it ...
393390
echo "-- now will try to use NORMAL_USER: '$NORMAL_USER' to continue"
394-
exec ${RUN_PREFIX} run-supervisord.sh --nodaemon
391+
exec ${RUN_PREFIX} run-supervisord.sh
395392
else
396393
echo "-- WARN: You seem to be running docker -u {{some-non-existing-user-in-container}}"
397394
echo "-- will try to use NORMAL_USER: '$NORMAL_USER' instead."
398-
exec ${RUN_PREFIX} run-supervisord.sh --nodaemon
395+
exec ${RUN_PREFIX} run-supervisord.sh
399396
fi
400397
elif [ "$WHOAMI" = "root" ]; then
401398
echo "-- WARN: Container running user is 'root' so switching to less privileged one"
402399
echo "-- will use NORMAL_USER: '$NORMAL_USER' instead."
403-
exec ${RUN_PREFIX} run-supervisord.sh --nodaemon
400+
exec ${RUN_PREFIX} run-supervisord.sh
404401
else
405402
echo "-- INFO: Will use \$USER '$USER' and \$(whoami) is '$WHOAMI'"
406-
exec run-supervisord.sh --nodaemon
403+
exec run-supervisord.sh
407404
fi
408405

409406
# Note: sudo -i creates a login shell for someUser, which implies the following:

capabilities.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"caps": [
33
{
44
"BROWSER_NAME": "chrome",
5-
"VERSION": "51.0.2704.106",
5+
"VERSION": "52.0.2743.82",
66
"PLATFORM": "LINUX"
77
},
88
{

supervisor/bin/run-supervisord.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ trap shutdown SIGHUP SIGTERM SIGINT
4747

4848
echo -n "supervisord --version=" && supervisord --version
4949

50-
supervisord -c /etc/supervisor/supervisord.conf --user ${USER} &
50+
supervisord -c /etc/supervisor/supervisord.conf --user ${USER} --nodaemon &
5151
SUPERVISOR_PID=$!
5252

5353
# tells bash to wait until child processes have exited

0 commit comments

Comments
 (0)