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

fix: use copy(v) which works also on str, instead of v.copy() which doesn't #5417

Merged
merged 12 commits into from
Nov 26, 2024

Conversation

corneliusroemer
Copy link
Contributor

@corneliusroemer corneliusroemer commented Jul 18, 2024

resolves #5416
resolves #3404 (closed because stale, not because fixed)

Bug was possibly introduced in #3344

@msarahan @isuruf I think you are best acquainted with this part of the code base. I don't really know what's going on here - but this workaround fixes the bug for my use case.

Checklist - did you ...

Will fill out checklist if it's likely this will get merged

  • 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?

…oesn't

resolves conda#5416
resolves conda#3404 (closed because stale, not because fixed)

Bug was possibly introduced in conda#3344
@corneliusroemer corneliusroemer requested a review from a team as a code owner July 18, 2024 21:48
@conda-bot
Copy link
Contributor

We require contributors to sign our Contributor License Agreement and we don't have one on file for @corneliusroemer.

In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature, merge the PR (conda/infrastructure#965), and ping the bot to refresh the PR.

Copy link

codspeed-hq bot commented Jul 18, 2024

CodSpeed Performance Report

Merging #5417 will not alter performance

Comparing corneliusroemer:fix-str-copy (8f3f22c) with 24.11.x (1d4235a)

Summary

✅ 5 untouched benchmarks

@travishathaway
Copy link
Contributor

@conda-bot check

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jul 19, 2024
@travishathaway
Copy link
Contributor

@corneliusroemer,

Thanks for opening this. While we wait for the others to chime in, it would be really nice if you could add both a regression test for this and a news file entry. The regression test could go in tests/test_variants.py. We just need to test the _combined_spec_dictionaries function.

The tricky part is finding the exact data to feed into the function to recreate the stacktrace, but I hope that you might be able to generate that seeing that you can recreate this issue yourself.

Let us know if you need any help with that.

@corneliusroemer
Copy link
Contributor Author

Thanks @travishathaway! Happy to add news and try to get a test working - just wanted to check I'd not be wasting my time.

beckermr and others added 3 commits November 15, 2024 18:53
* fix: catch user errors in `distribute_variants`

* fix: catch a few more SystemExits

* test: add test to ensure undefine jinja2 is OK

* doc: add news
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](astral-sh/ruff-pre-commit@v0.7.3...v0.7.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@beckermr
Copy link
Contributor

Please add a test and news, and then we can merge. This PR won't make a version of conda-build until next year.

@beckermr
Copy link
Contributor

OK @conda/builds-tools This one is ready for review!

This bug is serious enough that it may make sense to include it as a bug fix release for 24.11. Thoughts?

kenodegard
kenodegard previously approved these changes Nov 26, 2024
@kenodegard kenodegard changed the base branch from main to 24.11.x November 26, 2024 13:32
@kenodegard kenodegard dismissed their stale review November 26, 2024 13:32

The base branch was changed.

@beckermr beckermr enabled auto-merge (squash) November 26, 2024 13:41
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
7 participants