From 14affb58705c58873e8e8f1ad8d686da18f91ef3 Mon Sep 17 00:00:00 2001 From: Dostoievski Batista Date: Wed, 5 Apr 2023 09:28:25 -0300 Subject: [PATCH] python3.9: Add timeout regrtest Even after disabling python3.9 specific test we are seeing the build process getting stuck on the test run again. On previous run all the test took less then 3 minute, this change aim to set a timeout of 4 minutes to every test run by regrtest.py. Test Plan: PASS: Build the package with build-pkgs -c -p python3.9 successfully Partial-Bug: 2009722 Signed-off-by: Dostoievski Batista Change-Id: Ibf286223e5c2cd6616f7cc1c98b6953808d774b1 --- .../0001-Disabling-specific-test.patch | 27 ------------------- .../0001-adding-timeout-regrtest.patch | 24 +++++++++++++++++ python/python3.9/debian/deb_patches/series | 2 +- 3 files changed, 25 insertions(+), 28 deletions(-) delete mode 100644 python/python3.9/debian/deb_patches/0001-Disabling-specific-test.patch create mode 100644 python/python3.9/debian/deb_patches/0001-adding-timeout-regrtest.patch diff --git a/python/python3.9/debian/deb_patches/0001-Disabling-specific-test.patch b/python/python3.9/debian/deb_patches/0001-Disabling-specific-test.patch deleted file mode 100644 index 7772addf8..000000000 --- a/python/python3.9/debian/deb_patches/0001-Disabling-specific-test.patch +++ /dev/null @@ -1,27 +0,0 @@ -From da2d00927912096fa53ab204c6b6332123288135 Mon Sep 17 00:00:00 2001 -From: Dostoievski Batista -Date: Mon, 3 Apr 2023 08:53:00 -0300 -Subject: [PATCH] Disabling test that may cause hanging on building process - -Signed-off-by: Dostoievski Batista ---- - debian/rules | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/debian/rules b/debian/rules -index 1d632f2..68d71be 100755 ---- a/debian/rules -+++ b/debian/rules -@@ -313,6 +313,9 @@ PROFILE_EXCLUDES += \ - PROFILE_EXCLUDES += \ - test_cmd_line_script test_zipimport_support - -+PROFILE_EXCLUDES += \ -+ test_builtin test_openpty -+ - # TODO: update profiled-build.diff to support --next - # --next=20 - PROFILE_TASK = ../Lib/test/regrtest.py \ --- -2.25.1 - diff --git a/python/python3.9/debian/deb_patches/0001-adding-timeout-regrtest.patch b/python/python3.9/debian/deb_patches/0001-adding-timeout-regrtest.patch new file mode 100644 index 000000000..3e4c7fe93 --- /dev/null +++ b/python/python3.9/debian/deb_patches/0001-adding-timeout-regrtest.patch @@ -0,0 +1,24 @@ +From b8d2158ba83561554bbc88bcdeb7de16eb776371 Mon Sep 17 00:00:00 2001 +From: Dostoievski Batista +Date: Mon, 10 Apr 2023 16:31:49 -0300 +Subject: [PATCH] Adding timeout for regrtest.py +Signed-off-by: Dostoievski Batista +--- + debian/rules | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/debian/rules b/debian/rules +index 1d632f2..1bb7f39 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -316,7 +316,7 @@ PROFILE_EXCLUDES += \ + # TODO: update profiled-build.diff to support --next + # --next=20 + PROFILE_TASK = ../Lib/test/regrtest.py \ +- -s \ ++ -s --timeout 240 \ + -j 1 -unone,decimal \ + -x $(sort $(TEST_EXCLUDES) $(PROFILE_EXCLUDES)) + +-- +2.25.1 \ No newline at end of file diff --git a/python/python3.9/debian/deb_patches/series b/python/python3.9/debian/deb_patches/series index e7a810cb3..7c351e4d5 100644 --- a/python/python3.9/debian/deb_patches/series +++ b/python/python3.9/debian/deb_patches/series @@ -1 +1 @@ -0001-Disabling-specific-test.patch \ No newline at end of file +0001-adding-timeout-regrtest.patch \ No newline at end of file