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

Commit c0eaa2b

Browse files
merging from upstream
2 parents d6efa3f + 595a983 commit c0eaa2b

29 files changed

+350
-192
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ body:
5555
attributes:
5656
label: Docker Selenium version (tag)
5757
description: What version of Docker Selenium are you using?
58-
placeholder: 4.8.0-20230210? Please use the full tag, avoid "latest"
58+
placeholder: 4.8.1-20230221? Please use the full tag, avoid "latest"
5959
validations:
6060
required: true

.github/label-commenter-config.yml

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# Configuration for Label Commenter - https://github.com/peaceiris/actions-label-commenter
2+
labels:
3+
- name: needs-triaging
4+
labeled:
5+
issue:
6+
body: |
7+
@{{ issue.user.login }}, thank you for creating this issue. We will troubleshoot it as soon as we can.
8+
9+
---
10+
<details>
11+
<summary>Info for maintainers</summary>
12+
<div>
13+
<br>
14+
<p>
15+
Triage this issue by using labels.
16+
</p>
17+
<p>
18+
If information is missing, add a helpful comment and then <code>I-issue-template</code> label.
19+
</p>
20+
<p>
21+
If the issue is a question, add the <code>I-question</code> label.
22+
</p>
23+
<p>
24+
If the issue is valid but there is no time to troubleshoot it, consider adding the <code>help wanted</code> label.
25+
</p>
26+
<p>
27+
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
28+
add the applicable <code>G-*</code> label, and it will provide the correct link and auto-close the
29+
issue.
30+
</p>
31+
<p>
32+
After troubleshooting the issue, please add the <code>R-awaiting answer</code> label.
33+
</p>
34+
<p>
35+
Thank you!
36+
</p>
37+
</div>
38+
</details>
39+
- name: G-w3c
40+
labeled:
41+
issue:
42+
body: |
43+
Hi, @{{ issue.user.login }}.
44+
This issue has been determined to require a change to the
45+
[WebDriver W3C Specification](https://w3c.github.io/webdriver/) for Selenium to be able to support it.
46+
47+
Please [create an issue](https://github.com/w3c/webdriver/issues/new) with the WebDriver project.
48+
49+
Feel free to comment the issues that you raise back in this issue. Thank you.
50+
action: close
51+
- name: G-chromedriver
52+
labeled:
53+
issue:
54+
body: |
55+
Hi, @{{ issue.user.login }}.
56+
This issue has been determined to require fixes in [ChromeDriver](https://chromedriver.chromium.org/home).
57+
58+
You can see if the feature is passing in the [Web Platform Tests](https://wpt.fyi/results/webdriver/tests).
59+
60+
If it is something new, please [create an issue](https://bugs.chromium.org/p/chromedriver/issues/list) with the ChromeDriver team.
61+
Feel free to comment the issues that you raise back in this issue. Thank you.
62+
63+
action: close
64+
- name: G-geckodriver
65+
labeled:
66+
issue:
67+
body: |
68+
Hi, @{{ issue.user.login }}.
69+
This issue has been determined to require fixes in [GeckoDriver](https://firefox-source-docs.mozilla.org/testing/geckodriver/).
70+
71+
You can see if the feature is passing in the [Web Platform Tests](https://wpt.fyi/results/webdriver/tests).
72+
73+
If it is something new, please [create an Issue](https://github.com/mozilla/geckodriver/issues/new) with the GeckoDriver team.
74+
75+
Feel free to comment the issues that you raise back in this issue. Thank you.
76+
action: close
77+
- name: G-msedgedriver
78+
labeled:
79+
issue:
80+
body: |
81+
Hi, @{{ issue.user.login }}.
82+
This issue has been determined to require fixes in [MSEdgeDriver](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/)
83+
or in the IE Mode in Edge.
84+
85+
You can see if the feature is passing in the [Web Platform Tests](https://wpt.fyi/results/webdriver/tests).
86+
87+
If it is something new, please [create an Issue](https://github.com/MicrosoftEdge/EdgeWebDriver/issues/new) with the MSEdgeDriver team.
88+
89+
Feel free to comment the issues that you raise back in this issue. Thank you.
90+
action: close
91+
- name: I-issue-template
92+
labeled:
93+
issue:
94+
body: |
95+
Hi, @{{ issue.user.login }}.
96+
Please follow the issue template, we need more information to reproduce the issue.
97+
98+
Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.
99+
100+
Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.
101+
102+
Reply to this issue when all information is provided, thank you.
103+
- name: I-question
104+
labeled:
105+
issue:
106+
body: |
107+
💬 Please ask questions at:
108+
* 📫 The [Selenium user group](https://groups.google.com/forum/#!forum/selenium-users)
109+
* 📮 [StackOverflow](https://stackoverflow.com/questions/tagged/selenium)
110+
* 🗣 Our [IRC/Slack/Matrix channels](https://www.selenium.dev/support/) where the community can help you as well
111+
action: close
112+
- name: help wanted
113+
labeled:
114+
issue:
115+
body: |
116+
This issue is looking for contributors.
117+
118+
Please comment below or reach out to us through our [IRC/Slack/Matrix channels](https://www.selenium.dev/support/) if you are interested.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Configuration for Label Commenter - https://github.com/peaceiris/actions-label-commenter
2+
name: Label Commenter
3+
4+
on:
5+
issues:
6+
types: [ labeled ]
7+
8+
permissions:
9+
contents: read
10+
issues: write
11+
12+
jobs:
13+
comment:
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Label Commenter
18+
uses: peaceiris/actions-label-commenter@v1

Base/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
2828
#========================
2929
RUN apt-get -qqy update \
3030
&& apt-get -qqy --no-install-recommends install \
31+
acl \
3132
bzip2 \
3233
ca-certificates \
3334
openjdk-11-jre-headless \
@@ -90,12 +91,13 @@ COPY supervisord.conf /etc
9091
RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
9192
&& touch /opt/selenium/config.toml \
9293
&& chmod -R 777 /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor /etc/passwd \
93-
&& wget --no-verbose https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.8.0/selenium-server-4.8.0.jar \
94+
&& wget --no-verbose https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.8.0/selenium-server-4.8.1.jar \
9495
-O /opt/selenium/selenium-server.jar \
95-
&& wget --no-verbose https://repo1.maven.org/maven2/org/seleniumhq/selenium/selenium-http-jdk-client/4.8.0/selenium-http-jdk-client-4.8.0.jar \
96+
&& wget --no-verbose https://repo1.maven.org/maven2/org/seleniumhq/selenium/selenium-http-jdk-client/4.8.1/selenium-http-jdk-client-4.8.1.jar \
9697
-O /opt/selenium/selenium-http-jdk-client.jar \
9798
&& chgrp -R 0 /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
98-
&& chmod -R g=u /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor
99+
&& chmod -R g=u /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
100+
&& setfacl -Rm u:seluser:rwx /opt /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor
99101

100102
#=====
101103
# Download observability related jaegar jars and make them available in a separate directory
@@ -107,14 +109,14 @@ RUN if [ `arch` = "aarch64" ]; then \
107109
curl -fL https://github.com/coursier/launchers/raw/master/cs-`arch`-pc-linux.gz | gzip -d > /tmp/cs \
108110
&& chmod +x /tmp/cs \
109111
&& mkdir -p /external_jars \
110-
&& chmod -R 777 /external_jars ; \
112+
&& chmod -R 775 /external_jars ; \
111113
fi
112114

113115
RUN if [ -f "/tmp/cs" ]; then \
114116
/tmp/cs fetch --classpath --cache /external_jars io.opentelemetry:opentelemetry-exporter-jaeger:1.22.0 io.grpc:grpc-netty:1.52.1 > /external_jars/.classpath.txt ; \
115117
fi
116118

117-
RUN if [ -f "/tmp/cs" ]; then chmod 777 /external_jars/.classpath.txt ; fi
119+
RUN if [ -f "/tmp/cs" ]; then chmod 664 /external_jars/.classpath.txt ; fi
118120

119121
#===================================================
120122
# Run the following commands as non-privileged user

NodeBase/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,9 @@ USER root
146146
#==========
147147
# Relaxing permissions for OpenShift and other non-sudo environments
148148
#==========
149-
RUN chmod -R 777 ${HOME} \
150-
&& chgrp -R 0 ${HOME} \
151-
&& chmod -R g=u ${HOME}
152-
153-
# Added to avoid sudo-related multi-arch build errors
154-
USER 1200
149+
RUN sudo chmod -R 775 ${HOME} \
150+
&& sudo chgrp -R 0 ${HOME} \
151+
&& sudo chmod -R g=u ${HOME}
155152

156153
#==============================
157154
# Scripts to run fluxbox, x11vnc and noVNC

NodeChrome/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ RUN if [ -z "$CHROME_DRIVER_VERSION" ]; \
5252
&& echo "Using chromedriver version: "$CHROME_DRIVER_VERSION \
5353
&& wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip \
5454
&& rm -rf /opt/selenium/chromedriver \
55-
&& unzip /tmp/chromedriver_linux64.zip -d /opt/selenium \
55+
&& sudo unzip /tmp/chromedriver_linux64.zip -d /opt/selenium \
5656
&& rm /tmp/chromedriver_linux64.zip \
57-
&& mv /opt/selenium/chromedriver /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION \
58-
&& chmod 755 /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION \
57+
&& sudo mv /opt/selenium/chromedriver /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION \
58+
&& sudo chmod 755 /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION \
5959
&& sudo ln -fs /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION /usr/bin/chromedriver
6060

6161

6262
#============================================
6363
# Dumping Browser name and version for config
6464
#============================================
65-
RUN echo "chrome" > /opt/selenium/browser_name
65+
RUN echo "chrome" > /opt/selenium/browser_name

NodeChrome/wrap_chrome_binary

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ WRAPPER_PATH=$(readlink -f /usr/bin/google-chrome)
44
BASE_PATH="$WRAPPER_PATH-base"
55
mv "$WRAPPER_PATH" "$BASE_PATH"
66

7-
# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var
8-
# See: https://stackoverflow.com/a/41893197/359999
9-
for var in "$@"; do
10-
if [[ $var == --lang=* ]]; then
11-
LANGUAGE=${var//--lang=}
12-
fi
13-
done
14-
157
cat > "$WRAPPER_PATH" <<_EOF
168
#!/bin/bash
179
1810
# umask 002 ensures default permissions of files are 664 (rw-rw-r--) and directories are 775 (rwxrwxr-x).
1911
umask 002
2012
13+
# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var
14+
# See: https://stackoverflow.com/a/41893197/359999
15+
for var in "\$@"; do
16+
if [[ \$var == --lang=* ]]; then
17+
LANGUAGE=\${var//--lang=}
18+
fi
19+
done
20+
2121
# Set language environment variable
22-
export LANGUAGE="$LANGUAGE"
22+
export LANGUAGE="\$LANGUAGE"
2323
2424
# Note: exec -a below is a bashism.
2525
exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@"

NodeDocker/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Configs have a mapping between the Docker image to use and the capabilities that need to be matched to
33
# start a container with the given image.
44
configs = [
5-
"selenium/standalone-firefox:4.8.0-20230210", '{"browserName": "firefox", "platformName": "linux"}',
6-
"selenium/standalone-chrome:4.8.0-20230210", '{"browserName": "chrome", "platformName": "linux"}',
7-
"selenium/standalone-edge:4.8.0-20230210", '{"browserName": "MicrosoftEdge", "platformName": "linux"}'
5+
"selenium/standalone-firefox:4.8.1-20230221", '{"browserName": "firefox", "platformName": "linux"}',
6+
"selenium/standalone-chrome:4.8.1-20230221", '{"browserName": "chrome", "platformName": "linux"}',
7+
"selenium/standalone-edge:4.8.1-20230221", '{"browserName": "MicrosoftEdge", "platformName": "linux"}'
88
]
99

1010
# URL for connecting to the docker daemon
@@ -14,7 +14,7 @@ configs = [
1414
# socat -4 TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock
1515
url = "http://127.0.0.1:2375"
1616
# Docker image used for video recording
17-
video-image = "selenium/video:ffmpeg-4.3.1-20230210"
17+
video-image = "selenium/video:ffmpeg-4.3.1-20230221"
1818

1919
# Uncomment the following section if you are running the node on a separate VM
2020
# Fill out the placeholders with appropriate values

NodeEdge/wrap_edge_binary

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ WRAPPER_PATH=$(readlink -f /usr/bin/microsoft-edge)
44
BASE_PATH="$WRAPPER_PATH-base"
55
mv "$WRAPPER_PATH" "$BASE_PATH"
66

7-
# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var
8-
# See: https://stackoverflow.com/a/41893197/359999
9-
for var in "$@"; do
10-
if [[ $var == --lang=* ]]; then
11-
LANGUAGE=${var//--lang=}
12-
fi
13-
done
14-
157
cat > "$WRAPPER_PATH" <<_EOF
168
#!/bin/bash
179
1810
# umask 002 ensures default permissions of files are 664 (rw-rw-r--) and directories are 775 (rwxrwxr-x).
1911
umask 002
2012
13+
# Debian/Ubuntu seems to not respect --lang, it instead needs to be a LANGUAGE environment var
14+
# See: https://stackoverflow.com/a/41893197/359999
15+
for var in "\$@"; do
16+
if [[ \$var == --lang=* ]]; then
17+
LANGUAGE=\${var//--lang=}
18+
fi
19+
done
20+
2121
# Set language environment variable
22-
export LANGUAGE="$LANGUAGE"
22+
export LANGUAGE="\$LANGUAGE"
2323
2424
# Note: exec -a below is a bashism.
2525
exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@"

0 commit comments

Comments
 (0)