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

Update dependencies #1017

Merged
merged 10 commits into from
Dec 8, 2021
Merged

Update dependencies #1017

merged 10 commits into from
Dec 8, 2021

Conversation

CasperWA
Copy link
Member

@CasperWA CasperWA commented Dec 8, 2021

Update dependencies

Automatically created PR from the dependabot_updates branch.

For more information see the "Dependabot updates" workflow.

To-do

  • Check that the diff is sensible, and that tests and builds pass with the new dependency versions.
  • Check whether the dependency versions in setup.py need updating, keeping the version requirements as loose as possible.
  • Make sure that the PR is squash merged, with a sensible commit message.

dependabot bot and others added 7 commits December 1, 2021 10:38
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](squidfunk/mkdocs-material@8.0.1...8.0.2)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pymongo](https://github.com/mongodb/mongo-python-driver) from 3.12.1 to 4.0.
- [Release notes](https://github.com/mongodb/mongo-python-driver/releases)
- [Changelog](https://github.com/mongodb/mongo-python-driver/blob/master/doc/changelog.rst)
- [Commits](mongodb/mongo-python-driver@3.12.1...4.0)

---
updated-dependencies:
- dependency-name: pymongo
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.15.0 to 2.16.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md)
- [Commits](pre-commit/pre-commit@v2.15.0...v2.16.0)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ase](https://gitlab.com/ase/ase) from 3.22.0 to 3.22.1.
- [Release notes](https://gitlab.com/ase/ase/tags)
- [Changelog](https://gitlab.com/ase/ase/blob/master/CHANGELOG.rst)
- [Commits](https://gitlab.com/ase/ase/compare/3.22.0...3.22.1)

---
updated-dependencies:
- dependency-name: ase
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.0.2 to 8.0.4.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](squidfunk/mkdocs-material@8.0.2...8.0.4)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.12.1 to 2.12.2.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog)
- [Commits](pylint-dev/pylint@v2.12.1...v2.12.2)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@CasperWA CasperWA added CI Continuous Integration - GitHub Actions issues (NOT related to the repository Action) dependency_updates Issues pertaining to updates to our dependencies that are breaking the eager build labels Dec 8, 2021
@codecov
Copy link

codecov bot commented Dec 8, 2021

Codecov Report

Merging #1017 (1df1b80) into master (0db4e7d) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1017      +/-   ##
==========================================
- Coverage   92.91%   92.89%   -0.03%     
==========================================
  Files          67       67              
  Lines        3782     3784       +2     
==========================================
+ Hits         3514     3515       +1     
- Misses        268      269       +1     
Flag Coverage Δ
project 92.89% <66.66%> (-0.03%) ⬇️
validator 92.89% <66.66%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
optimade/server/entry_collections/mongo.py 94.44% <66.66%> (-1.71%) ⬇️

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 0db4e7d...1df1b80. Read the comment docs.

@CasperWA
Copy link
Member Author

CasperWA commented Dec 8, 2021

Note - The major change in these updates is the change from PyMongo v3 to v4. See changes here.
It seems to me it makes sense to update to v4, not including v3 support, since we've already dropped the old Python version support. The only issue might the Mongo v3 drops? But is this really an issue? If yes, we should probably still allow the latest PyMongo v3, having something like: pymongo>=3.12.1,<5.

@ml-evs
Copy link
Member

ml-evs commented Dec 8, 2021

Note - The major change in these updates is the change from PyMongo v3 to v4. See changes here. It seems to me it makes sense to update to v4, not including v3 support, since we've already dropped the old Python version support. The only issue might the Mongo v3 drops? But is this really an issue? If yes, we should probably still allow the latest PyMongo v3, having something like: pymongo>=3.12.1,<5.

I think we should keep support for Mongo v3 until the next minor version (and add a deprecation message here) - I am using Mongo v3.6 (which still gets updates) and migrating to newer versions requires some care. I imagine MP are using a more recent Mongo (maybe we could ask).

JPBergsma
JPBergsma previously approved these changes Dec 8, 2021
Copy link
Contributor

@JPBergsma JPBergsma left a comment

Choose a reason for hiding this comment

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

The tests pass for me with the new dependency versions

Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Can we add the following (or similar) to optimade/server/entry_collections/mongo.py?

    from pymongo import version_tuple
    if version_tuple[0] < 4:
        LOGGER.warning(
            "Support for pymongo<=3 (and thus MongoDB v3) is deprecated and will be removed in the next minor release."
        )

@ml-evs
Copy link
Member

ml-evs commented Dec 8, 2021

Also, a side comment, do you think weekly dependency updates is still a suitable cadence? We don't have any "active" developments going on at the moment (and releases are less frequent than 1 per month), perhaps we could turn it down a notch?

@CasperWA
Copy link
Member Author

CasperWA commented Dec 8, 2021

Also, a side comment, do you think weekly dependency updates is still a suitable cadence? We don't have any "active" developments going on at the moment (and releases are less frequent than 1 per month), perhaps we could turn it down a notch?

Sure. The frequency can be edited here:

@CasperWA
Copy link
Member Author

CasperWA commented Dec 8, 2021

Can we add the following (or similar) to optimade/server/entry_collections/mongo.py?

Added. But only if pymongo is imported, i.e., if CONFIG.database_backend is "mongodb".
Should it be general instead? I think I'd rather have it this way, personally.

I tried to look into mongomock to see if they have some similar "issues", but I couldn't find anything.

@CasperWA CasperWA requested a review from ml-evs December 8, 2021 11:57
@ml-evs
Copy link
Member

ml-evs commented Dec 8, 2021

Added. But only if pymongo is imported, i.e., if CONFIG.database_backend is "mongodb". Should it be general instead? I think I'd rather have it this way, personally.

Yeah that's where I imagined it would go.

I tried to look into mongomock to see if they have some similar "issues", but I couldn't find anything.

Indeed, I'm not really sure why pymongo itself needs to drop support (beyond additional maintenance burden).

@ml-evs
Copy link
Member

ml-evs commented Dec 8, 2021

Sure. The frequency can be edited here:

I don't feel super strongly about it, just worry that we'll end up as project with multiple dep update PRs in a row without any new code :)

Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Thanks @CasperWA !

@CasperWA
Copy link
Member Author

CasperWA commented Dec 8, 2021

Sure. The frequency can be edited here:

I don't feel super strongly about it, just worry that we'll end up as project with multiple dep update PRs in a row without any new code :)

Welp... it's better than nothing? :)

@CasperWA CasperWA merged commit 44f3807 into master Dec 8, 2021
@CasperWA CasperWA deleted the ci/update-dependencies branch December 8, 2021 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration - GitHub Actions issues (NOT related to the repository Action) dependency_updates Issues pertaining to updates to our dependencies that are breaking the eager build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants