linux - 单元测试卡在 Jenkins 构建中
问题描述
18:23:38 [Pipeline] stage
18:23:38 [Pipeline] { (Unit tests)
18:23:38 [Pipeline] dir
18:23:38 Running in /home/ec2-user/jenkins/workspace/inference-pipeline_general/inference-
pipeline
18:23:38 [Pipeline] {
18:23:38 [Pipeline] withPythonEnv
18:23:38 [Pipeline] {
18:23:38 [Pipeline] sh
18:23:39 + make test
18:23:39 pytest --maxfail=1 --full-trace --cov-report term-missing:skip-covered --cov-fail-
under=50 --cov app
18:23:40 ============================= test session starts ==============================
18:23:40 platform linux -- Python 3.8.9, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
18:23:40 rootdir: /home/ec2-user/jenkins/workspace/inference-pipeline_general/inference-
pipeline, configfile: pytest.ini
18:23:40 plugins: anyio-3.3.2, respx-0.17.1, requests-mock-1.9.3, timeout-1.4.2, mock-3.6.1,
httpx-0.13.0, docker-tools-3.1.0, cov-2.12.1, click-1.0.2, asyncio-0.15.1
18:23:40 /home/ec2-user/jenkins/workspace/inference-pipeline_general/inference-pipeline
18:23:40 collected 116 items
18:23:40
18:23:40 tests/integration/test_cracks.py x [ 0%]
18:23:43 tests/integration/test_fincomplaints.py xxxxxxxxx [ 8%]
18:23:43 tests/integration/test_onfido.py xx [ 10%]
18:23:47 tests/unit/test_cracks.py xx [ 12%]
18:23:47 tests/unit/test_crosssell.py . [ 12%]
18:23:47 tests/unit/test_data_reader.py ............... [ 25%]
18:23:47 tests/unit/test_fin_complaints.py . [ 26%]
19:18:47 tests/unit/test_general.py xxxxxxxxxxxxxxxxxxxxxxwrapper script does not seem to be
touching the log file in /home/ec2-user/jenkins/workspace/inference-
pipeline_general/inference-pipeline@tmp/durable-61f71653
19:18:47 (JENKINS-48300: if on an extremely laggy filesystem, consider -
Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=86400)
19:18:47 [Pipeline] }
19:18:47 [Pipeline] // withPythonEnv
19:18:47 [Pipeline] }
19:18:47 [Pipeline] // dir
19:18:47 [Pipeline] }
19:18:47 [Pipeline] // stage
19:18:47 [Pipeline] stage
这是我得到的最后一个错误日志。我现在不知道如何处理这个问题,并且很高兴得到你关于这个问题的所有信息。
我做的事情:
- Java 堆内存正常并增加到最大值
- Jenkins 主实例中的内存和 CPU 使用情况也正常(在运行此构建时检查)
- HEART_BEAT 错误建议也适用
- 这些测试在本地检查并成功完成。
我们在所有 Jenkins 中都在一个代理上运行。它也经过了测试,但只运行这个构建,没有其他并行构建。
解决方案
推荐阅读
- python - 如何使用 python 比较两个不同的 csv 文件?
- docker - 如何将一个容器的输出文件夹映射到另一个容器的挂载文件夹?
- python - Python如何在不导入的情况下调用类方法
- apache-iotdb - Apache IoTDB 版本 0.12.1 中的“喜欢”sql 语法错误
- google-sheets - 如何根据不同的列合并行(可以查询吗?)
- windows - 有没有一种方法可以传递 CMD 窗口参数,比如可以从桌面快捷方式设置?
- angular - 带有子表行的 cdk 虚拟滚动视口
- scala - 如何在没有组 ID 的情况下找到指定的主题的 kafka 消费者
- python - Python pyqt5 plotwidget 上的多个 X 轴 - 在一个 X 轴上应用线性刻度,在另一个 X 轴上应用对数刻度
- javascript - ASP.NET MVC,渲染时调用javascript,JQuery元素变成数组