# HG changeset patch # User Alain Mazy # Date 1790082544 -7200 # Node ID 3448d318635c84a3c8fa50a41566f79e9cd44fcd # Parent 0c13013c7930b622cc9e630329da8f7d29c53a46 fix perfs tests diff -r 0c13013c7930 -r 3448d318635c NewTests/NonRegressionPerfs/test_non_regression_perfs.py --- a/NewTests/NonRegressionPerfs/test_non_regression_perfs.py Tue Sep 22 12:59:34 2026 +0200 +++ b/NewTests/NonRegressionPerfs/test_non_regression_perfs.py Tue Sep 22 15:09:04 2026 +0200 @@ -129,6 +129,7 @@ subprocesss_env["ORTHANC_IMAGE_UNDER_TESTS"] = Helpers.orthanc_under_tests_docker_image print("Launching containers") + subprocess.run(["docker", "compose", "down", "-v"], env=subprocesss_env, check=True) subprocess.run(["docker", "compose", "up", "-d"], env=subprocesss_env, check=True) o_ref = OrthancApiClient(test_configs["ref"]["orthanc-url"]) @@ -169,14 +170,24 @@ perform_test=lambda o: [o.get_binary(endpoint=f"/studies/{i}/archive?transcode=1.2.840.10008.1.2.4.70") for i in o.studies.get_all_ids()], reapeat_count=5, test_configs=test_configs, - test_results=test_results) + test_results=test_results, + tolerance_pct=0.40) self.measure(test_name="download archives with transcoding 5x5 (parallel)", perform_test=lambda o: [o.get_binary(endpoint=f"/studies/{i}/archive?transcode=1.2.840.10008.1.2.4.70") for i in o.studies.get_all_ids()], reapeat_count=1, parallel_count=5, test_configs=test_configs, - test_results=test_results) + test_results=test_results, + tolerance_pct=0.40) + + self.measure(test_name="download archives no transcoding 5x5 (parallel)", + perform_test=lambda o: [o.get_binary(endpoint=f"/studies/{i}/archive") for i in o.studies.get_all_ids()], + reapeat_count=1, + parallel_count=5, + test_configs=test_configs, + test_results=test_results, + tolerance_pct=0.40) self.measure(test_name="get simplified tags 1x1000 (sequential)", perform_test=lambda o: [o.instances.get_tags(i) for i in o.instances.get_all_ids()[:1000]],