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

Commit c68698d

Browse files
committed
Add /var/log/cont/chrome_browser.log
1 parent 04cdc6c commit c68698d

File tree

9 files changed

+66
-7
lines changed

9 files changed

+66
-7
lines changed

CHANGELOG.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,33 @@ 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+
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/TBD_PREV_COMM...TBD_CUR_COMM (TBD_DATE)
12+
+ Add /var/log/cont/chrome_browser.log for Chrome driver logs via transfer-logs.sh
13+
+ Fix /var/log/cont/firefox_browser.log due to https://goo.gl/5NgU2t
14+
+ Breaking change: Rename chromedriver.log into chrome_driver.log
15+
+ **Image tag details:**
16+
+ Selenium 2: TBD_SELENIUM_2_VERSION (TBD_SELENIUM_2_REVISION)
17+
+ Selenium 3: TBD_SELENIUM_3_VERSION (TBD_SELENIUM_3_REVISION)
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+
+ Tested on kernel dev host: 4.4.0-72-generic x86_64
28+
+ Tested on kernel CI host: TBD_HOST_UNAME
29+
+ Built at dev host with: Docker version 17.03.1-ce, build c6d412e
30+
+ Built at CI host with: Docker version TBD_DOCKER_VERS, build TBD_DOCKER_BUILD
31+
+ Built at dev host with: Docker Compose version 1.11.2, build dfed245
32+
+ Built at CI host with: Docker Compose version TBD_DOCKER_COMPOSE_VERS, build TBD_DOCKER_COMPOSE_BUILD
33+
+ Image size: TBD_IMAGE_SIZE
34+
+ Digest: TBD_DIGEST
35+
+ Image ID: TBD_IMAGE_ID
36+
1037
## 3.3.1-p1
1138
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/236b861177bd2917d86...273a2e5e236f854eaace315 (2017-04-11)
1239
+ Upgrade Chromedriver minor from 2.28 to 2.29
@@ -1048,7 +1075,7 @@ Note image ids also change after scm-source.json has being updated which trigger
10481075

10491076
## 2.53.1y
10501077
+ **Changes:** (2016-09-27)
1051-
+ Set chromedriver --log-path='/var/log/cont/chromedriver.log'
1078+
+ Set chromedriver --log-path='/var/log/cont/chromedriver.log' **RENAMED** to chrome_driver.log
10521079
+ Add geckodriver for Firefox >= 48 (future releases)
10531080
+ Upgrade Ubuntu xenial to 20160923
10541081
+ Perhaps fixed DBUS mistery. See `entry.sh`

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 Chromedriver minor from 2.28 to 2.29"
15+
git commit -m "Add /var/log/cont/chrome_browser.log"
1616
git tag -d latest; git tag -d `cat VERSION`; git push origin :`cat VERSION`; git tag `cat VERSION` && git push --force origin tmp-`cat VERSION` && git push --tags
1717

1818
-- Wait for Travis to pass OK

VERSION

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

bin/entry.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ export VNC_TRYOUT_ERR_LOG="${LOGS_DIR}/vnc-tryouts-stderr"
7575
export VNC_TRYOUT_OUT_LOG="${LOGS_DIR}/vnc-tryouts-stdout"
7676
touch ${DOCKER_SELENIUM_STATUS}
7777

78+
# https://github.com/SeleniumHQ/selenium/issues/2078#issuecomment-218320864
79+
# https://github.com/SeleniumHQ/selenium/blob/master/py/selenium/webdriver/firefox/firefox_binary.py#L27
80+
echo "webdriver.log.file has been discontinued. Please send us a PR if you know how to set the path for the Firefox browser logs" \
81+
> "${LOGS_DIR}/firefox_browser.log"
82+
7883
# We recalculate screen dimensions because docker run supports changing them
7984
export SCREEN_DEPTH="${SCREEN_MAIN_DEPTH}+${SCREEN_SUB_DEPTH}"
8085
export GEOMETRY="${SCREEN_WIDTH}""x""${SCREEN_HEIGHT}""x""${SCREEN_DEPTH}"

misc/misc.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,3 +463,24 @@ RUN wget -nv -O unTrunc.zip \
463463
-L/usr/local/lib -lavformat \
464464
-lavcodec -lavutil \
465465
&& mv untrunc /usr/bin
466+
467+
### Log files
468+
Everything I tried before coming up with
469+
470+
> webdriver.log.file has been discontinued. Please send us a PR if you know how to set the path for the Firefox browser logs
471+
472+
Tried:
473+
474+
```sh
475+
FIREFOX_BROWSER_CAPS="${FIREFOX_BROWSER_CAPS},log_path=${LOGS_DIR}/firefox_browser.log"
476+
-Dwebdriver.log.path="${LOGS_DIR}/firefox_browser.log" \
477+
-Dwebdriver.log.file="${LOGS_DIR}/firefox_browser.log" \
478+
-Dwebdriver.gecko.log_path="${LOGS_DIR}/firefox_browser.log" \
479+
export BROWSER_LOGFILE="${LOGS_DIR}/firefox_browser.log"
480+
```
481+
482+
TODO: Figure out how to set `log_path`:
483+
https://github.com/mozilla/geckodriver/issues/362#issuecomment-273948335
484+
https://github.com/SeleniumHQ/selenium/commit/40a5d80e995071fb85f86e70e15e4b96cc692d11
485+
486+
Outside of the running tests.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ CHROME_BROWSER_CAPS="${CHROME_BROWSER_CAPS},chrome_binary=${CHROME_PATH}"
4040

4141
java \
4242
-Dwebdriver.chrome.driver="/home/seluser/chromedriver" \
43-
-Dwebdriver.chrome.logfile="${LOGS_DIR}/chromedriver.log" \
43+
-Dwebdriver.chrome.logfile="${LOGS_DIR}/chrome_driver.log" \
4444
-Dwebdriver.chrome.verboseLogging="${CHROME_VERBOSELOGGING}" \
4545
${JAVA_OPTS} \
4646
-jar ${SELENIUM_JAR_PATH} \
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
# Try to retrieve Browser console logs
4+
cp /tmp/.*/chrome_debug.log "/var/log/cont/chrome_browser.log"

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ FIREFOX_BROWSER_CAPS="browserName=firefox,${COMMON_CAPS}"
4343
FIREFOX_BROWSER_CAPS="${FIREFOX_BROWSER_CAPS},version=${FIREFOX_VERSION}"
4444
FIREFOX_BROWSER_CAPS="${FIREFOX_BROWSER_CAPS},firefox_binary=${FIREFOX_DEST_BIN}"
4545

46+
# public static final String BROWSER_LOGFILE = "webdriver.firefox.logfile";
47+
# System property that defines the location of the file where Firefox log should be stored.
48+
4649
java \
47-
-Dwebdriver.firefox.logfile="${LOGS_DIR}/firefox_browser.log" \
48-
-Dwebdriver.log.file="${LOGS_DIR}/firefox_driver.log" \
50+
-Dwebdriver.firefox.logfile="${LOGS_DIR}/firefox_driver.log" \
4951
${JAVA_OPTS} \
5052
-jar ${SELENIUM_JAR_PATH} \
5153
-port ${SELENIUM_NODE_FF_PORT} \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ echo "INFO: JAVA_OPTS are '${JAVA_OPTS}'"
3333
CHROME_BROWSER_CAPS="browserName=*chrome,${COMMON_CAPS},version=${CHROME_VERSION},chrome_binary=${CHROME_PATH}"
3434
java \
3535
-Dwebdriver.chrome.driver="/home/seluser/chromedriver" \
36-
-Dwebdriver.chrome.logfile="${LOGS_DIR}/chromedriver.log" \
36+
-Dwebdriver.chrome.logfile="${LOGS_DIR}/rc_chromedriver.log" \
3737
-Dwebdriver.chrome.verboseLogging="${CHROME_VERBOSELOGGING}" \
3838
${JAVA_OPTS} \
3939
-jar ${SELENIUM_JAR_PATH} \

0 commit comments

Comments
 (0)