-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
Migrated from miniconda to official python bullseye docker image #3901
Conversation
Thanks @santacodes, happy to keep this as a draft for now for visibility. xref #3879 which needs to be resolved before we are able to come back to this. |
Hey, @santacodes! I wanted to ask if you could finish the pull request. @arjxn-py has also agreed to help review the PR. |
Sure I'll get on it! |
@arjxn-py do you mind if I change the standard |
I don't mind at all @santacodes, feel free to switch to |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3901 +/- ##
========================================
Coverage 99.46% 99.46%
========================================
Files 289 289
Lines 22146 22146
========================================
Hits 22027 22027
Misses 119 119 ☔ View full report in Codecov by Sentry. |
You'd also want to set the docker workflow to temporarily run on this PR |
Also while running unit tests inside the docker container it prompted this - SKIPPED [1] tests/unit/test_solvers/test_idaklu_jax.py:91: Both IDAKLU and JAX are available
SKIPPED [1] tests/unit/test_util.py:91: The JAX solver is not installed I don't know if it has been addressed already but I see the same thing on the CI as well, I think this part of code in @pytest.mark.skipif(pybamm.have_jax(), reason="The JAX solver is not installed")
def test_is_jax_compatible(self):
assert True |
Should I just fix it in this PR or make a new one? Also, the assert inside the function should be |
Feel free to skip login & switch to cli build command temporarily:
if that works.
assert should be true after |
3feef2a
to
ece5813
Compare
Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
@santacodes Just an FYI, force pushing removes the history of what was reviewed. Try not to force push after review has started |
Sorry my commits got messed up between 2 branches, so I had to rebase them 😅 will keep that in mind! |
Co-authored-by: Arjun Verma <arjunverma.oc@gmail.com>
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.
Thanks @santacodes
…amm-team#3901) * migrated to python bullseye * added pybamm user to sudoers * updated docker image to python:3.12-slim-bullseye * Apply suggestions from code review Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com> * Update .github/workflows/docker.yml Co-authored-by: Arjun Verma <arjunverma.oc@gmail.com> * reverted the docker workflow * using uv to generate venv and edited docs --------- Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com> Co-authored-by: Arjun Verma <arjunverma.oc@gmail.com>
Description
This draft is in continuation to #3874 which was closed due to messy branches and the image failing to build IDAKLU solver on aarch64 linux. Initially the idea was to migrate to a single docker image of manylinux2014 which was compliant to PEP599, but due to some complications, the official python image along with venv were decided upon implementation, check #3874 discussions for more information.
Fixes #3692
Fixes #3666
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
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: