建议github构建workflow增加unit-test失败上传log4j日志的配置
- Dominant language
- Java
- Stars
- 41.6k
- Forks
- 26.4k
- Avg merge
- 15h 13m
- Merged PRs (30d)
- 4
Description
有些单元测试github构建失败时只在log4j日志输出了错误信息,console上没有任何提示,无法定位问题,比如HeartbeatHandlerTest的testServerHeartbeat方法,这些问题本地单元测试多次也没能重现:
1. 3.0的github构建日志
```
2021-09-25T10:17:40.0085194Z [INFO] -------------------------------------------------------
2021-09-25T10:17:40.0086161Z [INFO] T E S T S
2021-09-25T10:17:40.0086846Z [INFO] -------------------------------------------------------
2021-09-25T10:17:41.5136723Z [INFO] Running org.apache.dubbo.remoting.exchange.support.header.HeartbeatHandlerTest
2021-09-25T10:17:42.8678103Z Server bind successfully
2021-09-25T10:17:42.9604489Z connect count 1
2021-09-25T10:17:44.9882458Z Server bind successfully
2021-09-25T10:17:44.9965565Z ++++++++++++++ disconnect count 0
2021-09-25T10:17:44.9966140Z ++++++++++++++ connect count 1
2021-09-25T10:17:47.0152440Z Server bind successfully <== 从此处开始等待了87分钟,但是相关情况只在log4j日志有,github看不到
2021-09-25T11:44:45.0661784Z Terminate batch job (Y/N)?
2021-09-25T11:44:50.4730720Z ##[error]The action has timed out.
```
2. master的github构建日志
```
2021-09-25T14:00:34.4513058Z [INFO] -------------------------------------------------------
2021-09-25T14:00:34.4513649Z [INFO] T E S T S
2021-09-25T14:00:34.4514082Z [INFO] -------------------------------------------------------
2021-09-25T14:00:35.3461423Z [INFO] Running org.apache.dubbo.remoting.exchange.support.header.HeartbeatHandlerTest
2021-09-25T14:00:36.2617537Z Server bind successfully
2021-09-25T14:00:36.3014177Z connect count 1
2021-09-25T14:00:38.3370599Z Server bind successfully
2021-09-25T14:00:38.3521421Z ++++++++++++++ disconnect count 0
2021-09-25T14:00:38.3523615Z ++++++++++++++ connect count 1
2021-09-25T14:00:40.3670466Z Server bind successfully <== 从此处开始等待了47分钟,但是相关情况只在log4j日志有,github看不到
2021-09-25T14:47:51.2594748Z Terminate batch job (Y/N)?
```
Contributor guide
Assessment
This issue has not been assessed yet.