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

Commit 45412ad

Browse files
committed
Add FLUXBOX_START_MAX_RETRIES
1 parent 3324f45 commit 45412ad

File tree

9 files changed

+47
-22
lines changed

9 files changed

+47
-22
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,40 @@ 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+
+ Add FLUXBOX_START_MAX_RETRIES
13+
+ Increase WAIT_FOREGROUND_RETRY
14+
+ Image tag details:
15+
+ Selenium 2: TBD_SELENIUM_2_VERSION (TBD_SELENIUM_2_REVISION)
16+
+ Selenium 3: 3.0.1 (1969d75)
17+
+ Chrome stable: TBD_CHROME_STABLE
18+
+ Firefox for Selenium 2: TBD_FIREFOX_FOR_SEL2
19+
+ Firefox for Selenium 3: TBD_FIREFOX_FOR_SEL3
20+
+ Geckodriver: TBD_GECKO_DRIVER
21+
+ Chromedriver: TBD_CHROME_DRIVER (TBD_CHROMEDRIVER_COMMIT)
22+
+ Java: TBD_JAVA_VENDOR Java TBD_JAVA_BUILD
23+
+ Timezone: TBD_TIME_ZONE
24+
+ FROM ubuntu:UBUNTU_FLAVOR-UBUNTU_DATE
25+
+ Python: TBD_PYTHON_VERSION
26+
+ Sauce Connect TBD_SAUCE_CONNECT_VERS, build TBD_SAUCE_CONNECT_BUILD TBD_SAUCE_CONNECT_REVISION
27+
+ BrowserStack Local version TBD_BROWSER_STACK_VERSION
28+
+ Tested on kernel dev host: 4.4.0-45-generic x86_64
29+
+ Tested on kernel CI host: TBD_HOST_UNAME
30+
+ Built at dev host with: Docker version 1.12.3, build 6b644ec
31+
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD
32+
+ Built at dev host with: Docker Compose version 1.8.1, build 878cff1
33+
+ Built at CI host with: Docker Compose version TBD_DOCKER_COMPOSE_VERS, build TBD_DOCKER_COMPOSE_BUILD
34+
+ Image size: TBD_IMAGE_SIZE
35+
+ Digest: TBD_DIGEST
36+
+ Image ID: TBD_IMAGE_ID
37+
1038
## 3.0.1b
1139
+ Date: 2016-10-28
1240
+ Upgrade Chromedriver to 2.25 (was 2.24)
1341
+ Move back from Java 9 to Java 8 to save space
1442
+ Added option -e VIDEO_STOP_SLEEP_SECS="1"
43+
+ Upgrade BrowserStack minor to 6.5 (was 6.4)
1544
+ Image tag details:
1645
+ Selenium 2: 2.53.1 (a36b8b1)
1746
+ 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.1b && git checkout ./images/grid2_console.png && git checkout ./images/grid3_console.png
10+
git checkout -b tmp-3.0.1c && 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 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
15+
git commit -m "Add FLUXBOX_START_MAX_RETRIES"
16+
git tag -d latest && git tag 3.0.1c && git push origin tmp-3.0.1c && 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.1b && git push origin --delete tmp-3.0.1b
21+
git checkout master && git pull && git branch -d tmp-3.0.1c && git push origin --delete tmp-3.0.1c
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.1b && git push origin :3.0.1b
39+
git tag -d 3.0.1c && git push origin :3.0.1c
4040
#git add ...
41-
git commit --amend && git tag 3.0.1b && git push --force origin tmp-3.0.1b && git push --tags
41+
git commit --amend && git tag 3.0.1c && git push --force origin tmp-3.0.1c && 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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ ENV FIREFOX_VERSION="${FF_VER}" \
11001100
VNC_STORE_PWD_FILE="${NORMAL_USER_HOME}/.vnc/passwd" \
11011101
BIN_UTILS="/usr/bin" \
11021102
MEM_JAVA_PERCENT=80 \
1103-
WAIT_FOREGROUND_RETRY="1s" \
1103+
WAIT_FOREGROUND_RETRY="2s" \
11041104
WAIT_VNC_FOREGROUND_RETRY="7s" \
11051105
XVFB_STARTRETRIES=0 \
11061106
XMANAGER_STARTRETRIES=0 \
@@ -1179,28 +1179,28 @@ ENV FIREFOX_VERSION="${FF_VER}" \
11791179
RC_FIREFOX="true" \
11801180
VIDEO_FILE_EXTENSION="mkv" \
11811181
VIDEO_FILE_NAME="" \
1182-
VIDEO_FLUSH_SECS="0.5" \
11831182
VIDEO_CHUNK_SECS="00:05:00" \
11841183
VIDEO_CHUNKS_MAX=999 \
1185-
VIDEO_STOP_SLEEP_SECS="1" \
1184+
VIDEO_STOP_SLEEP_SECS="2" \
11861185
VIDEOS_DIR="${NORMAL_USER_HOME}/videos" \
11871186
XMANAGER="fluxbox" \
1187+
FLUXBOX_START_MAX_RETRIES=5 \
11881188
SAUCE_TUNNEL="false" \
11891189
SAUCE_USER_NAME="" \
11901190
SAUCE_API_KEY="" \
11911191
SAUCE_TUNNEL_DOCTOR_TEST="false" \
11921192
SAUCE_TUNNEL_ID="docker-selenium" \
11931193
SAUCE_TUNNEL_READY_FILE="/tmp/sauce-connect-ready" \
11941194
SAUCE_LOCAL_SEL_PORT="${DEFAULT_SAUCE_LOCAL_SEL_PORT}" \
1195-
SAUCE_WAIT_TIMEOUT="140s" \
1196-
SAUCE_WAIT_RETRY_TIMEOUT="290s" \
1195+
SAUCE_WAIT_TIMEOUT="2m" \
1196+
SAUCE_WAIT_RETRY_TIMEOUT="3m" \
11971197
SAUCE_TUNNEL_MAX_RETRY_ATTEMPTS="1" \
11981198
BSTACK_TUNNEL="false" \
11991199
BSTACK_ACCESS_KEY="" \
12001200
BSTACK_TUNNEL_ID="docker-selenium" \
12011201
BSTACK_TUNNEL_OPTS="-skipCheck -v -forcelocal" \
1202-
BSTACK_WAIT_TIMEOUT="100s" \
1203-
BSTACK_WAIT_RETRY_TIMEOUT="220s" \
1202+
BSTACK_WAIT_TIMEOUT="2m" \
1203+
BSTACK_WAIT_RETRY_TIMEOUT="3m" \
12041204
TAIL_LOG_LINES="15" \
12051205
SHM_TRY_MOUNT_UNMOUNT="false" \
12061206
SHM_SIZE="512M" \

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# TODO: implement env vars defaults `${FOO-default}`
2+
# once docker-compose 1.9 is long stable
13
version: '2'
24

35
services:

video-rec/bin/start-video-rec.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ set -e
55

66
# Wait for this process dependencies
77
timeout --foreground ${WAIT_TIMEOUT} wait-xvfb.sh
8-
# timeout --foreground ${WAIT_TIMEOUT} wait-vnc.sh
9-
# timeout --foreground ${WAIT_TIMEOUT} wait-selenium-hub.sh
10-
# timeout --foreground ${WAIT_TIMEOUT} wait-selenium-node-chrome.sh
11-
# timeout --foreground ${WAIT_TIMEOUT} wait-selenium-node-firefox.sh
128

139
# Make it portable
1410
[ -z "${VIDEO_BASE_PATH}" ] && export \

video-rec/etc/supervisor/conf.d/video-rec.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
;The relative priority of the program in the start and shutdown ordering.
44
;Lower priorities indicate programs that start first and shut down last.
5-
priority=70
5+
priority=85
66

77
;User to run-as, note environment expansion outside of `command` is only
88
;supported in supervisor >= 3.2

xmanager/bin/start-xmanager.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ elif [ "${XMANAGER}" = "fluxbox" ]; then
5454
echo "-- WARN: wait-xmanager.sh failed! for DISPLAY=${DISPLAY}"
5555
killall fluxbox || true
5656
fi
57-
if [ ${i} -gt 3 ]; then
57+
if [ ${i} -gt ${FLUXBOX_START_MAX_RETRIES} ]; then
5858
echoerr "-- ERROR: Failed to start Fluxbox at $0 after many retries."
5959
break
6060
fi

xterm/bin/start-xterm.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ timeout --foreground ${BSTACK_WAIT_RETRY_TIMEOUT} wait-browserstack.sh || \
5959

6060
if [ "${VIDEO}" = "true" ]; then
6161
start-video &
62-
# timeout --foreground ${WAIT_TIMEOUT} wait-video-rec.sh || \
63-
# shutdown "Failed while waiting for video recording to start!"
6462
fi
6563

6664
# TODO: Re enable shutdown at some point. But fails when

xterm/etc/supervisor/conf.d/xterm.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
;The relative priority of the program in the start and shutdown ordering.
44
;Lower priorities indicate programs that start first and shut down last.
5-
priority=80
5+
priority=99
66

77
;User to run-as, note environment expansion outside of `command` is only
88
;supported in supervisor >= 3.2

0 commit comments

Comments
 (0)