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

Commit d494262

Browse files
committed
Re-enable VIDEO_STOP_SLEEP_SECS=1 for 1 sec video fix
1 parent cde0582 commit d494262

File tree

6 files changed

+32
-5
lines changed

6 files changed

+32
-5
lines changed

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+
## TBD_DOCKER_TAG
11+
+ Date: TBD_DATE
12+
+ Re-enable VIDEO_STOP_SLEEP_SECS="1" for 1 sec video fix
13+
+ Image tag details:
14+
+ Selenium 2: TBD_SELENIUM_2_VERSION (TBD_SELENIUM_2_REVISION)
15+
+ Selenium 3: 3.1.0 (86a5d70)
16+
+ Chrome stable: TBD_CHROME_STABLE
17+
+ Firefox for Selenium 2: TBD_FIREFOX_FOR_SEL2
18+
+ Firefox for Selenium 3: TBD_FIREFOX_FOR_SEL3
19+
+ Geckodriver: TBD_GECKO_DRIVER
20+
+ Chromedriver: TBD_CHROME_DRIVER (TBD_CHROMEDRIVER_COMMIT)
21+
+ Java: TBD_JAVA_VENDOR Java TBD_JAVA_BUILD
22+
+ Timezone: TBD_TIME_ZONE
23+
+ FROM ubuntu:UBUNTU_FLAVOR-UBUNTU_DATE
24+
+ Python: TBD_PYTHON_VERSION
25+
+ Tested on kernel dev host: 4.4.0-64-generic x86_64
26+
+ Tested on kernel CI host: TBD_HOST_UNAME
27+
+ Built at dev host with: Docker version 1.13.1, build 092cba3
28+
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD
29+
+ Built at dev host with: Docker Compose version 1.11.2, build dfed245
30+
+ Built at CI host with: Docker Compose version TBD_DOCKER_COMPOSE_VERS, build TBD_DOCKER_COMPOSE_BUILD
31+
+ Image size: TBD_IMAGE_SIZE
32+
+ Digest: TBD_DIGEST
33+
+ Image ID: TBD_IMAGE_ID
34+
1035
## 3.1.0-p0
1136
+ Date: 2017-02-24
1237
+ Upgrade Selenium minor from 3.0.1 to 3.1.0

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 "Upgrade Selenium minor from 3.0.1 to 3.1.0"
15+
git commit -m "Re-enable VIDEO_STOP_SLEEP_SECS="1" for 1 sec video fix"
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ ENV FIREFOX_VERSION="${FF_VER}" \
864864
VIDEO_FILE_NAME="" \
865865
VIDEO_CHUNK_SECS="00:05:00" \
866866
VIDEO_CHUNKS_MAX=999 \
867-
VIDEO_STOP_SLEEP_SECS="2" \
867+
VIDEO_STOP_SLEEP_SECS="1" \
868868
WAIT_TIME_OUT_VIDEO_STOP="20s" \
869869
VIDEOS_DIR="/home/seluser/videos" \
870870
XMANAGER="fluxbox" \

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.0-p0
1+
3.1.0-p1

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ VID_TOOL_PID=$!
2222
# sudo killall -SIGINT avconv
2323
function shutdown {
2424
echo "Trapped SIGTERM or SIGINT so shutting down ffmpeg gracefully..."
25+
sleep ${VIDEO_STOP_SLEEP_SECS}
2526
kill -SIGTERM ${VID_TOOL_PID} || true
26-
# sleep ${VIDEO_STOP_SLEEP_SECS}
27+
sleep ${VIDEO_STOP_SLEEP_SECS}
2728
wait ${VID_TOOL_PID}
2829
fix_videos.sh
2930
echo "ffmpeg shutdown complete."

video-rec/bin/stop-video

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ fi
2525
# Stop video recording
2626
#----------------------
2727
export VIDEO=false
28+
sleep ${VIDEO_STOP_SLEEP_SECS}
2829
supervisorctl -c /etc/supervisor/supervisord.conf stop video-rec
29-
# sleep ${VIDEO_STOP_SLEEP_SECS}
30+
sleep ${VIDEO_STOP_SLEEP_SECS}
3031

3132
# Avoid waiting forever using the `timeout` command
3233
if timeout --foreground ${WAIT_TIME_OUT_VIDEO_STOP} \

0 commit comments

Comments
 (0)