我的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它以“作业超过了最大日志长度,并且已经被终止”结束。
任何建议,我都很感激,我如何可以避免这个大的日志输出,似乎是从哪里来的。
发布于 2020-01-17 10:22:24
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://stackoverflow.com/questions/58692605
复制相似问题