首页 > 解决方案 > 单元测试卡在 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

这是我得到的最后一个错误日志。我现在不知道如何处理这个问题,并且很高兴得到你关于这个问题的所有信息。

我做的事情:

我们在所有 Jenkins 中都在一个代理上运行。它也经过了测试,但只运行这个构建,没有其他并行构建。

标签: linuxjenkinsbuildcontinuous-integrationpytest

解决方案


推荐阅读