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

Commit b77c4f9

Browse files
committed
2.53.1p: Update image id, digest & png [ci skip]
1 parent dd3e464 commit b77c4f9

File tree

10 files changed

+79
-20
lines changed

10 files changed

+79
-20
lines changed

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ export proj ?= grid
4848
export PROJ_NAME ?= ${proj}
4949
export COMPOSE_PROJ_NAME ?= ${PROJ_NAME}
5050
# VNC viewer relative size, vncviewer -Scaling
51-
export SIZE ?= 40%
51+
export SIZE ?= 50%
5252

5353
# Enable video recording
5454
export VIDEO ?= true
5555

5656
# App name is the service name for the web app under test
57+
# export APP ?= zalando_uk
5758
export APP ?= mock
5859
export APP_NAME ?= ${APP}
5960

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,31 @@ 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+
## 2.53.1p
11+
+ Date: 2016-07-19
12+
+ Upgrade Ubuntu xenial to 20160713
13+
+ Chore: Start xterm with a random geometry to differentiate nodes
14+
+ Image tag details:
15+
+ Selenium: v2.53.1 (a36b8b1)
16+
+ Chrome stable: 51.0.2704.106
17+
+ Firefox stable: 47.0.1
18+
+ Chromedriver: 2.22.397932 (282ed7cf89cf0053b6542e0d0f039d4123bbb6ad)
19+
+ Java: Oracle Java 9-ea+126
20+
+ Timezone: Europe/Berlin
21+
+ FROM ubuntu:xenial-20160713
22+
+ Python: 2.7.12
23+
+ Sauce Connect 4.3.16, build 2396 39e807b
24+
+ BrowserStack Local version 5.7
25+
+ Tested on kernel dev host: 4.4.0-31-generic x86_64
26+
+ Tested on kernel CI host: 3.19.0-33-generic x86_64
27+
+ Built at dev host with: Docker version 1.12.0-rc4, build e4a0dbc
28+
+ Built at CI host with: Docker version 1.11.2, build b9f10c9
29+
+ Built at dev host with: Docker Compose version 1.8.0-rc2, build c72c966
30+
+ Built at CI host with: Docker Compose version 1.7.1, build 0a9ab35
31+
+ Image size: 2.548 GB
32+
+ Digest: sha256:d6d2528cf56235ad8326f905e1b8c7aa1359c70a714a2b79c44e2a33fd7a37c4
33+
+ Image ID: sha256:52763c9c89237976c279e365d4e2613b5de13029de017c969efc8b62dad84d5a
34+
1035
## 2.53.1n
1136
+ Date: 2016-07-18
1237
+ Fix OSX seq: illegal option -- -

CONTRIBUTING.md

Lines changed: 6 additions & 6 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.1n #name your branch according to your changes
11+
git checkout -b tmp-2.53.1p #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 "Fix OSX seq: illegal option -- -"
16+
git commit -m "Start xterm with a random geometry to differentiate nodes"
1717
git tag -d latest #tag latest will be updated from TravisCI
18-
git tag 2.53.1n && git push origin tmp-2.53.1n && git push --tags
18+
git tag 2.53.1p && git push origin tmp-2.53.1p && 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.1n && git push origin --delete tmp-2.53.1n
23+
git checkout master && git pull && git branch -d tmp-2.53.1p && git push origin --delete tmp-2.53.1p
2424

2525
-- Re-add TBD_* section in CHANGELOG.md starting with TBD_DOCKER_TAG
2626
-- 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 2.53.1n && git push origin :2.53.1n
39+
git tag -d 2.53.1p && git push origin :2.53.1p
4040
#git add ...
41-
git commit --amend && git tag 2.53.1n && git push --force origin tmp-2.53.1n && git push --tags
41+
git commit --amend && git tag 2.53.1p && git push --force origin tmp-2.53.1p && 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: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
###################################################
44
#== Ubuntu xenial is 16.04, i.e. FROM ubuntu:16.04
55
# search for more at https://registry.hub.docker.com/_/ubuntu/tags/manage/
6-
FROM ubuntu:xenial-20160706
6+
FROM ubuntu:xenial-20160713
77
ENV UBUNTU_FLAVOR="xenial" \
8-
UBUNTU_DATE="20160706"
8+
UBUNTU_DATE="20160713"
99

1010
#== Ubuntu wily is 15.10, i.e. FROM ubuntu:15.10
1111
# FROM ubuntu:wily-20151208
@@ -38,10 +38,9 @@ ENV DEBIAN_FRONTEND=noninteractive \
3838
DEBCONF_NONINTERACTIVE_SEEN=true
3939

4040
# http://askubuntu.com/a/235911/134645
41-
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com \
42-
3B4FE6ACC0B21F32 \
43-
40976EAF437D05B5 \
44-
2EA8F35793D8809A \
41+
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2EA8F35793D8809A \
42+
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 \
43+
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 \
4544
&& apt-key update -qqy
4645

4746
#========================

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ pull:
9898
@# Only pull for end users, not CI servers or repo owners
9999
@if [ "${TESTING_MAKE}" != "true" ]; then \
100100
echo "Pulling latest version of docker-selenium..." ; \
101-
docker pull elgalu/selenium:${DOCKER_SELENIUM_TAG} \
102-
> mk/docker-pull.log ; \
103-
tail -n 4 mk/docker-pull.log ; \
101+
docker pull elgalu/selenium:${DOCKER_SELENIUM_TAG} ; \
104102
fi
105103

106104
warn_vncviewer:
@@ -224,16 +222,22 @@ videos: gather_videos_chrome gather_videos_firefox
224222
# VNC open all. As of now only 4 are supported
225223
seeall: check_vncviewer
226224
$(MAKE) see browser=chrome node=1
225+
@sleep 0.3
227226
$(MAKE) see browser=firefox node=1
227+
@sleep 0.4
228228
$(MAKE) see browser=chrome node=2
229+
@sleep 0.5
229230
$(MAKE) see browser=firefox node=2
230231

231232
# Move them all. As of now only 4 are supported
232233
dock: check_wmctrl
233-
sleep 1 #TODO Make active wait: http://stackoverflow.com/a/19441380/511069
234+
@sleep 0.5 #TODO Make active wait: http://stackoverflow.com/a/19441380/511069
234235
$(MAKE) move browser=chrome node=1
236+
@sleep 0.7 #TODO Make active wait
235237
$(MAKE) move browser=firefox node=1
238+
@sleep 0.9 #TODO Make active wait
236239
$(MAKE) move browser=chrome node=2
240+
@sleep 1.1 #TODO Make active wait
237241
$(MAKE) move browser=firefox node=2
238242

239243
# Run self tests

docker-compose.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ services:
2222
image: elgalu/selenium
2323
network_mode: "service:hub"
2424
shm_size: 1g
25+
mem_limit: 2g
26+
memswap_limit: 4g
27+
# 90000 means 90%
28+
# cpu_quota: 90000
2529
environment:
2630
- SELENIUM_HUB_PORT
2731
- VNC_FROM_PORT
2832
- VNC_TO_PORT
33+
- SCREEN_WIDTH=1300
34+
- SCREEN_HEIGHT=999
2935
- PICK_ALL_RANDMON_PORTS=true
3036
- VIDEO
3137
- GRID=false
@@ -35,10 +41,16 @@ services:
3541
firefox:
3642
image: elgalu/selenium
3743
network_mode: "service:hub"
44+
mem_limit: 2g
45+
memswap_limit: 4g
46+
# 90000 means 90%
47+
# cpu_quota: 90000
3848
environment:
3949
- SELENIUM_HUB_PORT
4050
- VNC_FROM_PORT
4151
- VNC_TO_PORT
52+
- SCREEN_WIDTH=1300
53+
- SCREEN_HEIGHT=999
4254
- PICK_ALL_RANDMON_PORTS=true
4355
- VIDEO
4456
- GRID=false
@@ -52,6 +64,13 @@ services:
5264
environment:
5365
- MOCK_SERVER_PORT=8080
5466

67+
# zalando_uk:
68+
# image: elgalu/uk_mock
69+
# network_mode: "service:hub"
70+
# tty: true
71+
# environment:
72+
# - MOCK_SERVER_PORT=8080
73+
5574
#-- Notes --#
5675
# shm_size: 1g
5776
# Fixes small 64 mb /dev/shm inside docker containers

docs/make.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Gather the videos artifacts easily
4343
### Cleanup
4444
When done, is convenient to shutdown all the containers.
4545

46-
make cleanup
46+
make down
4747

4848
## Update
4949
Every now and then you will want to upgrade the script files [.env](../.env), [docker-compose.yml][], [mk/](../mk) and so on.

test/before_install_setup

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,11 @@ else
2222
fi
2323
docker-compose --version || (echo "FATAL: No docker compose installed" && exit 1)
2424

25+
# Git latest stable to avoid hang on `git merge travis-${TRAVIS_TAG}`
26+
# sudo add-apt-repository -y ppa:git-core/ppa
27+
# sudo apt-get -qyy update
28+
# sudo apt-get -qyy install git
29+
# git --version #=> 2.9.2
30+
2531
# Notes:
2632
# sudo -E or --preserve-env will preserve travis env vars like DOCKER_COMPOSE_VERSION

test/script_push

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ git_co_fetch_merge_stash() {
5151
git stash save || true
5252
git checkout -t github/master -b github/master
5353
echo "Will git merge into master"
54-
git merge travis-${TRAVIS_TAG}
54+
if ! timeout --foreground "30s" git merge travis-${TRAVIS_TAG}; then
55+
echo "WARN: Timed out on git merge!" 1>&2
56+
fi
5557
git stash pop || true
5658
}
5759

xterm/bin/start-xterm.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ else
8585
fi
8686

8787
# Start a GUI xTerm to help debugging when VNC into the container
88+
# with a random geometry so we can differentiate multiple nodes
89+
GEOM1=$(python -c 'import random; print(random.randint(80,140))')
90+
GEOM2=$(python -c 'import random; print(random.randint(30,50))')
8891
x-terminal-emulator -ls \
89-
-geometry 120x40+10+10 \
92+
-geometry ${GEOM1}x${GEOM2}+10+10 \
9093
-title "x-terminal-emulator" \
9194
&
9295

0 commit comments

Comments
 (0)