-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add conda config
warning docs/message; add duration log for actions
#823
Add conda config
warning docs/message; add duration log for actions
#823
Conversation
✅ Deploy Preview for conda-store ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
6bc4145
to
45b8455
Compare
45b8455
to
b58bb6a
Compare
40e5c7a
to
ee1d14d
Compare
c58eb4a
to
437cc96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not test but the code looks good to me.
The log message may be ambiguous, not sure, but at any rate it does the job of letting the user know that something is up with conda config, which is the main point.
"Note that the output of `conda config --show` displayed below only reflects " | ||
"settings in the conda configuration file, which might be overridden by " | ||
"variables required to be set by conda-store via the environment. Overridden " | ||
f"settings: CONDA_FLAGS={conda_flags}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting three distinct messages from this paragraph:
conda config
shows settings in Conda configuration file- Some of the settings shown may therefore not be accurate because they have been overridden by Conda Store.
- Here are some (all?) of the settings that have been overridden in Conda Store.
Is that accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, these were the three things I was trying to convey. As far as I know these are all of the overridden settings as well.
that are actually used by conda-store. In particular, `conda-store` internally | ||
sets `CONDA_FLAGS=--strict-channel-priority`, overriding the channel priority in | ||
the conda configuration file. Please keep this in mind when using `conda config` | ||
to inspect your conda configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also (and perhaps more frequently) an issue when you view the logs for conda-store since the config is printed there as well. I think you've covered it in those logs already though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just had a minor suggestion, otherwise, this looks great! Thanks @peytondmurray !
Fixes #810.
Description
This PR adds:
conda-store
to override user conda configuration, which should help clear up user uncertainty about the output ofconda config
.Pull request checklist
main
. The ones I expected to pass locally have passed.Notes
pytest conda_store_server/test/test_actions.py::test_action_decorator
- that test specifically checks for the run time information output to stdout that this PR implements.