Skip to content

Commit 8fd00ef

Browse files
authored
bug(#2038): Rollback io.opentelemetry 1.31.0 - add test tracing enabled (#2040)
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent 113bb0a commit 8fd00ef

File tree

16 files changed

+44
-28
lines changed

16 files changed

+44
-28
lines changed

.github/workflows/helm-chart-test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ name: Lint and Test Helm Charts
22

33
on:
44
push:
5-
paths:
6-
- 'charts/selenium-grid/**'
75
pull_request:
8-
paths:
9-
- 'charts/selenium-grid/**'
106
workflow_dispatch:
117

128
permissions:

Base/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ RUN curl -fLo /tmp/cs https://github.com/coursier/launchers/raw/master/coursier
8989
&& mkdir -p /external_jars \
9090
&& chmod -R 775 /external_jars
9191

92-
RUN /tmp/cs fetch --classpath --cache /external_jars io.opentelemetry:opentelemetry-exporter-otlp:1.32.0 io.opentelemetry:opentelemetry-exporter-jaeger:1.32.0 io.grpc:grpc-netty:1.59.0 > /external_jars/.classpath.txt
92+
RUN /tmp/cs fetch --classpath --cache /external_jars \
93+
io.opentelemetry:opentelemetry-exporter-otlp:1.31.0 \
94+
io.opentelemetry:opentelemetry-exporter-jaeger:1.31.0 \
95+
io.grpc:grpc-netty:1.59.0 > /external_jars/.classpath.txt
9396

9497
RUN chmod 664 /external_jars/.classpath.txt
9598
RUN rm -fr /root/.cache/*

Distributor/start-selenium-grid-distributor.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ EXTRA_LIBS=""
5858

5959
if [ ! -z "$SE_ENABLE_TRACING" ]; then
6060
EXTERNAL_JARS=$(</external_jars/.classpath.txt)
61-
EXTRA_LIBS="--ext "
62-
EXTRA_LIBS=${EXTRA_LIBS}:${EXTERNAL_JARS}
61+
[ -n "$EXTRA_LIBS" ] && [ -n "${EXTERNAL_JARS}" ] && EXTRA_LIBS=${EXTRA_LIBS}:
62+
EXTRA_LIBS="--ext "${EXTRA_LIBS}${EXTERNAL_JARS}
6363
echo "Tracing is enabled"
6464
echo "Classpath will be enriched with these external jars : " ${EXTRA_LIBS}
6565
else

EventBus/start-selenium-grid-eventbus.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ EXTRA_LIBS=""
2323

2424
if [ ! -z "$SE_ENABLE_TRACING" ]; then
2525
EXTERNAL_JARS=$(</external_jars/.classpath.txt)
26-
EXTRA_LIBS="--ext "
27-
EXTRA_LIBS=${EXTRA_LIBS}:${EXTERNAL_JARS}
26+
[ -n "$EXTRA_LIBS" ] && [ -n "${EXTERNAL_JARS}" ] && EXTRA_LIBS=${EXTRA_LIBS}:
27+
EXTRA_LIBS="--ext "${EXTRA_LIBS}${EXTERNAL_JARS}
2828
echo "Tracing is enabled"
2929
echo "Classpath will be enriched with these external jars : " ${EXTRA_LIBS}
3030
else

Hub/start-selenium-grid-hub.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ EXTRA_LIBS=""
2626

2727
if [ ! -z "$SE_ENABLE_TRACING" ]; then
2828
EXTERNAL_JARS=$(</external_jars/.classpath.txt)
29-
EXTRA_LIBS="--ext "
30-
EXTRA_LIBS=${EXTRA_LIBS}:${EXTERNAL_JARS}
29+
[ -n "$EXTRA_LIBS" ] && [ -n "${EXTERNAL_JARS}" ] && EXTRA_LIBS=${EXTRA_LIBS}:
30+
EXTRA_LIBS="--ext "${EXTRA_LIBS}${EXTERNAL_JARS}
3131
echo "Tracing is enabled"
3232
echo "Classpath will be enriched with these external jars : " ${EXTRA_LIBS}
3333
else
3434
echo "Tracing is disabled"
3535
fi
3636

37-
3837
java ${JAVA_OPTS:-$SE_JAVA_OPTS} \
3938
-jar /opt/selenium/selenium-server.jar \
4039
${EXTRA_LIBS} hub \

NodeBase/start-selenium-node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ EXTRA_LIBS=""
4040

4141
if [ ! -z "$SE_ENABLE_TRACING" ]; then
4242
EXTERNAL_JARS=$(</external_jars/.classpath.txt)
43-
EXTRA_LIBS="--ext "
44-
EXTRA_LIBS=${EXTRA_LIBS}:${EXTERNAL_JARS}
43+
[ -n "$EXTRA_LIBS" ] && [ -n "${EXTERNAL_JARS}" ] && EXTRA_LIBS=${EXTRA_LIBS}:
44+
EXTRA_LIBS="--ext "${EXTRA_LIBS}${EXTERNAL_JARS}
4545
echo "Tracing is enabled"
4646
echo "Classpath will be enriched with these external jars : " ${EXTRA_LIBS}
4747
else

NodeChrome/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ USER root
1515
# google-chrome-unstable
1616
#============================================
1717
ARG CHROME_VERSION="google-chrome-stable"
18-
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
18+
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor | tee /etc/apt/trusted.gpg.d/google.gpg >/dev/null \
1919
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
2020
&& apt-get update -qqy \
2121
&& apt-get -qqy install \

NodeDocker/start-selenium-grid-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ EXTRA_LIBS=""
3333

3434
if [ ! -z "$SE_ENABLE_TRACING" ]; then
3535
EXTERNAL_JARS=$(</external_jars/.classpath.txt)
36-
EXTRA_LIBS="--ext "
37-
EXTRA_LIBS=${EXTRA_LIBS}:${EXTERNAL_JARS}
36+
[ -n "$EXTRA_LIBS" ] && [ -n "${EXTERNAL_JARS}" ] && EXTRA_LIBS=${EXTRA_LIBS}:
37+
EXTRA_LIBS="--ext "${EXTRA_LIBS}${EXTERNAL_JARS}
3838
echo "Tracing is enabled"
3939
echo "Classpath will be enriched with these external jars : " ${EXTRA_LIBS}
4040
else

Router/start-selenium-grid-router.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ EXTRA_LIBS=""
5858

5959
if [ ! -z "$SE_ENABLE_TRACING" ]; then
6060
EXTERNAL_JARS=$(</external_jars/.classpath.txt)
61-
EXTRA_LIBS="--ext "
62-
EXTRA_LIBS=${EXTRA_LIBS}:${EXTERNAL_JARS}
61+
[ -n "$EXTRA_LIBS" ] && [ -n "${EXTERNAL_JARS}" ] && EXTRA_LIBS=${EXTRA_LIBS}:
62+
EXTRA_LIBS="--ext "${EXTRA_LIBS}${EXTERNAL_JARS}
6363
echo "Tracing is enabled"
6464
echo "Classpath will be enriched with these external jars : " ${EXTRA_LIBS}
6565
else

SessionQueue/start-selenium-grid-session-queue.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ EXTRA_LIBS=""
2323

2424
if [ ! -z "$SE_ENABLE_TRACING" ]; then
2525
EXTERNAL_JARS=$(</external_jars/.classpath.txt)
26-
EXTRA_LIBS="--ext "
27-
EXTRA_LIBS=${EXTRA_LIBS}:${EXTERNAL_JARS}
26+
[ -n "$EXTRA_LIBS" ] && [ -n "${EXTERNAL_JARS}" ] && EXTRA_LIBS=${EXTRA_LIBS}:
27+
EXTRA_LIBS="--ext "${EXTRA_LIBS}${EXTERNAL_JARS}
2828
echo "Tracing is enabled"
2929
echo "Classpath will be enriched with these external jars : " ${EXTRA_LIBS}
3030
else

0 commit comments

Comments
 (0)