Commit Graph

319 Commits

Author SHA1 Message Date
Noah Stapp
0e8d70457f
Async client uses tasks instead of threads
PYTHON-4725 - Async client should use tasks for SDAM instead of threads
PYTHON-4860 - Async client should use asyncio.Lock and asyncio.Condition
PYTHON-4941 - Synchronous unified test runner being used in asynchronous tests
PYTHON-4843 - Async test suite should use a single event loop
PYTHON-4945 - Fix test cleanups for mongoses

Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com>
2024-11-26 16:55:27 -05:00
Noah Stapp
710bc40c73
PYTHON-4870 - MongoClient.address should block until a connection suc… (#1929) 2024-10-15 12:12:18 -04:00
Noah Stapp
872fda179e
PYTHON-4574 - FaaS detection logic mistakenly identifies EKS as AWS Lambda (#1908) 2024-10-15 08:54:42 -04:00
Shane Harvey
ac198af557
PYTHON-4729 Drop support for MongoDB 3.6 (#1905) 2024-10-09 09:58:20 -07:00
Noah Stapp
b111cbf5d5
PYTHON-4636 - Avoid blocking I/O calls in async code paths (#1870)
Co-authored-by: Shane Harvey <shnhrv@gmail.com>
2024-10-03 15:18:33 -04:00
Shane Harvey
821811e80d
PYTHON-4782 Fix deadlock and blocking behavior in _ACondition.wait (#1875) 2024-09-30 16:24:07 -07:00
Jeffrey A. Clark
083359f95f
PYTHON-1714 Add c extension use to client metadata (#1874) 2024-09-30 18:09:57 -05:00
Iris
1e395de9c5
PYTHON-4737 Migrate test_binary.py to async (#1863) 2024-09-30 11:17:57 -07:00
Noah Stapp
739510214b
PYTHON-4731 - Explicitly close all MongoClients opened during tests (#1855) 2024-09-17 09:22:17 -04:00
Shane Harvey
29bbf77dad
PYTHON-4607 Use LogRecord.getMessage() not LogRecord.message (#1837) 2024-09-05 14:18:48 -07:00
Noah Stapp
e430d2e2fa
PYTHON-4662 - Capture Async PyMongo metadata (#1814) 2024-08-28 08:31:42 -04:00
Noah Stapp
636603f893
PYTHON-4552 - Make AsyncCollection.find synchronous (#1734) 2024-07-16 11:05:51 -07:00
Noah Stapp
d0193eb045
PYTHON-4533 - Convert test/test_client.py to async (#1730) 2024-07-10 13:15:13 -07:00
Noah Stapp
ffa6555485
PYTHON-4476 Separate data and IO classes more effectively (#1678) 2024-06-26 10:12:39 -07:00
shruti-sridhar
1d8d3fef00
PYTHON-2052 Truncate client metadata document to 512 bytes (#1696) 2024-06-24 11:59:41 -07:00
Steven Silvester
d4b4b740dd
PYTHON-4509 Update to FIPS host with Python 3.8 binary (#1688) 2024-06-17 12:04:12 -05:00
Noah Stapp
8b6bb832ac
PYTHON-4503 - Re-enable accidentally disabled tests (#1683) 2024-06-14 09:25:34 -07:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta (#1629) 2024-06-06 09:01:24 -07:00
Steven Silvester
49987e6a8a
PYTHON-4441 Use deferred imports instead of lazy module loading (#1648) 2024-05-30 16:40:23 -05:00
Steven Silvester
60f1a43efa
PYTHON-4353 Make dns import optional but required for tests (#1588) 2024-04-15 18:45:22 -05:00
Noah Stapp
a46331d478
PYTHON-4286 Remove duplicate test_detect_external_db (#1554) 2024-03-18 16:22:35 -07:00
Noah Stapp
266b3dd8e9
PYTHON-3835 Log informational message client-side based on detected environment (#1537) 2024-03-07 14:53:09 -08:00
Noah Stapp
ebb94b669e
PYTHON-3457 Easier debugging with standardized logging (#1515)
PYTHON-3458 Add command logging.
PYTHON-3459 Add server selection logging.
PYTHON-3473 Add connection pool logging.
PYTHON-4167 Add documentation and examples.

Co-authored-by: sleepyStick <itsirisho@gmail.com>
2024-02-15 11:35:08 -08:00
Noah Stapp
c4e4bd638f
PYTHON-3175 Preemptively cancel in progress operations when SDAM heartbeats timeout (#1465) 2024-01-19 10:55:10 -08:00
Casey Clements
d4dfd4a044
PYTHON-3036 Improve error message for unknown MongoClient options (#1440) 2023-11-30 11:21:10 -08:00
Noah Stapp
6c88c73219
PYTHON-3837 Driver Container and Kubernetes Awareness (#1418) 2023-11-02 13:13:45 -07:00
Shane Harvey
a0e9d61678
PYTHON-3747 Fix flaky test_list_databases (#1403) 2023-10-20 14:45:52 -07:00
Noah Stapp
d82946334e
PYTHON-3953 - PyMongo should send killCursors on MaxTimeMSExpired Error (#1372) 2023-10-20 13:42:59 -07:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff (#1399) 2023-10-19 11:56:22 -05:00
Noah Stapp
4fa6056e72
PYTHON-2878 Allow passing dict to sort/create_index/hint performance … (#1396) 2023-10-17 10:50:06 -07:00
Noah Stapp
81c759a3a0
PYTHON-2878 Allow passing dict to sort/create_index/hint (#1389) 2023-10-16 14:36:27 -07:00
Noah Stapp
aaff6edd8b
PYTHON-3912 Migrate Enterprise Auth Tests to AWS Secrets Vault (#1356) 2023-08-18 09:56:43 -07:00
Noah Stapp
c88ae79e58
PYTHON-3879 Rename SocketInfo to Connection (#1329) 2023-07-28 10:04:16 -07:00
Noah Stapp
ec3437849e
PYTHON-3702 Stop using utcnow and utcfromtimestamp (#1229) 2023-06-12 15:43:30 -07:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 (#1196)
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
Shane Harvey
3d3e4dc238
PYTHON-3464 Add FaaS platform to handshake metadata (#1204)
Truncate metadata env, os, and platform fields if needed.
2023-05-04 18:24:14 -07:00
Steven Silvester
f5d09e1c97
PYTHON-3542 Test Failure - test_iteration on PyPy 3.8+ (#1128) 2022-12-20 13:39:04 -06:00
Shane Harvey
1edbfad0c8
PYTHON-3529 Improve reliability of test_list_databases (#1120) 2022-11-17 12:27:15 -08:00
Julius Park
92e6150d84
PYTHON-3493 Bulk Write InsertOne Should Be Parameter Of Collection Type (#1106) 2022-11-10 14:19:55 -08:00
Steven Silvester
df77653ccc
PYTHON-3347 Test against Python 3.11 prerelease (#1069) 2022-10-13 06:09:23 -05:00
Ben Warner
46673c3705
PYTHON-3379 Refactored DatetimeConversionOpts to DatetimeConversion (#1031) 2022-08-04 12:53:57 -07:00
Ben Warner
14002a5a0d
PYTHON-1824 Allow encoding/decoding out-of-range datetimes via DatetimeMS and datetime_conversion (#981)
https://jira.mongodb.org/browse/PYTHON-1824

Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-27 16:53:52 -07:00
Shane Harvey
a624197338
PYTHON-3260 Improve test_transaction_starts_with_batched_write and test_continuous_network_errors (#945) 2022-05-10 10:29:48 -07:00
Shane Harvey
821b5620f7
PYTHON-3198 Fix NameError: name sys is not defined (#920) 2022-04-05 13:07:06 -07:00
Shane Harvey
c58950a8d4
PYTHON-3186 Avoid SDAM heartbeat timeouts on AWS Lambda (#912)
Poll monitor socket with timeout=0 one last time after timeout expires.
This avoids heartbeat timeouts and connection churn on Lambda and other FaaS envs.
2022-03-30 14:29:46 -07:00
Shane Harvey
75fa14d19b
PYTHON-3084 MongoClient/Database/Collection should not implement Iterable (#909) 2022-03-28 15:09:53 -07:00
Julius Park
9562a81903
PYTHON-3119 getMore helper should explicitly send inherited comment (#904) 2022-03-25 16:47:18 -07:00
Shane Harvey
9ada6543d5
PYTHON-3174 Remove noisy running Topology check for main test client (#898) 2022-03-15 14:52:47 -07:00
Steven Silvester
a61ea0660a
PYTHON-3090 Clean up Database Command Typing (#879) 2022-03-02 13:10:15 -06:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting (#868) 2022-02-17 06:44:08 -06:00