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

Upgrade pymongo #34642

Closed
wants to merge 18 commits into from
Closed

Upgrade pymongo #34642

wants to merge 18 commits into from

Conversation

awais786
Copy link
Contributor

@awais786 awais786 commented Apr 26, 2024

This version contains multiple breaking changes.

1: One of main is close connection. It happens at multiple places in code base and need some in depth domain knowledge about when reopen.
2: database file has removed call method and its in use in MongoDBProxy. I just added a temporary fix to run tests.
openedx/MongoDBProxy#22
3: md5 checksum removed. I added temp fix to run the test suite. mongodb/mongo-python-driver@e271315

@awais786 awais786 force-pushed the upgrade-pymongo- branch 2 times, most recently from 31da7e8 to 12e4b24 Compare April 27, 2024 11:29
@awais786 awais786 closed this Apr 28, 2024
@awais786 awais786 reopened this Apr 28, 2024
@@ -676,7 +676,8 @@ def _send_course_email(entry_id, email_id, to_list, global_email_context, subtas
return subtask_status, None
finally:
# Clean up at the end.
connection.close()
pass
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -142,12 +143,16 @@ def find(self, location, throw_on_not_found=True, as_stream=False): # lint-amne
'thumbnail',
thumbnail_location[4]
)

if getattr(fp, 'md5', None) is None:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

feat!: upgrading pymongo to 4.0

fix: Update Makefile

feat!: Remove md5 checksums from gridfs and remove disable.

feat!: Remove md5 checksums from gridfs and remove disable.

feat!: Remove md5 checksums from gridfs and remove disable.

feat!: Remove md5 checksums from gridfs and remove disable.

feat!: Remove md5 checksums from gridfs and remove disable.

feat!: Remove md5 checksums from gridfs and remove disable.

feat: Upgrade Python dependency enmerkar-underscore

Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

feat: Upgrade Python dependency edx-codejail

Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Revert "build: Python requirements upgrade and lxml build without binary (openedx#34…" (openedx#34661)

This reverts commit 52adce4 because we were getting this in the build pipeline:

```
WARNING: lxml 5.2.1 does not provide the extra 'html-clean'
ERROR: Exception:
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 173, in _main
    status = self.run(options, args)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 203, in wrapper
    return func(self, options, args)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 315, in run
    requirement_set = resolver.resolve(
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve
    result = self._result = resolver.resolve(
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 472, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 366, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 221, in _attempt_to_pin_criterion
    satisfied = all(
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 222, in <genexpr>
    self._p.is_satisfied_by(requirement=r, candidate=candidate)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 178, in is_satisfied_by
    return requirement.is_satisfied_by(candidate)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/requirements.py", line 84, in is_satisfied_by
    assert candidate.name == self.name, (
AssertionError: Internal issue: Candidate is not for this requirement lxml[html-clean,html-clean] vs lxml[html-clean]
WARNING: You are using pip version 21.2.1; however, version 24.0 is available.
You should consider upgrading via the '/edx/app/edxapp/venvs/edxapp/bin/python -m pip install --upgrade pip' command.
```
@awais786 awais786 closed this Apr 30, 2024
@awais786 awais786 reopened this Apr 30, 2024
@awais786 awais786 closed this May 14, 2024
@awais786 awais786 reopened this May 21, 2024
@awais786 awais786 closed this Aug 9, 2024
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.

1 participant