Skip to content

Conversation

trexfeathers
Copy link
Contributor

@trexfeathers trexfeathers commented Aug 22, 2025

v3.12 has been patched: v3.12.3. This patch should be propagated to v3.13.x, and also to main.

I created this branch using:

git checkout v3.13.x;
git merge v3.12.x --no-ff;

By propagating to v3.13.x first, we should be able to preserve the original commits and avoid the inevitable merge conflicts that come when using git cherry-pick 1. Since v3.12.x and v3.13.x share a common history, you can see that the only difference is the one we want - the commits from the new patch.

Once the patch release of v3.13 is complete, we can then finish with a normal merge-back from v3.13.x to main.

Merge via a merge commit (not squash)

Footnotes

  1. the alternative: standard merge-back v3.12.x into main. How to then add the desired patch to v3.13.x? Must not merge main into 3.13.x since main includes many other commits that occurred post-3.13-release. Only remaining option is to cherry-pick, which gives the commit(s) new SHA(s), and they conflict when v3.13.x is merged-back into main.

trexfeathers and others added 3 commits August 21, 2025 18:13
* Protect _constraints from elementwise equality.

* Protect cube.py from elementwise equality.

* Fix dumb Constraint eq mistake.

* Protect util from elementwise equality.

* Correct return type for masked_array_equal.

* Protect _structured_array_identitication from elementwise equality.

* Fixes for saver.py

* Protect pp.py from elementwise equality.

* Protect pp_load_rules from elementwise equality.

* Revert "Protect pp.py from elementwise equality."

This reverts commit 864f0d7.

* Protect _concatenate from elementwise NOT equality.

* Protect _constraints from elementwise NOT equality.

* Protect coords.py from elementwise NOT equality.

* Protect cube.py from elementwise NOT equality.

* Protect util from elementwise NOT equality.

* Add structured array test for NumPy elementwise broadcasting error.

* Extra updates for pp_load_rules.py

* What's New entry.

* Expose users to array comparison errors when requested directly, including helpful errors.

* Back out new support for NumPy arrays in AttributeConstraint - inappropriate for patch release.

* Revert change to intersection edge_wrap - will never be comparing 2 arrays.

* Add test coverage for structured array eq with incompatible shapes.

* Test coverage for broadcasting errors in pp_load_rules.

* Common code for comparing attributes in case np arrays.

* Temporary fix for TestLicenseHeaders.

* Don't create a file when testing describe_diff.

* Final tests for attribute comparison.

* Fix any versus all confusion.

* Temporary Nox negation pin - see wntrblm/nox#961. (SciTools#6441)

---------

Co-authored-by: ukmo-ccbunney <[email protected]>
@trexfeathers trexfeathers added the Type: Merge Back Merging a feature branch back to main label Aug 22, 2025
Copy link

codecov bot commented Aug 22, 2025

Codecov Report

❌ Patch coverage is 94.87179% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.93%. Comparing base (5cdcc16) to head (2b09495).
⚠️ Report is 4 commits behind head on v3.13.x.

Files with missing lines Patch % Lines
lib/iris/util.py 90.90% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           v3.13.x    #6669      +/-   ##
===========================================
- Coverage    90.02%   89.93%   -0.10%     
===========================================
  Files           91       91              
  Lines        24783    24411     -372     
  Branches      4710     4555     -155     
===========================================
- Hits         22312    21953     -359     
+ Misses        1700     1692       -8     
+ Partials       771      766       -5     

☔ 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.

@trexfeathers trexfeathers marked this pull request as ready for review August 26, 2025 10:23
@trexfeathers trexfeathers requested a review from bjlittle August 26, 2025 10:24
Copy link
Member

@bjlittle bjlittle left a comment

Choose a reason for hiding this comment

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

@trexfeathers Nice one 🥳

Confirmed this sort-of-merge-back™️ is a combination of PRs #6665 and #6668 (v3.12.x).

So playing forward the v3.12.3 patch onto v3.13.x 👍

@bjlittle bjlittle merged commit 61e30cd into SciTools:v3.13.x Aug 26, 2025
23 checks passed
@trexfeathers
Copy link
Contributor Author

Thanks @bjlittle!

@trexfeathers trexfeathers mentioned this pull request Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Merge Back Merging a feature branch back to main
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants