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

Quiet conda warnings. #729

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Oct 3, 2024

This fixes failures in the new testing workflow from #690.

Update: the root cause was that rapids-conda-retry is sending 2>&1. The warning from conda is being sent to stderr as intended, but we're getting it in stdout because of rapids-conda-retry behavior. We can still solve this by providing --quiet, without needing to change rapids-conda-retry. The old issue contents below are partially incorrect so I collapsed them:

Old issue contents

Output like this is shown, even with the --json flag to conda:

==> WARNING: A newer version of conda exists. <==
    current version: 24.9.0
    latest version: 24.9.1

Please update conda by running

    $ conda update -n base -c conda-forge conda

The only way to make the output "proper JSON" is to pass --quiet as well.

This seems like unintentional behavior from conda. The docs from conda create --help literally say:

--json                Report all output as json. Suitable for using conda programmatically.

@bdice bdice requested a review from a team as a code owner October 3, 2024 17:16
@bdice bdice requested a review from KyleFromNVIDIA October 3, 2024 17:16
Copy link

@msarahan msarahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annoying, though I must admit I've probably introduced this same kind of error myself over the years.

@bdice
Copy link
Contributor Author

bdice commented Oct 3, 2024

/merge

@rapids-bot rapids-bot bot merged commit 070b880 into rapidsai:branch-24.10 Oct 3, 2024
28 checks passed
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 this pull request may close these issues.

3 participants