作业超出最大日志长度,并且已终止

我的travis构建似乎正在创建大量的空日志输出。这仅在我在travis上运行时发生,而在本地计算机上手动运行任何测试时则不会发生。

我的Travis文件如下所示: https://github.com/dickreuter/neuron_poker/blob/master/.travis.yml

language: python


python:
  - "3.6"

os:
  - linux

install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MINICONDA_OS=Linux; else MINICONDA_OS=MacOSX; fi
  - wget https://repo.anaconda.com/miniconda/Miniconda3-latest-$MINICONDA_OS-x86_64.sh -O miniconda.sh
  - bash miniconda.sh -b -p "$HOME"/miniconda
  - source "$HOME"/miniconda/etc/profile.d/conda.sh
  - conda config --set always_yes yes --set changeps1 no --set auto_update_conda false
  - pip install requirements.txt
  - export LANG=en_US.UTF-8
  - export COVERAGE_DIR=":$HOME/htmlcov"
  - printenv | sort

install:
  - pip install -r requirements.txt
# command to run tests
script: pytest --log-cli-level=warning

after_success:
  - codecov

输出可以在这里看到: https://travis-ci.com/dickreuter/neuron_poker/builds/134819176 它以“作业超出最大日志长度,并且已终止”结束。

任何建议都值得赞赏,我如何避免这种似乎无处可得的大日志输出。

zhangxp_yaootaa 回答:作业超出最大日志长度,并且已终止

https://travis-ci.community/t/the-job-exceeded-the-maximum-log-length-and-has-been-terminated/3635

错误消息很清楚。

减少构建产生的输出数量。

例如在您的情况下,请减少警告生成的数量,因为它们会占用大部分输出。

https://docs.pytest.org/en/latest/logging.html


我有同样的错误。但是我通过减少输出日志解决了我的问题。

本文链接:https://www.f2er.com/3167100.html

大家都在问