-
Notifications
You must be signed in to change notification settings - Fork 34
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
Clean up Materials migration branch #189
Clean up Materials migration branch #189
Conversation
@macflo8, this and #188 look good, thank you! One thing I notice is that the commit messages do not conform to our code style (see the first bullet). For this |
50d7224
to
61a99cf
Compare
1f95697
to
90293a6
Compare
@macflo8, I've migrated the required functions now and cleaned up several imports. However, there's still work left to be done: the code quality check (as you analyzed) should be the first, but you also have a |
Thanks, @glatterf42 for taking care of that 🙏🏻 I will have a look at the materials docs. |
The materials doc file is now moved and the code quality checks are passing. Do you agree to merge this PR @khaeru @glatterf42 ? |
Looking at step (9) in our migration guide:
… I see the following things:
Once we address these items, then we can make a simultaneous approval of both PRs, and then perform step (9). |
2ca755e
to
ae1b89d
Compare
Change data paths from message-ix-models to message_data for some files
* Migrate already-present functions to common location * Exclude that location from ruff :( * Adapt imports in material and legacy reporting
Move doc.rst in material folder, rename to index.rst and pull updated contents from branch "migrate-materials-tidy"
c59447b
to
63ec181
Compare
Thanks @khaeru!
|
Please have a look at these past commits to the file, particularly this one and this one. Something similar and short should be fine. Please add the commit to this branch; then it will automatically be included for #188 as well. |
Thanks, this is looking good now. Please open a new issue to mention and track that the materials team will provide tests at a later date (ideally within a few weeks or months). @khaeru, would we want to exclude the new files from coverage (to keep the test coverage apparently high) or are we fine with the reduction in coverage (as we were for the nexus module)? Either way, I think we can then approve this PR and merging this branch to the first migration branch hopefully resolves the code quality issues there, too. |
I think we ought to be honest, so better to accept the reduction. |
The tracking issue for tests and other pending items is now linked in the PR checklist. I will merge the PR once you approve @glatterf42 @khaeru. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please go ahead!
We should use the "merge commit" strategy for both PRs (i.e. not squash-and-merge or rebase-and-merge).
Once this one is merged, we will see the CI on #188 re-run and should check for the same outcome we currently see here.
This separate branch includes commits to tidy and make MESSAGEix-Materials run on message-ix-models.
How to review
PR checklist
- [ ] Continuous integration checks all ✅Not possible due to missing tests- Add or expand tests; coverage checks both ✅See Clean up Materials migration branch #189 (comment); will be handled via Test and improve.model.material
#194