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

Pass verbosity level to conda-build, otherwise very hard to debug #1006

Open
corneliusroemer opened this issue Jul 11, 2024 · 0 comments
Open

Comments

@corneliusroemer
Copy link
Member

corneliusroemer commented Jul 11, 2024

I got stuck debugging a bioconda-utils build failure and was surprised that passing --loglevel debug had no impact on the log level of the subcommand conda-build that was run.

To me this appears to be a clear omission that ought to be fixed by passing log level through to relevant, if not all, subcommands that are called by bioconda-utils build.

I think one could add it here to the args for example:

conda_build_cmd = [utils.bin_for('conda-build')]
# - Temporarily reset os.environ to avoid leaking env vars
# - Also pass filtered env to run()
# - Point conda-build to meta.yaml, to avoid building subdirs
with utils.sandboxed_env(whitelisted_env):
cmd = conda_build_cmd + args

See https://matrix.to/#/!MhHkICgthNLZeLiygG:gitter.im/$WeOBUkiNJp1cTuQXp7mOPmZWFqFmO4w5TETB-flZu0k?via=gitter.im&via=matrix.org&via=one.ems.host for context

corneliusroemer added a commit to corneliusroemer/bioconda-docs that referenced this issue Jul 11, 2024
As someone who uses mamba for everything, I didn't realize I had to manually add conda-forge and bioconda channels to `.condarc`

The fact that there's no debug logging for conda possible through bioconda-utils made debugging harder, so this note could help others in the future who similarly use .mambarc but not .condarc

Related to bioconda/bioconda-utils#1006
daler pushed a commit to bioconda/bioconda-docs that referenced this issue Jul 11, 2024
As someone who uses mamba for everything, I didn't realize I had to manually add conda-forge and bioconda channels to `.condarc`

The fact that there's no debug logging for conda possible through bioconda-utils made debugging harder, so this note could help others in the future who similarly use .mambarc but not .condarc

Related to bioconda/bioconda-utils#1006
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

No branches or pull requests

1 participant