Skip to content
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

Add test to latest and oldest supported aiida-core #558

Merged

Conversation

unkcpz
Copy link
Member

@unkcpz unkcpz commented Feb 21, 2024

No description provided.

@unkcpz unkcpz marked this pull request as draft February 21, 2024 13:01
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.07%. Comparing base (8808a3c) to head (4bbb55d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #558   +/-   ##
=======================================
  Coverage   87.07%   87.07%           
=======================================
  Files          27       27           
  Lines        4649     4649           
=======================================
  Hits         4048     4048           
  Misses        601      601           
Flag Coverage Δ
python-3.10 87.07% <ø> (ø)
python-3.9 87.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@unkcpz unkcpz force-pushed the devops/xx/test-with-pinned-aiida-core-v2.1 branch from 48cac20 to b2c6345 Compare February 21, 2024 13:16
@unkcpz unkcpz force-pushed the devops/xx/test-with-pinned-aiida-core-v2.1 branch from b2c6345 to c4375a7 Compare February 21, 2024 13:29
@unkcpz unkcpz marked this pull request as ready for review February 21, 2024 13:47
@unkcpz
Copy link
Member Author

unkcpz commented Feb 21, 2024

The unittest with python==3.9 and aiida-core==2.1.2 failed because of PyYAML issue yaml/pyyaml#723

So in fact the oldest support version is 2.2.0 where the PyYAML bumped to ~6.0, aiidateam/aiida-core@09adc18

I think we can make the oldest support aiida-core version to be v2.2.0, @danielhollas what do you think?

@unkcpz unkcpz requested a review from danielhollas February 21, 2024 14:05
@danielhollas
Copy link
Contributor

Ugh, that's annoying. I'll take a look, thanks!

@danielhollas
Copy link
Contributor

I checked on Dockerhub and we released an image with aiida 2.2 10 months ago. So let's just test with this version and not waste too much time on this. Can always improve this in the future if needed.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
danielhollas
danielhollas previously approved these changes Feb 23, 2024
Copy link
Contributor

@danielhollas danielhollas left a comment

Choose a reason for hiding this comment

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

Tests are passing now. 🎉 Very happy with this change, will make us more confident to not break backwards compatibility. Thanks @unkcpz!

Couple small fixes but otherwise good to go.

Comment on lines 7 to 13
# TODO: after the oldest aiida-core supported version is v2.4.0,
# move to use ghcr.io registry to pull the image, the dockerhub registry has
# a rate limit of 100 pulls per 6 hours.
# aiida-core < 2.4.0 is not push to ghcr.io because of CI issues
# The CI is fixed in https://github.com/aiidalab/aiidalab-docker-stack/pull/390 and
# from aiida-core 2.4.0 the images are pushed to ghcr.io.
image: aiidalab/full-stack:${TAG:-latest}
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for the comment, very good for future reference

Suggested change
# TODO: after the oldest aiida-core supported version is v2.4.0,
# move to use ghcr.io registry to pull the image, the dockerhub registry has
# a rate limit of 100 pulls per 6 hours.
# aiida-core < 2.4.0 is not push to ghcr.io because of CI issues
# The CI is fixed in https://github.com/aiidalab/aiidalab-docker-stack/pull/390 and
# from aiida-core 2.4.0 the images are pushed to ghcr.io.
image: aiidalab/full-stack:${TAG:-latest}
# TODO: When we drop support of images with aiida-core<2.4.0, we should go back to using
# the ghcr.io registry to pull the image,
# since the dockerhub registry has a rate limit of 100 pulls per 6 hours.
# Images with aiida-core<2.4.0 were not pushed to ghcr.io because of CI issues,
# which were fixed in https://github.com/aiidalab/aiidalab-docker-stack/pull/390
image: aiidalab/full-stack:${TAG:-latest}

@@ -109,6 +109,7 @@ jobs:
matrix:
tag: [latest]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
tag: [latest]

The tag variable is not used in the test-package1 workflow.

browser: [Chrome, Firefox]
python-version: ['3.10']
aiida-core-version: [2.1.2, 2.4.3] # test on the latest and the oldest supported version
Copy link
Contributor

Choose a reason for hiding this comment

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

Here version 2.1.2 actually works since it is pre-installed in the image. So we have at least some coverage.

@unkcpz unkcpz merged commit bd29d28 into aiidalab:master Feb 23, 2024
12 checks passed
@unkcpz unkcpz deleted the devops/xx/test-with-pinned-aiida-core-v2.1 branch February 23, 2024 16:58
@unkcpz
Copy link
Member Author

unkcpz commented Feb 23, 2024

Thanks for the review @danielhollas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants