Skip to content

Commit 21f6017

Browse files
committed
downgrady to pymongo<4.7
I don't want to wade through all of our logging code right now. The pymongo 4.7.0 changelog entry says: > Added support for Python’s native logging library, enabling developers > to customize the verbosity of log messages for their applications. > Please see Logging for more information. And the Logging doc says: > Starting in 4.8, PyMongo supports Python’s native logging library, > enabling developers to customize the verbosity of log messages for > their applications. https://pymongo.readthedocs.io/en/stable/examples/logging.html But, we currently have logic in these places that enable DEBUG logs for integration tests and local development, and the now-enabled DEBUG pymongo logs are too overwhelming to deal with right now. - conf/st2.dev.conf [system].debug = True - st2common/st2common/service_setup.py - st2common/st2common/logging/misc.py - st2common/st2common/util/debugging.py Here's the lockfile diff: Lockfile diff: lockfiles/st2.lock [st2] == !! Downgraded dependencies !! == pymongo 4.9.1 --> 4.6.3
1 parent ed99474 commit 21f6017

File tree

8 files changed

+114
-60
lines changed

8 files changed

+114
-60
lines changed

fixed-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ passlib==1.7.4
3939
# 202403: bump to 3.0.43 for py3.10 support
4040
prompt-toolkit==3.0.47
4141
pyinotify==0.9.6 ; platform_system=="Linux"
42-
pymongo==4.9.1
42+
pymongo==4.6.3
4343
pyparsing==3.1.4
4444
zstandard==0.23.0
4545
# pyOpenSSL 23.1.0 supports cryptography up to 40.0.x

lockfiles/st2.lock

Lines changed: 106 additions & 53 deletions
Large diffs are not rendered by default.

requirements-pants.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ psutil
4949
pygments
5050
# pymongo 3.13 has backports of APIs from pymongo 4 to help w/ migration
5151
# pymongo 4.4 is the first version to officially support mongo 7.0.
52+
# pymongo 4.7 (or 4.8?) introduces support for standard python logging, which overwhelms our debug logs
5253
#pymongo>=3.11.0,<3.13.0
5354
#pymongo>=3.13.0,<4.0.0
54-
pymongo>=4.0.0,<5
55+
pymongo>=4.0.0,<4.7
5556
# pyrabbit used in an integration test
5657
pyrabbit
5758
pytest

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ psutil==6.0.0
4949
pyOpenSSL
5050
pygments==2.18.0
5151
pyinotify==0.9.6 ; platform_system=="Linux"
52-
pymongo==4.9.1
52+
pymongo==4.6.3
5353
pyparsing==3.1.4
5454
pyrabbit
5555
pysocks

st2api/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ kombu==5.4.2
1212
mongoengine==0.29.1
1313
oslo.config==9.6.0
1414
oslo.utils==7.3.0
15-
pymongo==4.9.1
15+
pymongo==4.6.3
1616
pyparsing==3.1.4
1717
simplejson
1818
six==1.16.0

st2auth/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ eventlet==0.37.0
1010
gunicorn==23.0.0
1111
oslo.config==9.6.0
1212
passlib==1.7.4
13-
pymongo==4.9.1
13+
pymongo==4.6.3
1414
six==1.16.0
1515
st2-auth-backend-flat-file@ git+https://github.com/StackStorm/st2-auth-backend-flat-file.git@master
1616
st2-auth-ldap@ git+https://github.com/StackStorm/st2-auth-ldap.git@master

st2common/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ orquesta@ git+https://github.com/StackStorm/orquesta.git@v1.6.0
3131
oslo.config==9.6.0
3232
paramiko==3.5.0
3333
pyOpenSSL
34-
pymongo==4.9.1
34+
pymongo==4.6.3
3535
python-dateutil==2.9.0.post0
3636
python-statsd==2.1.0
3737
pyyaml==6.0.2

st2stream/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ kombu==5.4.2
1212
mongoengine==0.29.1
1313
oslo.config==9.6.0
1414
oslo.utils==7.3.0
15-
pymongo==4.9.1
15+
pymongo==4.6.3
1616
pyparsing==3.1.4
1717
six==1.16.0

0 commit comments

Comments
 (0)