-
Notifications
You must be signed in to change notification settings - Fork 157
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
Ensure MESSAGE.enforce() runs for MESSAGE_MACRO #613
Conversation
Prior to implementing a fix, the "nightly" CI workflow, temporarily enabled, fails: https://github.com/iiasa/message_ix/runs/6593114663#step:9:64 —as seen on the scheduled runs on |
Codecov Report
@@ Coverage Diff @@
## main #613 +/- ##
=======================================
- Coverage 93.0% 93.0% -0.1%
=======================================
Files 43 43
Lines 3375 3374 -1
=======================================
- Hits 3139 3138 -1
Misses 236 236
|
This ensures its .enforce() method is used on .run()
Now with the fix, the "nightly" CI workflow succeeds: https://github.com/iiasa/message_ix/runs/6593565149?check_suite_focus=true#step:9:42 (With this comment, I am making this fact visible to whoever reviews the PR.) |
I've restarted one flaky test (failure is the in the R notebook, so unrelated), but otherwise this is complete. So now I'll request a review, with both the failing and passing runs visible. |
LGTM - elegant solution to reduce code duplication, but does introduce the diamond problem. For now let's just note that here. I highly doubt we will ever run into it given we do not touch these classes often. A pythonic resolution to this for future searchers can be found here (if it ever becomes a problem). Happy to merge as is - should we ignore the tutorial failure? |
all tests pass, merging |
@gidden —thanks for the review, but the merge was a little premature. Like the comments/description said, I was trying to demonstrate the simple workflow for running the nightly tests on a PR branch. Now we've skipped from step (7) to (9), missing (8), so changes from the "TEMPORARY" commit now appear on I'll revert and see if I can fix. |
Merging #613 unintentionally enabled the "nightly" workflow for all future PR commits. Disable again.
Merging #613 unintentionally enabled the "nightly" workflow for all future PR commits. Disable again.
Done via #614. |
Closes #591 by ensuring that the MESSAGE.enforce() method, ensuring consistency of internal sets and parameters, is called when a scenario is solved using the MESSAGE_MACRO class.
Note that this demonstrates the workflow described at #603 (comment):
How to review
PR checklist
Add, expand, or update documentation.N/A, fix bug to restore intended/documented behaviour