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

Fix mount configuration change check for bind mounts #134

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

danielhollas
Copy link
Contributor

docker_mount_for() returns Path for bind mounts, which resulted in a type mismatch even when configuration did not change, and users would get spurious warnings.

I modified two tests so that they would catch the bug.

CC @csadorf this is the bug I mentioned in #132.

docker_mount_for() returns Path for bind mounts, which resulted
in a type mismatch even when configuration did not change,
and users would get spurious warnings.
tests/test_instance.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jun 21, 2022

Codecov Report

Merging #134 (3005258) into main (73fe854) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #134   +/-   ##
=======================================
  Coverage   86.19%   86.19%           
=======================================
  Files           9        9           
  Lines         826      826           
=======================================
  Hits          712      712           
  Misses        114      114           
Flag Coverage Δ
py-3.10 86.07% <100.00%> (ø)
py-3.7 85.57% <100.00%> (ø)
py-3.8 86.02% <100.00%> (ø)
py-3.9 86.14% <100.00%> (ø)

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

Impacted Files Coverage Δ
aiidalab_launch/instance.py 89.80% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73fe854...3005258. Read the comment docs.

@danielhollas
Copy link
Contributor Author

The CI fail is just Codecov failing to upload, re-running will hopefully fix it.

@csadorf csadorf self-requested a review June 22, 2022 07:08
Copy link
Member

@csadorf csadorf left a comment

Choose a reason for hiding this comment

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

Perfect, thanks a lot!

@csadorf csadorf merged commit 8331eae into aiidalab:main Jun 22, 2022
@csadorf
Copy link
Member

csadorf commented Jun 22, 2022

@danielhollas I suggest that we wait with a release until after #132 is merged, but please let me know if you would prefer for me to make a release right away.

@danielhollas
Copy link
Contributor Author

danielhollas commented Jun 22, 2022 via email

@danielhollas danielhollas deleted the fix-mount-comparison branch June 23, 2022 13:08
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.

None yet

2 participants