From 0e6c06fb1873088a6fd47a28b8974eb7f23102e3 Mon Sep 17 00:00:00 2001 From: ThierryMT Date: Mon, 27 Oct 2025 13:52:32 +0000 Subject: [PATCH 1/6] gh-140381: Increase slow_fibonacci call frequency in test_profiling --- Lib/test/test_profiling/test_sampling_profiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_profiling/test_sampling_profiler.py b/Lib/test/test_profiling/test_sampling_profiler.py index 59bc18b9bcf14d..ff4556a3d9400c 100644 --- a/Lib/test/test_profiling/test_sampling_profiler.py +++ b/Lib/test/test_profiling/test_sampling_profiler.py @@ -1740,8 +1740,8 @@ def main_loop(): if iteration % 3 == 0: # Very CPU intensive result = cpu_intensive_work() - elif iteration % 5 == 0: - # Expensive recursive operation + elif iteration % 2 == 0: + # Expensive recursive operation (increased frequency for slower machines) result = slow_fibonacci(12) else: # Medium operation From bb82cb1e265442804736f2a362665fb1e3de9cf9 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 14:17:21 +0000 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst diff --git a/Misc/NEWS.d/next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst b/Misc/NEWS.d/next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst new file mode 100644 index 00000000000000..08f69efc64ac9e --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst @@ -0,0 +1,3 @@ +NEWS Entry: Fix flaky test_profiling tests on i686 and s390x + architectures by increasing slow_fibonacci call + frequency from every 5th iteration to every 2nd iteration. From beac599d1bd46771efc89158695e041c1c649fe7 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 14:24:19 +0000 Subject: [PATCH 3/6] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2025-10-27-14-24-18.gh-issue-140381.aA6MJa.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2025-10-27-14-24-18.gh-issue-140381.aA6MJa.rst diff --git a/Misc/NEWS.d/next/Tests/2025-10-27-14-24-18.gh-issue-140381.aA6MJa.rst b/Misc/NEWS.d/next/Tests/2025-10-27-14-24-18.gh-issue-140381.aA6MJa.rst new file mode 100644 index 00000000000000..a6e0f2b4ccc016 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-10-27-14-24-18.gh-issue-140381.aA6MJa.rst @@ -0,0 +1 @@ +Misc/NEWS entry: Fix flaky test_profiling tests on i686 and s390x architectures by increasing slow_fibonacci call frequency from every 5th iteration to every 2nd iteration. From 89dced764124fdad3da9dffba18eb689078fbb73 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 14:32:23 +0000 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2025-10-27-14-32-22.gh-issue-140381.N5o3pa.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2025-10-27-14-32-22.gh-issue-140381.N5o3pa.rst diff --git a/Misc/NEWS.d/next/Tests/2025-10-27-14-32-22.gh-issue-140381.N5o3pa.rst b/Misc/NEWS.d/next/Tests/2025-10-27-14-32-22.gh-issue-140381.N5o3pa.rst new file mode 100644 index 00000000000000..568a2b65d7d204 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-10-27-14-32-22.gh-issue-140381.N5o3pa.rst @@ -0,0 +1 @@ +Fix flaky test_profiling tests on i686 and s390x architectures by increasing slow_fibonacci call frequency from every 5th iteration to every 2nd iteration. From 7528be3f4e1e3b41353fca4d2c0821bcd1a38e76 Mon Sep 17 00:00:00 2001 From: Thierry Martos <81799048+ThierryMT@users.noreply.github.com> Date: Mon, 27 Oct 2025 07:37:44 -0700 Subject: [PATCH 5/6] Delete Misc/NEWS.d/next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst --- .../next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 Misc/NEWS.d/next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst diff --git a/Misc/NEWS.d/next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst b/Misc/NEWS.d/next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst deleted file mode 100644 index 08f69efc64ac9e..00000000000000 --- a/Misc/NEWS.d/next/Tests/2025-10-27-14-17-19.gh-issue-140381.oaL2G9.rst +++ /dev/null @@ -1,3 +0,0 @@ -NEWS Entry: Fix flaky test_profiling tests on i686 and s390x - architectures by increasing slow_fibonacci call - frequency from every 5th iteration to every 2nd iteration. From c5e3dc05685fbff413a12da827273f6527f86832 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 15:53:49 +0000 Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2025-10-27-15-53-47.gh-issue-140381.N5o3pa.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2025-10-27-15-53-47.gh-issue-140381.N5o3pa.rst diff --git a/Misc/NEWS.d/next/Tests/2025-10-27-15-53-47.gh-issue-140381.N5o3pa.rst b/Misc/NEWS.d/next/Tests/2025-10-27-15-53-47.gh-issue-140381.N5o3pa.rst new file mode 100644 index 00000000000000..568a2b65d7d204 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-10-27-15-53-47.gh-issue-140381.N5o3pa.rst @@ -0,0 +1 @@ +Fix flaky test_profiling tests on i686 and s390x architectures by increasing slow_fibonacci call frequency from every 5th iteration to every 2nd iteration.