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

Deps: Update mongoengine to 0.29.1 and pymongo 4.6.3 #6252

Merged
merged 19 commits into from
Sep 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
ac33734
update to mongoengine 0.25 and pymongo 3.13
cognifloyd Sep 19, 2024
7a47cef
update lockfiles/st2.lock to get pymongo/mongoengine updates
cognifloyd Sep 19, 2024
e3681cd
update requirements files to match lockfiles/st2.lock
cognifloyd Sep 19, 2024
69f4da1
make mongoengine/pymongo deprecations fail tests (hopefully)
cognifloyd Sep 19, 2024
aa57b53
pants-plugins/uses_services: use mongo ping instead of deprecated ism…
cognifloyd Sep 19, 2024
7a4c2a6
pymongo 4: Specify UuidRepresentation=PYTHON_LEGACY
cognifloyd Sep 19, 2024
5dc882a
MongoClient(uuid_representation=) has to be a string
cognifloyd Sep 19, 2024
3948d60
add uuidRepresentation to expected args in test_db
cognifloyd Sep 19, 2024
85491f2
pymongo: database_names replaced with list_database_names
cognifloyd Sep 19, 2024
62403ca
pymongo: collection_names replaced with list_collection_names
cognifloyd Sep 19, 2024
31a99ec
bump mongoengine and pymongo to the latest
cognifloyd Sep 19, 2024
cf28188
regenerate lockfiles/st2.lock to bump pymongo+mongoengine
cognifloyd Sep 19, 2024
72f07e2
update requirements files to match lockfiles/st2.lock
cognifloyd Sep 19, 2024
d473f42
fix "InvalidOperation: Cannot use MongoClient after close" in test_db
cognifloyd Sep 19, 2024
51c70c0
drop warnings->errors for mongo update
cognifloyd Sep 20, 2024
4529733
downgrade to pymongo<4.7
cognifloyd Sep 20, 2024
407bc3e
add changelog entry
cognifloyd Sep 20, 2024
4c0a316
pants-plugins/uses_services/mongo: Add uuidRepresentation
cognifloyd Sep 20, 2024
b213645
update changelog entry
cognifloyd Sep 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drop warnings->errors for mongo update
cognifloyd committed Sep 25, 2024
commit 51c70c05e4bdedd6d50c6198daff3c68b4c7da69
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -76,16 +76,14 @@ endif
# pages and pages and pages of noise.
# The minus in front of st2.st2common.bootstrap filters out logging statements from that module.
# See https://nose.readthedocs.io/en/latest/usage.html#cmdoption-logging-filter
NOSE_OPTS := --rednose --immediate --with-parallel --parallel-strategy=FILE --nocapture
# --logging-filter=-st2.st2common.bootstrap
NOSE_OPTS := --rednose --immediate --with-parallel --parallel-strategy=FILE --nocapture --logging-filter=-st2.st2common.bootstrap

ifndef NOSE_TIME
NOSE_TIME := yes
endif

ifeq ($(NOSE_TIME),yes)
NOSE_OPTS := --rednose --immediate --with-parallel --parallel-strategy=FILE --with-timer --nocapture
# --logging-filter=-st2.st2common.bootstrap
NOSE_OPTS := --rednose --immediate --with-parallel --parallel-strategy=FILE --with-timer --nocapture --logging-filter=-st2.st2common.bootstrap
NOSE_WITH_TIMER := 1
endif

5 changes: 0 additions & 5 deletions st2common/st2common/fields.py
Original file line number Diff line number Diff line change
@@ -22,11 +22,6 @@

from __future__ import absolute_import

import warnings

warnings.filterwarnings("error", category=DeprecationWarning, module="mongoengine")
warnings.filterwarnings("error", category=DeprecationWarning, module="pymongo")

from typing import Optional
from typing import Union

5 changes: 0 additions & 5 deletions st2common/st2common/models/db/__init__.py
Original file line number Diff line number Diff line change
@@ -45,11 +45,6 @@

monkey_patch()

import warnings

warnings.filterwarnings("error", category=DeprecationWarning, module="mongoengine")
warnings.filterwarnings("error", category=DeprecationWarning, module="pymongo")

import copy
import importlib
import traceback
5 changes: 0 additions & 5 deletions st2common/st2common/util/db.py
Original file line number Diff line number Diff line change
@@ -15,11 +15,6 @@

from __future__ import absolute_import

import warnings

warnings.filterwarnings("error", category=DeprecationWarning, module="mongoengine")
warnings.filterwarnings("error", category=DeprecationWarning, module="pymongo")

import mongoengine
import six

5 changes: 0 additions & 5 deletions st2common/tests/unit/base.py
Original file line number Diff line number Diff line change
@@ -15,11 +15,6 @@

from __future__ import absolute_import

import warnings

warnings.filterwarnings("error", category=DeprecationWarning, module="mongoengine")
warnings.filterwarnings("error", category=DeprecationWarning, module="pymongo")

import time

import mongoengine
5 changes: 0 additions & 5 deletions st2common/tests/unit/test_db.py
Original file line number Diff line number Diff line change
@@ -21,11 +21,6 @@

monkey_patch()

import warnings

warnings.filterwarnings("error", category=DeprecationWarning, module="mongoengine")
warnings.filterwarnings("error", category=DeprecationWarning, module="pymongo")

import time

import jsonschema