-
Notifications
You must be signed in to change notification settings - Fork 426
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
conda build has non-zero exit status despite successful build #5167
Comments
@sebp hm I was unable to replicate this behavior, are you able to provide more context? the commands you ran? |
I'm not the original poster, and I already reverted to the previous version of conda-build in my workflows, but my command (running on Windows) was something like the following:
I didn't debug fully, but I got extraneous output that looked like the output path:
Furthermore, the following command, which is supposed to output the output path also failed in some way:
Sorry to be vague, and hopefully some of this helps. This was only occurring on a CI that took around 30+ minutes to get to this point, so I punted rather quickly once I saw others were having this same issue. |
I just ran "conda build" using the conda config I posted above. I originally encountered the problem because builds on GitHub Actions failed. See the output below:
|
I started running into this on Friday on this repository's GitHub Actions: https://github.com/anaconda-distribution/percy/actions I've determined locally this morning that if a
What makes matters worse (and how I ran into this in |
Upon further testing, I think the pytest warnings might be a bit of a red herring. At @JeanChristopheMorinPerso's suggestion, I added a
And it looks like the test itself produced a 0.
But |
|
I should note that I hit this issue even with
(Its an internal repository but I can certainly share this with the conda maintainers) EDIT: Entirely possible we're looking at two different issues surfacing in the same way. |
@jaimergp In my case, I am definitely runing with Despite this, I get error messages like this (which have confused me). Maybe some wrapper is not launching properly.
|
You are correct, the import re
import sys
from conda_build.cli.main_build import execute
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute()) Executing |
What happened?
When building a recipe with conda-build version 24.1.0, the return status is non-zero despite the build being successful. This does not happen with conda-build version 3.28.4.
Conda Details
conda info
conda config
conda list
# Name Version Build Channel _libgcc_mutex 0.1 main defaults _openmp_mutex 5.1 1_gnu defaults anaconda-anon-usage 0.4.3 py311hfc0e8ea_100 defaults anaconda-client 1.12.2 py311h06a4308_0 defaults archspec 0.2.1 pyhd3eb1b0_0 defaults attrs 23.1.0 py311h06a4308_0 defaults beautifulsoup4 4.12.2 py311h06a4308_0 defaults boltons 23.0.0 py311h06a4308_0 defaults brotli-python 1.0.9 py311h6a678d5_7 defaults bzip2 1.0.8 h7b6447c_0 defaults c-ares 1.19.1 h5eee18b_0 defaults ca-certificates 2023.12.12 h06a4308_0 defaults certifi 2023.11.17 py311h06a4308_0 defaults cffi 1.16.0 py311h5eee18b_0 defaults chardet 4.0.0 py311h06a4308_1003 defaults charset-normalizer 2.0.4 pyhd3eb1b0_0 defaults click 8.1.7 py311h06a4308_0 defaults conda 23.11.0 py311h06a4308_0 defaults conda-build 24.1.0 py311h06a4308_0 defaults conda-content-trust 0.2.0 py311h06a4308_0 defaults conda-index 0.4.0 pyhd3eb1b0_0 defaults conda-libmamba-solver 23.12.0 pyhd3eb1b0_1 defaults conda-package-handling 2.2.0 py311h06a4308_0 defaults conda-package-streaming 0.9.0 py311h06a4308_0 defaults cryptography 41.0.7 py311hdda0065_0 defaults defusedxml 0.7.1 pyhd3eb1b0_0 defaults distro 1.8.0 py311h06a4308_0 defaults filelock 3.13.1 py311h06a4308_0 defaults fmt 9.1.0 hdb19cb5_0 defaults icu 73.1 h6a678d5_0 defaults idna 3.4 py311h06a4308_0 defaults jinja2 3.1.3 py311h06a4308_0 defaults jsonpatch 1.32 pyhd3eb1b0_0 defaults jsonpointer 2.1 pyhd3eb1b0_0 defaults jsonschema 4.19.2 py311h06a4308_0 defaults jsonschema-specifications 2023.7.1 py311h06a4308_0 defaults jupyter_core 5.5.0 py311h06a4308_0 defaults krb5 1.20.1 h143b758_1 defaults ld_impl_linux-64 2.38 h1181459_1 defaults libarchive 3.6.2 h6ac8c49_2 defaults libcurl 8.4.0 h251f7ec_1 defaults libedit 3.1.20230828 h5eee18b_0 defaults libev 4.33 h7f8727e_1 defaults libffi 3.4.4 h6a678d5_0 defaults libgcc-ng 11.2.0 h1234567_1 defaults libgomp 11.2.0 h1234567_1 defaults liblief 0.12.3 h6a678d5_0 defaults libmamba 1.5.3 haf1ee3a_0 defaults libmambapy 1.5.3 py311h2dafd23_0 defaults libnghttp2 1.57.0 h2d74bed_0 defaults libsolv 0.7.24 he621ea3_0 defaults libssh2 1.10.0 hdbd6064_2 defaults libstdcxx-ng 11.2.0 h1234567_1 defaults libuuid 1.41.5 h5eee18b_0 defaults libxml2 2.10.4 hf1b16e4_1 defaults lz4-c 1.9.4 h6a678d5_0 defaults markupsafe 2.1.3 py311h5eee18b_0 defaults menuinst 2.0.1 py311h06a4308_1 defaults more-itertools 10.1.0 py311h06a4308_0 defaults nbformat 5.9.2 py311h06a4308_0 defaults ncurses 6.4 h6a678d5_0 defaults openssl 3.0.13 h7f8727e_0 defaults packaging 23.1 py311h06a4308_0 defaults patch 2.7.6 h7b6447c_1001 defaults patchelf 0.17.2 h6a678d5_0 defaults pcre2 10.42 hebb0a14_0 defaults pip 23.3.1 py311h06a4308_0 defaults pkginfo 1.9.6 py311h06a4308_0 defaults platformdirs 3.10.0 py311h06a4308_0 defaults pluggy 1.0.0 py311h06a4308_1 defaults psutil 5.9.0 py311h5eee18b_0 defaults py-lief 0.12.3 py311h6a678d5_0 defaults pybind11-abi 4 hd3eb1b0_1 defaults pycosat 0.6.6 py311h5eee18b_0 defaults pycparser 2.21 pyhd3eb1b0_0 defaults pyopenssl 23.2.0 py311h06a4308_0 defaults pysocks 1.7.1 py311h06a4308_0 defaults python 3.11.5 h955ad1f_0 defaults python-dateutil 2.8.2 pyhd3eb1b0_0 defaults python-fastjsonschema 2.16.2 py311h06a4308_0 defaults python-libarchive-c 2.9 pyhd3eb1b0_1 defaults pytz 2023.3.post1 py311h06a4308_0 defaults pyyaml 6.0.1 py311h5eee18b_0 defaults readline 8.2 h5eee18b_0 defaults referencing 0.30.2 py311h06a4308_0 defaults reproc 14.2.4 h295c915_1 defaults reproc-cpp 14.2.4 h295c915_1 defaults requests 2.31.0 py311h06a4308_0 defaults requests-toolbelt 1.0.0 py311h06a4308_0 defaults rpds-py 0.10.6 py311hb02cf49_0 defaults ruamel.yaml 0.17.21 py311h5eee18b_0 defaults setuptools 68.2.2 py311h06a4308_0 defaults six 1.16.0 pyhd3eb1b0_1 defaults soupsieve 2.5 py311h06a4308_0 defaults sqlite 3.41.2 h5eee18b_0 defaults tk 8.6.12 h1ccaba5_0 defaults tqdm 4.65.0 py311h92b7b1e_0 defaults traitlets 5.7.1 py311h06a4308_0 defaults truststore 0.8.0 py311h06a4308_0 defaults tzdata 2023c h04d1e81_0 defaults urllib3 1.26.18 py311h06a4308_0 defaults wheel 0.41.2 py311h06a4308_0 defaults xz 5.4.5 h5eee18b_0 defaults yaml 0.2.5 h7b6447c_0 defaults yaml-cpp 0.8.0 h6a678d5_0 defaults zlib 1.2.13 h5eee18b_0 defaults zstandard 0.19.0 py311h5eee18b_0 defaults zstd 1.5.5 hc292b87_0 defaults
Additional Context
Example recipe:
The text was updated successfully, but these errors were encountered: