Skip to content

Conversation

@bdvllrs
Copy link
Contributor

@bdvllrs bdvllrs commented Jan 26, 2026

Description

Migration rollbacks are not used. Worse, the rollback function are defined in migration script but without being implemented.
This means that the migrator will think that all of the migration script can safely be rollbacked when actually they cannot.

I should have probably made the rollback function opt-in in the migration scrip generation CLI rather than opt-out.

Anyway, because the functionality is not used, this PR removes it: less code to maintain and less confusion with what rollbacks are and avoid weird bugs with Python 3.13 and cloudpickle.

This also removes an additional dependency for migrations.

What problem does this change solve?

What issue or task does this change relate to?

Additional notes

As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/

By opening this pull request, I affirm that all authors agree to the Contributor License Agreement.


📚 Documentation preview 📚: https://anemoi-training--830.org.readthedocs.build/en/830/


📚 Documentation preview 📚: https://anemoi-graphs--830.org.readthedocs.build/en/830/


📚 Documentation preview 📚: https://anemoi-models--830.org.readthedocs.build/en/830/

@github-project-automation github-project-automation bot moved this to To be triaged in Anemoi-dev Jan 26, 2026
@bdvllrs bdvllrs requested a review from anaprietonem January 26, 2026 10:12
@github-actions github-actions bot added models documentation Improvements or additions to documentation enhancement New feature or request and removed models labels Jan 26, 2026
@bdvllrs bdvllrs added the ATS Approval Needed Approval needed by ATS label Jan 26, 2026
@anaprietonem anaprietonem added ATS Approved Approved by ATS and removed ATS Approval Needed Approval needed by ATS labels Feb 3, 2026
Copy link
Contributor

@anaprietonem anaprietonem left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks @bdvllrs !

I have triggered the integration tests https://github.com/ecmwf/anemoi-core/actions/runs/21623094478 - after those pass it should be good to get this one in

@github-project-automation github-project-automation bot moved this from To be triaged to For merging in Anemoi-dev Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ATS Approved Approved by ATS documentation Improvements or additions to documentation enhancement New feature or request models

Projects

Status: For merging

Development

Successfully merging this pull request may close these issues.

3 participants