Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
8e6a527f
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
8e6a527f
编写于
4月 21, 2020
作者:
K
kezhenxu94
提交者:
GitHub
4月 21, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add Java versions 9~14 to E2E tests (#4674)
上级
28530cd7
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
67 addition
and
187 deletion
+67
-187
.github/workflows/e2e.cluster.yaml
.github/workflows/e2e.cluster.yaml
+1
-1
.github/workflows/e2e.jdk-versions.yaml
.github/workflows/e2e.jdk-versions.yaml
+5
-0
.github/workflows/e2e.profiling.yaml
.github/workflows/e2e.profiling.yaml
+1
-1
.github/workflows/e2e.storages.yaml
.github/workflows/e2e.storages.yaml
+1
-1
.github/workflows/e2e.ttl.yaml
.github/workflows/e2e.ttl.yaml
+1
-1
Makefile
Makefile
+11
-7
apm-sniffer/apm-sdk-plugin/finagle-6.25.x-plugin/pom.xml
apm-sniffer/apm-sdk-plugin/finagle-6.25.x-plugin/pom.xml
+2
-2
docker/oap-es7/Dockerfile.oap
docker/oap-es7/Dockerfile.oap
+0
-42
docker/oap-es7/docker-entrypoint.sh
docker/oap-es7/docker-entrypoint.sh
+0
-46
docker/oap-es7/log4j2.xml
docker/oap-es7/log4j2.xml
+0
-36
docker/oap/Dockerfile.oap
docker/oap/Dockerfile.oap
+7
-4
docker/oap/docker-entrypoint.sh
docker/oap/docker-entrypoint.sh
+9
-6
pom.xml
pom.xml
+7
-0
test/e2e/e2e-common/src/main/java/org/apache/skywalking/e2e/SkyWalkingAnnotations.java
...java/org/apache/skywalking/e2e/SkyWalkingAnnotations.java
+3
-1
test/e2e/e2e-test/docker/base-compose.yml
test/e2e/e2e-test/docker/base-compose.yml
+2
-2
test/e2e/e2e-test/docker/cluster/docker-compose.zk.mysql.yml
test/e2e/e2e-test/docker/cluster/docker-compose.zk.mysql.yml
+2
-2
test/e2e/e2e-test/docker/download-mysql.sh
test/e2e/e2e-test/docker/download-mysql.sh
+3
-3
test/e2e/e2e-test/docker/profile/docker-compose.mysql.yml
test/e2e/e2e-test/docker/profile/docker-compose.mysql.yml
+1
-1
test/e2e/e2e-test/docker/storage/docker-compose.mysql.yml
test/e2e/e2e-test/docker/storage/docker-compose.mysql.yml
+1
-1
test/e2e/e2e-test/docker/storage/download-mysql.sh
test/e2e/e2e-test/docker/storage/download-mysql.sh
+0
-27
test/e2e/e2e-test/src/test/java/org/apache/skywalking/e2e/profile/ProfileE2E.java
...st/java/org/apache/skywalking/e2e/profile/ProfileE2E.java
+4
-2
tools/coverage/report.sh
tools/coverage/report.sh
+5
-0
tools/profile-exporter/profile_exporter.sh
tools/profile-exporter/profile_exporter.sh
+1
-1
未找到文件。
.github/workflows/e2e.cluster.yaml
浏览文件 @
8e6a527f
...
...
@@ -49,7 +49,7 @@ jobs:
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --force --recursive --depth=1
-
name
:
Compile and Build
run
:
make docker && ES_VERSION=es7 TAG=latest-es7 make docker
run
:
make docker && ES_VERSION=es7 TAG=latest-es7 make docker
.oap
-
name
:
Copy dist package
run
:
cp -R dist test/e2e/
-
name
:
Cluster with ${{ matrix.coordinator }} and ${{ matrix.storage }}
...
...
.github/workflows/e2e.jdk-versions.yaml
浏览文件 @
8e6a527f
...
...
@@ -39,6 +39,7 @@ jobs:
env
:
SW_SIMPLE_CASE
:
jdk
SW_AGENT_JDK_VERSION
:
${{ matrix.jdk }}
SW_OAP_BASE_IMAGE
:
adoptopenjdk/openjdk${{ matrix.jdk }}:alpine
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Checkout Submodules
...
...
@@ -46,6 +47,10 @@ jobs:
run
:
|
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --force --recursive --depth=1
-
name
:
Set Up Java
uses
:
actions/setup-java@v1
with
:
java-version
:
${{ matrix.jdk }}
-
name
:
Build Docker Image
run
:
make docker
-
name
:
Copy dist package
...
...
.github/workflows/e2e.profiling.yaml
浏览文件 @
8e6a527f
...
...
@@ -47,7 +47,7 @@ jobs:
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --force --recursive --depth=1
-
name
:
Compile and Build
run
:
make docker && ES_VERSION=es7 TAG=latest-es7 make docker
run
:
make docker && ES_VERSION=es7 TAG=latest-es7 make docker
.oap
-
name
:
Copy dist package
run
:
cp -R dist test/e2e/
-
name
:
Profiling ${{ matrix.storage }}
...
...
.github/workflows/e2e.storages.yaml
浏览文件 @
8e6a527f
...
...
@@ -47,7 +47,7 @@ jobs:
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --force --recursive --depth=1
-
name
:
Compile and Build
run
:
make docker && ES_VERSION=es7 TAG=latest-es7 make docker
run
:
make docker && ES_VERSION=es7 TAG=latest-es7 make docker
.oap
-
name
:
Copy dist package
run
:
cp -R dist test/e2e/
-
name
:
Storage ${{ matrix.storage }}
...
...
.github/workflows/e2e.ttl.yaml
浏览文件 @
8e6a527f
...
...
@@ -47,7 +47,7 @@ jobs:
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --force --recursive --depth=1
-
name
:
Compile and Build
run
:
make docker && ES_VERSION=es7 TAG=latest-es7 make docker
run
:
make docker && ES_VERSION=es7 TAG=latest-es7 make docker
.oap
-
name
:
Copy dist package
run
:
cp -R dist test/e2e/
-
name
:
TTL of storage ${{ matrix.storage }}
...
...
Makefile
浏览文件 @
8e6a527f
...
...
@@ -58,18 +58,22 @@ DOCKER_TARGETS:=docker.oap docker.ui
docker.all
:
$(DOCKER_TARGETS)
ifeq
($(ES_VERSION),es7)
docker.oap
:
$(SW_OUT)/apache-skywalking-apm-bin-es7.tar.gz
docker.oap
:
$(SW_ROOT)/docker/oap-es7/Dockerfile.oap
docker.oap
:
$(SW_ROOT)/docker/oap-es7/docker-entrypoint.sh
docker.oap
:
$(SW_ROOT)/docker/oap-es7/log4j2.xml
$(DOCKER_RULE)
DIST_NAME
:=
apache-skywalking-apm-bin-es7
else
docker.oap
:
$(SW_OUT)/apache-skywalking-apm-bin.tar.gz
DIST_NAME
:=
apache-skywalking-apm-bin
endif
ifneq
($(SW_OAP_JAVA_VERSION),)
BUILD_ARGS
:=
$(BUILD_ARGS)
--build-arg
JAVA_VERSION
=
$(SW_OAP_JAVA_VERSION)
endif
BUILD_ARGS
:=
$(BUILD_ARGS)
--build-arg
DIST_NAME
=
$(DIST_NAME)
docker.oap
:
$(SW_OUT)/$(DIST_NAME).tar.gz
docker.oap
:
$(SW_ROOT)/docker/oap/Dockerfile.oap
docker.oap
:
$(SW_ROOT)/docker/oap/docker-entrypoint.sh
docker.oap
:
$(SW_ROOT)/docker/oap/log4j2.xml
$(DOCKER_RULE)
endif
docker.ui
:
$(SW_OUT)/apache-skywalking-apm-bin.tar.gz
docker.ui
:
$(SW_ROOT)/docker/ui/Dockerfile.ui
...
...
apm-sniffer/apm-sdk-plugin/finagle-6.25.x-plugin/pom.xml
浏览文件 @
8e6a527f
...
...
@@ -34,7 +34,7 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<finagle.version>
6.34.0
</finagle.version>
<scala.library.version>
2.11.
8
</scala.library.version>
<scala.library.version>
2.11.
12
</scala.library.version>
</properties>
<dependencies>
...
...
@@ -78,4 +78,4 @@
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
</project>
docker/oap-es7/Dockerfile.oap
已删除
100644 → 0
浏览文件 @
28530cd7
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM openjdk:8u181-jdk-stretch
ENV DIST_NAME=apache-skywalking-apm-bin-es7 \
JAVA_OPTS=" -Xms256M " \
SW_CLUSTER="standalone" \
SW_STORAGE="h2"
COPY "$DIST_NAME.tar.gz" /
RUN set -ex; \
tar -xzf "$DIST_NAME.tar.gz"; \
rm -rf "$DIST_NAME.tar.gz"; \
rm -rf "$DIST_NAME/config/log4j2.xml"; \
rm -rf "$DIST_NAME/bin"; rm -rf "$DIST_NAME/webapp"; rm -rf "$DIST_NAME/agent"; \
mv "$DIST_NAME" skywalking;
WORKDIR skywalking
COPY log4j2.xml config/
COPY docker-entrypoint.sh .
RUN mkdir ext-config; \
mkdir ext-libs;
EXPOSE 12800 11800 1234
ENTRYPOINT ["bash", "docker-entrypoint.sh"]
\ No newline at end of file
docker/oap-es7/docker-entrypoint.sh
已删除
100755 → 0
浏览文件 @
28530cd7
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/bin/bash
set
-e
echo
"[Entrypoint] Apache SkyWalking Docker Image"
if
[[
"
$SW_TELEMETRY
"
=
"so11y"
]]
;
then
export
SW_RECEIVER_SO11Y
=
default
echo
"Set SW_RECEIVER_SO11Y to
${
SW_RECEIVER_SO11Y
}
"
fi
EXT_LIB_DIR
=
/skywalking/ext-libs
EXT_CONFIG_DIR
=
/skywalking/ext-config
# Override configuration files
cp
-vfR
${
EXT_CONFIG_DIR
}
/ config/
CLASSPATH
=
"config:
$CLASSPATH
"
for
i
in
oap-libs/
*
.jar
do
CLASSPATH
=
"
$i
:
$CLASSPATH
"
done
for
i
in
${
EXT_LIB_DIR
}
/
*
.jar
do
CLASSPATH
=
"
$i
:
$CLASSPATH
"
done
set
-ex
exec
java
-XX
:+UnlockExperimentalVMOptions
-XX
:+UseCGroupMemoryLimitForHeap
\
${
JAVA_OPTS
}
-classpath
${
CLASSPATH
}
org.apache.skywalking.oap.server.starter.OAPServerStartUp
"
$@
"
docker/oap-es7/log4j2.xml
已删除
100644 → 0
浏览文件 @
28530cd7
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
-->
<Configuration
status=
"INFO"
>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
charset=
"UTF-8"
pattern=
"%d - %c -%-4r [%t] %-5p %x - %m%n"
/>
</Console>
</Appenders>
<Loggers>
<logger
name=
"org.eclipse.jetty"
level=
"INFO"
/>
<logger
name=
"org.apache.zookeeper"
level=
"INFO"
/>
<logger
name=
"org.elasticsearch.common.network.IfConfig"
level=
"INFO"
/>
<logger
name=
"io.grpc.netty"
level=
"INFO"
/>
<logger
name=
"org.apache.skywalking.oap.server.receiver.istio.telemetry"
level=
"DEBUG"
/>
<Root
level=
"INFO"
>
<AppenderRef
ref=
"Console"
/>
</Root>
</Loggers>
</Configuration>
docker/oap/Dockerfile.oap
浏览文件 @
8e6a527f
...
...
@@ -14,13 +14,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM openjdk:8u181-jdk-stretch
ARG JAVA_VERSION=8
ENV DIST_NAME=apache-skywalking-apm-bin \
JAVA_OPTS=" -Xms256M " \
FROM adoptopenjdk/openjdk$JAVA_VERSION:alpine
ENV JAVA_OPTS=" -Xms256M " \
SW_CLUSTER="standalone" \
SW_STORAGE="h2"
ARG DIST_NAME
COPY "$DIST_NAME.tar.gz" /
RUN set -ex; \
...
...
@@ -39,4 +42,4 @@ RUN mkdir ext-config; \
EXPOSE 12800 11800 1234
ENTRYPOINT ["bash", "docker-entrypoint.sh"]
\ No newline at end of file
ENTRYPOINT ["sh", "docker-entrypoint.sh"]
docker/oap/docker-entrypoint.sh
浏览文件 @
8e6a527f
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
...
...
@@ -14,13 +15,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#!/bin/bash
set
-e
echo
"[Entrypoint] Apache SkyWalking Docker Image"
if
[
[
"
$SW_TELEMETRY
"
=
"so11y"
]
]
;
then
if
[
"
$SW_TELEMETRY
"
=
"so11y"
]
;
then
export
SW_RECEIVER_SO11Y
=
default
echo
"Set SW_RECEIVER_SO11Y to
${
SW_RECEIVER_SO11Y
}
"
fi
...
...
@@ -36,11 +35,15 @@ for i in oap-libs/*.jar
do
CLASSPATH
=
"
$i
:
$CLASSPATH
"
done
for
i
in
${
EXT_LIB_DIR
}
/
*
.jar
for
i
in
"
${
EXT_LIB_DIR
}
"
/
*
.jar
do
CLASSPATH
=
"
$i
:
$CLASSPATH
"
done
if
java
-XX
:+UnlockExperimentalVMOptions
-XX
:+UseCGroupMemoryLimitForHeap
-version
;
then
JAVA_OPTS
=
"
${
JAVA_OPTS
}
-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
fi
set
-ex
exec
java
-XX
:+UnlockExperimentalVMOptions
-XX
:+UseCGroupMemoryLimitForHeap
\
${
JAVA_OPTS
}
-classpath
${
CLASSPATH
}
org.apache.skywalking.oap.server.starter.OAPServerStartUp
"
$@
"
exec
java
${
JAVA_OPTS
}
-classpath
${
CLASSPATH
}
org.apache.skywalking.oap.server.starter.OAPServerStartUp
"
$@
"
pom.xml
浏览文件 @
8e6a527f
...
...
@@ -219,6 +219,7 @@
<gmaven-plugin.version>
1.5
</gmaven-plugin.version>
<cobertura-maven-plugin.version>
2.7
</cobertura-maven-plugin.version>
<checkstyle.fails.on.error>
true
</checkstyle.fails.on.error>
<javax.annotation-api.version>
1.3.2
</javax.annotation-api.version>
</properties>
<dependencies>
...
...
@@ -255,6 +256,12 @@
<version>
${lombok.version}
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
javax.annotation
</groupId>
<artifactId>
javax.annotation-api
</artifactId>
<version>
${javax.annotation-api.version}
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
<dependencyManagement>
...
...
test/e2e/e2e-common/src/main/java/org/apache/skywalking/e2e/SkyWalkingAnnotations.java
浏览文件 @
8e6a527f
...
...
@@ -209,7 +209,9 @@ public final class SkyWalkingAnnotations {
compose
.
withPull
(
true
)
.
withLocalCompose
(
true
)
.
withTailChildContainers
(
true
)
.
withRemoveImages
(
DockerComposeContainer
.
RemoveImages
.
ALL
);
.
withRemoveImages
(
IS_CI
?
DockerComposeContainer
.
RemoveImages
.
ALL
:
DockerComposeContainer
.
RemoveImages
.
LOCAL
);
if
(
IS_CI
)
{
initLoggers
(
files
,
compose
);
...
...
test/e2e/e2e-test/docker/base-compose.yml
浏览文件 @
8e6a527f
...
...
@@ -35,7 +35,7 @@ services:
JAVA_OPTS
:
>-
-javaagent:/jacoco/jacocoagent.jar=classdumpdir=/jacoco/classes/oap,destfile=/jacoco/oap.exec,includes=org.apache.skywalking.*,excludes=org.apache.skywalking.oap.query.*:org.apache.skywalking.oap.server.core.query.*
healthcheck
:
test
:
[
"
CMD"
,
"
bash"
,
"
-c"
,
"
cat
<
/dev/null
>
/dev/tcp/127.0.0.1/
11800"
]
test
:
[
"
CMD"
,
"
sh"
,
"
-c"
,
"
nc
-zn
127.0.0.1
11800"
]
interval
:
5s
timeout
:
60s
retries
:
120
...
...
@@ -59,7 +59,7 @@ services:
JAVA_OPTS
:
>-
-javaagent:/jacoco/jacocoagent.jar=classdumpdir=/jacoco/classes/oap,destfile=/jacoco/oap.exec,includes=org.apache.skywalking.*,excludes=org.apache.skywalking.oap.query.*:org.apache.skywalking.oap.server.core.query.*
healthcheck
:
test
:
[
"
CMD"
,
"
bash"
,
"
-c"
,
"
cat
<
/dev/null
>
/dev/tcp/127.0.0.1/
11800"
]
test
:
[
"
CMD"
,
"
sh"
,
"
-c"
,
"
nc
-zn
127.0.0.1
11800"
]
interval
:
5s
timeout
:
60s
retries
:
120
...
...
test/e2e/e2e-test/docker/cluster/docker-compose.zk.mysql.yml
浏览文件 @
8e6a527f
...
...
@@ -41,7 +41,7 @@ services:
SW_STORAGE
:
mysql
JAVA_OPTS
:
>-
-javaagent:/jacoco/jacocoagent.jar=classdumpdir=/jacoco/classes/oap1,destfile=/jacoco/oap1.exec,includes=org.apache.skywalking.*,excludes=org.apache.skywalking.oap.query.*:org.apache.skywalking.oap.server.core.query.*
entrypoint
:
[
'
ba
sh'
,
'
-c'
,
'
/download-mysql.sh
&&
/skywalking/docker-entrypoint.sh'
]
entrypoint
:
[
'
sh'
,
'
-c'
,
'
/download-mysql.sh
&&
/skywalking/docker-entrypoint.sh'
]
depends_on
:
zk
:
condition
:
service_healthy
...
...
@@ -57,7 +57,7 @@ services:
SW_STORAGE
:
mysql
JAVA_OPTS
:
>-
-javaagent:/jacoco/jacocoagent.jar=classdumpdir=/jacoco/classes/oap2,destfile=/jacoco/oap2.exec,includes=org.apache.skywalking.*,excludes=org.apache.skywalking.oap.query.*:org.apache.skywalking.oap.server.core.query.*
entrypoint
:
[
'
ba
sh'
,
'
-c'
,
'
/download-mysql.sh
&&
/skywalking/docker-entrypoint.sh'
]
entrypoint
:
[
'
sh'
,
'
-c'
,
'
/download-mysql.sh
&&
/skywalking/docker-entrypoint.sh'
]
depends_on
:
zk
:
condition
:
service_healthy
...
...
test/e2e/e2e-test/docker/download-mysql.sh
浏览文件 @
8e6a527f
...
...
@@ -12,16 +12,16 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/usr/bin/env bash
set
-ex
apk add curl
SW_HOME
=
/skywalking
MYSQL_URL
=
"https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/8.0.13/mysql-connector-java-8.0.13.jar"
MYSQL_DRIVER
=
"mysql-connector-java-8.0.13.jar"
curl
-L
-o
"
${
SW_HOME
}
/oap-libs/
${
MYSQL_DRIVER
}
"
${
MYSQL_URL
}
if
[[
$?
-ne
0
]]
;
then
if
!
curl
-Lo
"
${
SW_HOME
}
/oap-libs/
${
MYSQL_DRIVER
}
"
${
MYSQL_URL
}
;
then
echo
"Fail to download
${
MYSQL_DRIVER
}
."
exit
1
fi
test/e2e/e2e-test/docker/profile/docker-compose.mysql.yml
浏览文件 @
8e6a527f
...
...
@@ -41,7 +41,7 @@ services:
depends_on
:
mysql
:
condition
:
service_healthy
entrypoint
:
[
'
ba
sh'
,
'
-c'
,
'
/download-mysql.sh
&&
/skywalking/docker-entrypoint.sh'
]
entrypoint
:
[
'
sh'
,
'
-c'
,
'
/download-mysql.sh
&&
/skywalking/docker-entrypoint.sh'
]
networks
:
e2e
:
test/e2e/e2e-test/docker/storage/docker-compose.mysql.yml
浏览文件 @
8e6a527f
...
...
@@ -41,7 +41,7 @@ services:
depends_on
:
mysql
:
condition
:
service_healthy
entrypoint
:
[
'
ba
sh'
,
'
-c'
,
'
/download-mysql.sh
&&
/skywalking/docker-entrypoint.sh'
]
entrypoint
:
[
'
sh'
,
'
-c'
,
'
/download-mysql.sh
&&
/skywalking/docker-entrypoint.sh'
]
networks
:
e2e
:
test/e2e/e2e-test/docker/storage/download-mysql.sh
已删除
100755 → 0
浏览文件 @
28530cd7
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/usr/bin/env bash
set
-ex
SW_HOME
=
/skywalking
MYSQL_URL
=
"https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/8.0.13/mysql-connector-java-8.0.13.jar"
MYSQL_DRIVER
=
"mysql-connector-java-8.0.13.jar"
curl
-L
-o
"
${
SW_HOME
}
/oap-libs/
${
MYSQL_DRIVER
}
"
${
MYSQL_URL
}
if
[[
$?
-ne
0
]]
;
then
echo
"Fail to download
${
MYSQL_DRIVER
}
."
exit
1
fi
test/e2e/e2e-test/src/test/java/org/apache/skywalking/e2e/profile/ProfileE2E.java
浏览文件 @
8e6a527f
...
...
@@ -257,12 +257,14 @@ public class ProfileE2E extends SkyWalkingTestAdapter {
"/skywalking/tools/profile-exporter/profile_exporter.sh --taskid=%s --traceid=%s /tmp"
,
taskId
,
traceId
);
final
Container
.
ExecResult
exportResult
=
oapContainer
.
execInContainer
(
"/bin/
ba
sh"
,
"-c"
,
exportShell
);
final
Container
.
ExecResult
exportResult
=
oapContainer
.
execInContainer
(
"/bin/sh"
,
"-c"
,
exportShell
);
LOGGER
.
info
(
"exported result: {}"
,
exportResult
);
assertThat
(
exportResult
.
getExitCode
()).
isEqualTo
(
0
);
final
String
lsExportedFileShell
=
String
.
format
(
"ls /tmp/%s.tar.gz"
,
traceId
);
final
Container
.
ExecResult
checkExportedFileResult
=
oapContainer
.
execInContainer
(
"/bin/
ba
sh"
,
"-c"
,
lsExportedFileShell
);
final
Container
.
ExecResult
checkExportedFileResult
=
oapContainer
.
execInContainer
(
"/bin/sh"
,
"-c"
,
lsExportedFileShell
);
LOGGER
.
info
(
"check exported file result: {}"
,
checkExportedFileResult
);
...
...
tools/coverage/report.sh
浏览文件 @
8e6a527f
...
...
@@ -28,6 +28,11 @@ ls -alh "${JACOCO_HOME}"
for
exec_data
in
"
${
JACOCO_HOME
}
"
/
*
.exec
;
do
exec_data
=
${
exec_data
/*\//
}
exec_data
=
${
exec_data
/.exec/
}
sudo rm
-rf
"
${
JACOCO_HOME
}
"
/classes/
"
${
exec_data
}
"
/org/apache/skywalking/oap/server/core/query/entity
||
true
sudo rm
-rf
"
${
JACOCO_HOME
}
"
/classes/
"
${
exec_data
}
"
/org/apache/skywalking/testcase
||
true
sudo rm
-rf
"
${
JACOCO_HOME
}
"
/classes/
"
${
exec_data
}
"
/org/apache/skywalking/e2e
||
true
java
-jar
"
${
JACOCO_HOME
}
"
/jacococli.jar report
\
--classfiles
"
${
JACOCO_HOME
}
"
/classes/
"
$exec_data
"
\
--xml
=
/tmp/report-
"
$exec_data
"
.xml
\
...
...
tools/profile-exporter/profile_exporter.sh
浏览文件 @
8e6a527f
#!/usr/bin/env
ba
sh
#!/usr/bin/env sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录