Skip to content

Conversation

jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Jul 21, 2025

Description

Small fix for some environment files in #14911. Reproduces with:

conda install --file tests/env/support/empty_env.yml

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?

@github-project-automation github-project-automation bot moved this to 🆕 New in 🔎 Review Jul 21, 2025
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jul 21, 2025
Copy link

codspeed-hq bot commented Jul 21, 2025

CodSpeed Instrumentation Performance Report

Merging #15026 will not alter performance

Comparing jaimergp:fix-tuple-list-plus (32a9438) with main (263a982)1

Summary

✅ 21 untouched benchmarks

Footnotes

  1. No successful run was found on main (41e03b1) during the generation of this report, so 263a982 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@jaimergp jaimergp marked this pull request as ready for review July 21, 2025 09:40
@jaimergp jaimergp requested a review from a team as a code owner July 21, 2025 09:40
@jaimergp jaimergp requested a review from soapy1 July 21, 2025 09:40
kenodegard
kenodegard previously approved these changes Jul 21, 2025
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Approved in 🔎 Review Jul 21, 2025
soapy1
soapy1 previously approved these changes Jul 21, 2025
Copy link
Contributor

@soapy1 soapy1 left a comment

Choose a reason for hiding this comment

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

It looks like the root of this issue is the EnvironmentYaml env spec plugin is not respecting the type annotations of the EnvironmentConfig class. I think this change is ok to make the model more resilient, but I think it would also be helpful to update the EnvironmentYaml plugin to return the correct type.

Can we do that in this PR as well? https://github.com/conda/conda/blob/main/conda/env/env.py#L271 needs to be updated to be config = EnvironmentConfig(channels=tuple(self.channels)).

jaimergp and others added 2 commits July 21, 2025 17:42
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
Co-authored-by: Sophia Castellarin <scastellarin@quansight.com>
@jaimergp jaimergp dismissed stale reviews from soapy1 and kenodegard via e1f4b57 July 21, 2025 17:43
@jaimergp
Copy link
Contributor Author

Thanks @soapy1 @kenodegard, I applied your suggestions!

@kenodegard kenodegard merged commit badafa2 into conda:main Jul 21, 2025
206 of 211 checks passed
@github-project-automation github-project-automation bot moved this from ✅ Approved to 🏁 Done in 🔎 Review Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants