[API-2275] Flaky test: map_nearcache_test.MapTest.test_invalidate_single_key
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với tests/integration/backward_compatible/proxy/map_nearcache_test.py, đặc biệt là MapTest.test_invalidate_single_key, và xem xét assertTrueEventually trong tests/base.py. Tái hiện lỗi bằng Compatibility-Suite được liên kết trong issue dành cho Hz 5.3.8. Hoàn thành khi test có thể quan sát một cách đáng tin cậy rằng kích thước near-cache thay đổi từ 10 thành 9.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This test failed in the compatibility suite for Hz 5.3.8:
https://github.com/hazelcast/client-compatibility-suites/actions/runs/15042583719/job/42277600444
=================================== FAILURES ===================================
______________________ MapTest.test_invalidate_single_key ______________________
self = <tests.integration.backward_compatible.proxy.map_nearcache_test.MapTest testMethod=test_invalidate_single_key>
def test_invalidate_single_key(self):
self.fill_map_and_near_cache(10)
initial_cache_size = len(self.map._wrapped._near_cache)
script = """map = instance_0.getMap("{}");map.remove("key-5")""".format(self.map.name)
response = self.rc.executeOnController(self.cluster.id, script, Lang.PYTHON)
self.assertTrue(response.success)
self.assertEqual(initial_cache_size, 10)
def assertion():
self.assertEqual(len(self.map._wrapped._near_cache), 9)
> self.assertTrueEventually(assertion)
tests/integration/backward_compatible/proxy/map_nearcache_test.py:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/base.py:76: in assertTrueEventually
raise last_exception
tests/base.py:67: in assertTrueEventually
assertion()
tests/integration/backward_compatible/proxy/map_nearcache_test.py:75: in assertion
self.assertEqual(len(self.map._wrapped._near_cache), 9)
E AssertionError: 10 != 9
=========================== short test summary info ============================
FAILED tests/integration/backward_compatible/proxy/map_nearcache_test.py::MapTest::test_invalidate_single_key
============ 1 failed, [142](https://github.com/hazelcast/client-compatibility-suites/actions/runs/15042583719/job/42277600444#step:15:143)1 passed, 32 skipped in 446.89s (0:07:26) ============
- Ngôn ngữ chính
- Python
- Star
- 115
- Fork
- 78
- Merge trung bình
- 2 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hazelcast/hazelcast-python-client
-
Type: Test-Failure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Type: Test-Failure
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
-
asyncio Type: Test-Failure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
asyncio to-jira Type: Test-Failure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
hazelcast/hazelcast-python-client#761 · 1 bình luận ·
-
asyncio to-jira Type: Test-Failure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
hazelcast/hazelcast-python-client#760 · 1 bình luận ·
Tất cả issue của hazelcast/hazelcast-python-client
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
marketcalls/openalgo#2472 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
marimo-team/marimo#11949 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug server-time v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
modelcontextprotocol/servers#5559 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jxxghp/MoviePilot#7449 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
devops help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
guaardvark/guaardvark#421 ·
Maintainer thường phản hồi trong vòng 2 ngày