diff --git a/dev-requirements.txt b/dev-requirements.txt index c6a232c45..892172417 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,4 +1,5 @@ pytest==8.3.5 +pytest-rerunfailures==15.0 flake8==7.2.0 black==25.1.0 mypy==1.15.0 diff --git a/tests/conftest.py b/tests/conftest.py index a8c15ca31..5d4cb0fae 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -290,7 +290,7 @@ def application_pid( "java": { "": {}, "hotspot-jdk-8": {}, # add for clarity when testing with multiple JDKs - "hotspot-jdk-11": dict(buildargs={"JAVA_BASE_IMAGE": "openjdk:11-jdk"}), + "hotspot-jdk-11": dict(buildargs={"JAVA_BASE_IMAGE": "eclipse-temurin:11-jdk"}), "j9": dict(buildargs={"JAVA_BASE_IMAGE": "adoptopenjdk/openjdk8-openj9"}), "eclipse-temurin-latest": dict(buildargs={"JAVA_BASE_IMAGE": "eclipse-temurin:latest"}), "zing": dict(dockerfile="zing.Dockerfile"), diff --git a/tests/test_python.py b/tests/test_python.py index 3a1affd38..5535b9603 100644 --- a/tests/test_python.py +++ b/tests/test_python.py @@ -161,6 +161,7 @@ def test_python_matrix( assert profile.app_metadata["sys_maxunicode"] is None +@pytest.mark.flaky(reruns=3, reruns_delay=2) @pytest.mark.parametrize("in_container", [True]) @pytest.mark.parametrize("profiler_type", ["pyperf"]) @pytest.mark.parametrize("insert_dso_name", [False, True])