From ab879c765fde27ebb57d8ed2787dfe2434e9f366 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Fri, 11 Sep 2026 09:26:45 +0200 Subject: [PATCH 1/2] tests: bump mongodb newest server to 8.0 So that latest client can connect. --- tests/docker-compose.yml | 8 ++++---- tests/scripts/envs/pymongo-newest.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/docker-compose.yml b/tests/docker-compose.yml index af3a179c3..a03368df6 100644 --- a/tests/docker-compose.yml +++ b/tests/docker-compose.yml @@ -44,12 +44,12 @@ services: volumes: - pymongodata36:/data/db - mongodb42: - image: mongo:4.2 + mongodb80: + image: mongo:8.0 ports: - "27017:27017" volumes: - - pymongodata42:/data/db + - pymongodata80:/data/db memcached: image: memcached @@ -176,7 +176,7 @@ volumes: driver: local pymongodata36: driver: local - pymongodata42: + pymongodata80: driver: local pyesdata7: driver: local diff --git a/tests/scripts/envs/pymongo-newest.sh b/tests/scripts/envs/pymongo-newest.sh index 8b496971b..04132244d 100644 --- a/tests/scripts/envs/pymongo-newest.sh +++ b/tests/scripts/envs/pymongo-newest.sh @@ -1,3 +1,3 @@ export PYTEST_MARKER="-m mongodb" -export DOCKER_DEPS="mongodb42" -export MONGODB_HOST="mongodb42" +export DOCKER_DEPS="mongodb80" +export MONGODB_HOST="mongodb80" From 517e94b06eb1882ed0ae6eb54a343454f6e87948 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 11 Sep 2026 07:20:28 +0000 Subject: [PATCH 2/2] test: stabilize nonexisting instrumentation assertion Co-authored-by: xrmx <12932+xrmx@users.noreply.github.com> --- tests/instrumentation/base_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/instrumentation/base_tests.py b/tests/instrumentation/base_tests.py index da2e265ed..e7564cff4 100644 --- a/tests/instrumentation/base_tests.py +++ b/tests/instrumentation/base_tests.py @@ -82,7 +82,9 @@ def test_instrument_nonexisting_method_on_module(): def test_instrument_nonexisting_method(caplog): with caplog.at_level(logging.DEBUG, "elasticapm.instrument"): _TestInstrumentNonExistingMethod().instrument() - assert_any_record_contains(caplog.records, "has no attribute", "elasticapm.instrument") + assert_any_record_contains( + caplog.records, "Skipping instrumentation of logging.Logger.non_existing_method:", "elasticapm.instrument" + ) def test_instrument_broken_module(caplog):