-
-
Notifications
You must be signed in to change notification settings - Fork 559
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
Removing the macos-12 runner #4520
Removing the macos-12 runner #4520
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4520 +/- ##
========================================
Coverage 99.42% 99.42%
========================================
Files 299 299
Lines 22715 22715
========================================
Hits 22584 22584
Misses 131 131 ☔ View full report in Codecov by Sentry. |
Converting to a draft while I take a look at the failure. It does appear to be repeatable |
It looks like it's coming from the MLIR stuff, since Python 3.11 on macOS is the only Python version where it's enabled |
Yeah it looks like it would not have been attempted in the old one with macos-12: if (not sys.version_info[:2] == (3, 11)) or mac_ver < 13:
warnings.warn(
(
"IREE is only supported on MacOS 13 (or higher) and Python"
"version 3.11. Setting PYBAMM_IDAKLU_EXPR_IREE=OFF."
),
stacklevel=2,
)
return "OFF" |
@agriyakhetarpal The version of IREE used before was a nightly build not a stable build, so I will try using the stable one instead |
@@ -40,7 +40,7 @@ def set_iree_state(): | |||
# iree-compiler is currently only available as a wheel on macOS 13 (or | |||
# higher) and Python version 3.11 | |||
mac_ver = int(platform.mac_ver()[0].split(".")[0]) | |||
if (not sys.version_info[:2] == (3, 11)) or mac_ver < 13: | |||
if (not sys.version_info[:2] == (3, 11)) or mac_ver < 14: |
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.
Temporary fix to make this work. I will create an issue for it
@agriyakhetarpal Let me know if this temporary fix is acceptable. I created this issue for solving the MacOS-13 issue #4521 |
Yes, I think we can't do much about this, so this is acceptable for me |
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.
Ah, I didn't realise my review was dismissed. I'm personally not a fan of this setting (we experimented with it and later removed it in the pybamm-cookie
repo), since the "Require conversation resolution before merging" option worked well.
Except I have seen a bunch of PRs get merged with real changes that never got reviewed due to the lack of having this setting. It is a necessary setting for a good project |
Sure, let's keep this in that case, then! |
* Removing the macos-12 runner * Update to latest IREE stable release * Try a different stable release * Change jax version * last attempt before reverting jax-iree changes * Hack to make keep this running
Description
The macos-12 runner is being deprecated in December. This switches to the macos-13 runner
Key checklist:
$ pre-commit run
(or$ nox -s pre-commit
) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
(or$ nox -s tests
)$ python run-tests.py --doctest
(or$ nox -s doctests
)You can run integration tests, unit tests, and doctests together at once, using
$ python run-tests.py --quick
(or$ nox -s quick
).Further checks: