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

Stop injecting installed channels that do not exist #274

Merged
merged 22 commits into from
Sep 20, 2023

Conversation

jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Sep 8, 2023

Description

Closes #262

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Sep 8, 2023
@jaimergp jaimergp marked this pull request as ready for review September 13, 2023 16:25
@jaimergp
Copy link
Contributor Author

Ready for review. Failures are from the new test_prune_* tests, which are dealt with in #270.

@jaimergp jaimergp requested a review from jezdez September 13, 2023 21:26
conda_libmamba_solver/solver.py Outdated Show resolved Hide resolved
conda_libmamba_solver/solver.py Outdated Show resolved Hide resolved
conda_libmamba_solver/state.py Outdated Show resolved Hide resolved
@jaimergp
Copy link
Contributor Author

pre-commit.ci autofix

@jaimergp jaimergp added this to the September 2023 release milestone Sep 15, 2023
@jezdez jezdez requested a review from kenodegard September 16, 2023 09:41
@jezdez jezdez changed the title do not inject installed channels that do not exist Stop injecting installed channels that do not exist Sep 16, 2023
Copy link
Member

@jezdez jezdez left a comment

Choose a reason for hiding this comment

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

Adding a new network i/o path into the mix is a little concerning, but we can make it work

conda_libmamba_solver/utils.py Outdated Show resolved Hide resolved
conda_libmamba_solver/utils.py Outdated Show resolved Hide resolved
*in_state.maybe_free_channel(),
)
]
override = (getattr(context, "_argparse_args", None) or {}).get("override_channels")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if conda should have a context flag for override_channels. This is a bit clunky and, unless I am missing a good reason, unnecessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

agreed

I suspect the reasoning was because it would mean users could set it in their condarc and override channel settings set by sys admins

@jaimergp
Copy link
Contributor Author

Ehm, so I moved the tests to a different file and CI workflow to debug things a bit and it passes there. Definitely some kind of side-effect with other test in the upstream suite. Will deselect and we can move on.

@jaimergp jaimergp requested a review from jezdez September 19, 2023 14:36
@jezdez
Copy link
Member

jezdez commented Sep 20, 2023

IMO this is good to go

@jaimergp jaimergp dismissed kenodegard’s stale review September 20, 2023 11:00

Addressed as suggested.

@jaimergp jaimergp merged commit 89859a4 into main Sep 20, 2023
71 checks passed
@jaimergp jaimergp deleted the check-channels-exist branch September 20, 2023 11:12
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Sep 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

UnavailableInvalidChannel: HTTP 404 UNAVAILABLE OR INVALID for channel conda-pkgs <file:///tmp/conda-pkgs>
4 participants