Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
56c264d1
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 搜索 >>
未验证
提交
56c264d1
编写于
1月 30, 2021
作者:
Z
Zhenxu Ke
提交者:
GitHub
1月 30, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: fix flaky E2E test of Kafka (#6281)
上级
1753e5e0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
6 deletion
+10
-6
.github/workflows/e2e.kafka.yaml
.github/workflows/e2e.kafka.yaml
+2
-2
CHANGES.md
CHANGES.md
+1
-0
test/e2e/e2e-common/src/main/java/org/apache/skywalking/e2e/SkyWalkingAnnotations.java
...java/org/apache/skywalking/e2e/SkyWalkingAnnotations.java
+6
-3
test/e2e/pom.xml
test/e2e/pom.xml
+1
-1
未找到文件。
.github/workflows/e2e.kafka.yaml
浏览文件 @
56c264d1
...
...
@@ -30,13 +30,13 @@ env:
jobs
:
Kafka
:
name
:
${{ matrix.case.name }}
name
:
Kafka (${{ matrix.case.name }})
runs-on
:
ubuntu-latest
timeout-minutes
:
90
strategy
:
matrix
:
case
:
-
name
:
Kafka
-
name
:
Base
class
:
org.apache.skywalking.e2e.kafka.KafkaE2E
-
name
:
Profiling
class
:
org.apache.skywalking.e2e.kafka.KafkaProfileE2E
...
...
CHANGES.md
浏览文件 @
56c264d1
...
...
@@ -11,6 +11,7 @@ Release Notes.
*
Add ElasticSearch 7.10 to test matrix and verify it works.
*
Replace Apache RAT with skywalking-eyes to check license headers.
*
Set up test of Envoy ALS / MetricsService under Istio 1.8.2 to verify Envoy V3 protocol
*
Test: fix flaky E2E test of Kafka.
#### Java Agent
*
The operation name of quartz-scheduler plugin, has been changed as the
`quartz-scheduler/${className}`
format.
...
...
test/e2e/e2e-common/src/main/java/org/apache/skywalking/e2e/SkyWalkingAnnotations.java
浏览文件 @
56c264d1
...
...
@@ -25,6 +25,7 @@ import java.io.IOException;
import
java.lang.reflect.Field
;
import
java.nio.file.Path
;
import
java.nio.file.Paths
;
import
java.time.Duration
;
import
java.util.LinkedList
;
import
java.util.List
;
import
java.util.Objects
;
...
...
@@ -47,6 +48,7 @@ import org.testcontainers.containers.ContainerState;
import
org.testcontainers.containers.DockerComposeContainer
;
import
org.testcontainers.containers.output.Slf4jLogConsumer
;
import
org.testcontainers.containers.wait.strategy.Wait
;
import
org.testcontainers.containers.wait.strategy.WaitStrategy
;
import
static
java
.
util
.
stream
.
Collectors
.
joining
;
import
static
org
.
apache
.
skywalking
.
e2e
.
utils
.
Yamls
.
load
;
...
...
@@ -226,17 +228,18 @@ public final class SkyWalkingAnnotations {
"field cannot be annotated with both ContainerHost and ContainerPort: "
+
field
.
getName
()
);
}
final
WaitStrategy
waitStrategy
=
Wait
.
forListeningPort
().
withStartupTimeout
(
Duration
.
ofMinutes
(
5
));
if
(
field
.
isAnnotationPresent
(
ContainerHost
.
class
))
{
final
ContainerHost
host
=
field
.
getAnnotation
(
ContainerHost
.
class
);
compose
.
withExposedService
(
host
.
name
(),
host
.
port
(),
Wait
.
forListeningPort
()
);
compose
.
withExposedService
(
host
.
name
(),
host
.
port
(),
waitStrategy
);
}
if
(
field
.
isAnnotationPresent
(
ContainerPort
.
class
))
{
final
ContainerPort
port
=
field
.
getAnnotation
(
ContainerPort
.
class
);
compose
.
withExposedService
(
port
.
name
(),
port
.
port
(),
Wait
.
forListeningPort
()
);
compose
.
withExposedService
(
port
.
name
(),
port
.
port
(),
waitStrategy
);
}
if
(
field
.
isAnnotationPresent
(
ContainerHostAndPort
.
class
))
{
final
ContainerHostAndPort
hostAndPort
=
field
.
getAnnotation
(
ContainerHostAndPort
.
class
);
compose
.
withExposedService
(
hostAndPort
.
name
(),
hostAndPort
.
port
(),
Wait
.
forListeningPort
()
);
compose
.
withExposedService
(
hostAndPort
.
name
(),
hostAndPort
.
port
(),
waitStrategy
);
}
}
...
...
test/e2e/pom.xml
浏览文件 @
56c264d1
...
...
@@ -64,7 +64,7 @@
<maven-compiler-plugin.version>
3.8.0
</maven-compiler-plugin.version>
<maven-checkstyle-plugin.version>
3.1.0
</maven-checkstyle-plugin.version>
<testcontainers.version>
1.15.
0
</testcontainers.version>
<testcontainers.version>
1.15.
1
</testcontainers.version>
</properties>
<repositories>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录