Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure PIP install fails fast and dump logs on failure #828

Closed
arcivanov opened this issue Oct 12, 2021 · 0 comments · Fixed by #829
Closed

Make sure PIP install fails fast and dump logs on failure #828

arcivanov opened this issue Oct 12, 2021 · 0 comments · Fixed by #829

Comments

@arcivanov
Copy link
Member

PIP install batches should fail fast otherwise it's unclear what is the nature of the failure:

[DEBUG] Executing command: '/Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0/bin/python3' '-m' 'pip.__main__' 'install' '--upgrade' '--upgrade-strategy' 'only-if-needed' 'coverage~=6.0' 'coveralls~=2.1' 'flake8~=3.7' 'pdoc3>=0.8.3' 'pypandoc~=1.4' 'setuptools>=38.6.0' 'twine>=1.15.0' 'unittest-xml-reporting~=3.0.4' 'wheel>=0.34.0'
[DEBUG] Executing command: '/Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0/bin/python3' '-m' 'pip.__main__' 'install' 'cram' 'sphinx'
------------------------------------------------------------
BUILD FAILED - Unable to install plugin packages into /Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0. Please see '/Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0/install.log' for full details:
	Collecting sphinxcontrib-jsmath
	  Downloading sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl (5.1 kB)
	Collecting pytz>=2015.7
	  Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB)
	Collecting MarkupSafe>=2.0
	  Downloading MarkupSafe-2.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (13 kB)
	Collecting urllib3<1.27,>=1.21.1
	  Downloading urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
	Collecting certifi>=2017.4.17
	  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
	Collecting idna<4,>=2.5
	  Downloading idna-3.2-py3-none-any.whl (59 kB)
	Collecting charset-normalizer~=2.0.0
	  Downloading charset_normalizer-2.0.7-py3-none-any.whl (38 kB)
	Collecting pyparsing>=2.0.2
	  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
	Installing collected packages: urllib3, pytz, pyparsing, MarkupSafe, idna, charset-normalizer, certifi, sphinxcontrib-serializinghtml, sphinxcontrib-qthelp, sphinxcontrib-jsmath, sphinxcontrib-htmlhelp, sphinxcontrib-devhelp, sphinxcontrib-applehelp, snowballstemmer, requests, Pygments, packaging, Jinja2, imagesize, docutils, babel, alabaster, sphinx, cram
	Successfully installed Jinja2-3.0.2 MarkupSafe-2.0.1 Pygments-2.10.0 alabaster-0.7.12 babel-2.9.1 certifi-2021.10.8 charset-normalizer-2.0.7 cram-0.7 docutils-0.17.1 idna-3.2 imagesize-1.2.0 packaging-21.0 pyparsing-2.4.7 pytz-2021.3 requests-2.26.0 snowballstemmer-2.1.0 sphinx-4.2.0 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.0 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 urllib3-1.26.7
	WARNING: You are using pip version 21.2.4; however, version 21.3 is available.
	You should consider upgrading via the '/Users/runner/work/pybuilder/pybuilder/.pybuilder/plugins/cpython-3.7.12.final.0/bin/python3 -m pip install --upgrade pip' command. (pybuilder/install_utils.py:102)
------------------------------------------------------------
Build finished at 2021-10-12 02:23:20
Build took 19 seconds (19605 ms)
arcivanov added a commit to arcivanov/pybuilder that referenced this issue Oct 12, 2021
Removed .commiterrc
GHA workflow will now dump logs on failure

fixes pybuilder#828
arcivanov added a commit to arcivanov/pybuilder that referenced this issue Oct 12, 2021
Removed .commiterrc
GHA workflow will now dump logs on failure

fixes pybuilder#828
arcivanov added a commit to arcivanov/pybuilder that referenced this issue Oct 12, 2021
Removed .commiterrc
GHA workflow will now dump logs on failure

fixes pybuilder#828
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant