Flaky: map_nearcache_test.py::MapTest::test_invalidate_nonexist_key
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 52/100
Piste de recherche
Start with tests/integration/backward_compatible/proxy/map_nearcache_test.py, especially MapTest.test_invalidate_nonexist_key and the reported assertion near line 90. Run that test in the compatibility suite and inspect how the near cache changes after the JavaScript map operations. Done means the test reliably preserves the expected cache size of 10 and the compatibility suite passes.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Test failure at compatibility test run: https://github.com/hazelcast/client-compatibility-suites/actions/runs/40719377083/job/122936352327
=================================== FAILURES ===================================
_____________________ MapTest.test_invalidate_nonexist_key _____________________
self = <tests.integration.backward_compatible.proxy.map_nearcache_test.MapTest testMethod=test_invalidate_nonexist_key>
def test_invalidate_nonexist_key(self):
self.fill_map_and_near_cache(10)
initial_cache_size = len(self.map._wrapped._near_cache)
script = """
var map = instance_0.getMap("%s");
map.put("key-99","x");
map.put("key-NonExist","x");
map.remove("key-NonExist");""" % self.map.name
response = self.rc.executeOnController(self.cluster.id, script, Lang.JAVASCRIPT)
self.assertTrue(response.success)
> self.assertEqual(initial_cache_size, 10)
E AssertionError: 9 != 10
master/tests/integration/backward_compatible/proxy/map_nearcache_test.py:90: AssertionError
=============================== warnings summary ===============================
master/hazelcast/reactor.py:2
/home/runner/work/client-compatibility-suites/client-compatibility-suites/master/hazelcast/reactor.py:2: DeprecationWarning: The asyncore module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio
import asyncore
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED master/tests/integration/backward_compatible/proxy/map_nearcache_test.py::MapTest::test_invalidate_nonexist_key - AssertionError: 9 != 10
= 1 failed, 1254 passed, 20 skipped, 181 deselected, 1 warning in 180.05s (0:03:00) =
- Langage dominant
- Python
- Étoiles
- 115
- Forks
- 78
- Merge moyen
- 2 j 23 h
- PR mergées (30 j)
- 2
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de hazelcast/hazelcast-python-client
-
Type: Test-Failure
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
asyncio Type: Test-Failure
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
-
asyncio to-jira Type: Test-Failure
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
hazelcast/hazelcast-python-client#761 · 1 commentaire ·
-
asyncio to-jira Type: Test-Failure
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
hazelcast/hazelcast-python-client#760 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
Toutes les issues de hazelcast/hazelcast-python-client
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
marketcalls/openalgo#2472 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
marimo-team/marimo#11949 ·
Les mainteneurs répondent en général sous 1 jour
-
bug server-time v2
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
modelcontextprotocol/servers#5559 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
jxxghp/MoviePilot#7449 ·
Les mainteneurs répondent en général sous 1 jour
-
devops help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
guaardvark/guaardvark#421 ·
Les mainteneurs répondent en général sous 2 jours