Skip to content

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Mar 4, 2025

Description:

Add support for v1 recipes in Build2HostMigrator, and extend the relevant tests. I've also replaced the explicit schema version check with a super() call.

Checklist:

  • Pydantic model updated or no update needed

Cross-refs, links to issues, etc:

From the list on #3642

Copy link

codecov bot commented Mar 4, 2025

Codecov Report

Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 76.29%. Comparing base (c58f988) to head (54dfe9f).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
conda_forge_tick/migrators/cross_compile.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3808      +/-   ##
==========================================
- Coverage   77.73%   76.29%   -1.45%     
==========================================
  Files         136      136              
  Lines       14779    14787       +8     
==========================================
- Hits        11489    11282     -207     
- Misses       3290     3505     +215     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@beckermr beckermr left a comment

Choose a reason for hiding this comment

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

A few things but otherwise looks great! Thank you!

isuruf
isuruf previously requested changes Mar 4, 2025
Copy link
Member

@isuruf isuruf left a comment

Choose a reason for hiding this comment

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

These migrators are for easy transition from conda-build 2 to 3. I think we should drop this mini-migrator.

@mgorny
Copy link
Contributor Author

mgorny commented Mar 5, 2025

Well, either way is fine with me. I've figured out it makes sense to keep it, in case people conda-recipe-manager convert an old recipe to v1. Technically, I suppose with v1 we could rewrite it to use ruamel.yaml, but I don't think there's a point in spending that much effort on it.

@mgorny mgorny requested a review from beckermr March 5, 2025 17:04
@beckermr
Copy link
Contributor

beckermr commented Mar 5, 2025

I agree it can be dropped. For that, we need to remove it from the various bits of the make_migrators file. Once we do that we can merge.

@beckermr beckermr enabled auto-merge March 5, 2025 18:58
@beckermr beckermr dismissed isuruf’s stale review March 5, 2025 18:59

Changes have been addressed.

@beckermr beckermr added this pull request to the merge queue Mar 5, 2025
Merged via the queue into regro:main with commit cf46051 Mar 5, 2025
7 of 8 checks passed
@beckermr beckermr mentioned this pull request Mar 6, 2025
33 tasks
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