From patchwork Thu Jun 25 05:42:30 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: auh@yoctoproject.org X-Patchwork-Id: 90900 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8368DCDE008 for ; Thu, 25 Jun 2026 05:42:44 +0000 (UTC) Received: from a27-31.smtp-out.us-west-2.amazonses.com (a27-31.smtp-out.us-west-2.amazonses.com [54.240.27.31]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.5035.1782366151015537123 for ; Wed, 24 Jun 2026 22:42:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@yoctoproject.org header.s=lvjh2tk576v2ro5mi6k4dt3mc6wpqbky header.b=EvuKgMCU; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=v65k8Pjr; spf=pass (domain: us-west-2.amazonses.com, ip: 54.240.27.31, mailfrom: 0101019efd4d1d6c-a1d4bdd7-86d3-4577-a18b-cde69cc27c67-000000@us-west-2.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=lvjh2tk576v2ro5mi6k4dt3mc6wpqbky; d=yoctoproject.org; t=1782366150; h=Content-Type:MIME-Version:From:To:Cc:Subject:Message-Id:Date; bh=JNaqwvNbZFMNLGsLqCXqu/anbQ4x5HPfnWccAJ2FcbA=; b=EvuKgMCUYfJ6EA+8qfvYJ6sthNHM5Z19j980cjUe87jotfBi/is/jXxPZiPjVqcg ALpVGGw3eXnQzG7rHkxJul1ZC70EssLCJJFYsCjCP4Lr+H6VA+dgRXGU5NVhR5Ds5vS 2xNHi1N6sKTP0jbCq0BFyVjfqJ/ckZyrWpZUpRd4= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1782366150; h=Content-Type:MIME-Version:From:To:Cc:Subject:Message-Id:Date:Feedback-ID; bh=JNaqwvNbZFMNLGsLqCXqu/anbQ4x5HPfnWccAJ2FcbA=; b=v65k8Pjrv7TfsaCo+KHhjChu5Vi79TSzFQCrcEPe9EOoU7RAduOcevI1f7fPSHEu CG4fpaq0dhXiQVP3XN68mzOqDDo8GhavVthKuTry6gkzJlt4Gi+lOB6y6aQXr1hjZSV 7AO0YwJ4Zu9dKhkhndymqCmJe+0NbolD2JCPQu6w= MIME-Version: 1.0 From: auh@yoctoproject.org To: Wang Mingyu Cc: openembedded-core@lists.openembedded.org Subject: [AUH] python3-click: upgrading to 8.4.2 SUCCEEDED Message-ID: <0101019efd4d1d6c-a1d4bdd7-86d3-4577-a18b-cde69cc27c67-000000@us-west-2.amazonses.com> Date: Thu, 25 Jun 2026 05:42:30 +0000 Feedback-ID: ::1.us-west-2.9np3MYPs3fEaOBysGKSlUD4KtcmPijcmS9Az2Hwf7iQ=:AmazonSES X-SES-Outgoing: 2026.06.25-54.240.27.31 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 25 Jun 2026 05:42:44 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/239537 Hello, this email is a notification from the Auto Upgrade Helper that the automatic attempt to upgrade the recipe(s) *python3-click* to *8.4.2* has Succeeded. Next steps: - apply the patch: git am 0001-python3-click-upgrade-8.4.1-8.4.2.patch - check the changes to upstream patches and summarize them in the commit message, - compile an image that contains the package - perform some basic sanity tests - amend the patch and sign it off: git commit -s --reset-author --amend - send it to the appropriate mailing list Alternatively, if you believe the recipe should not be upgraded at this time, you can fill RECIPE_NO_UPDATE_REASON in respective recipe file so that automatic upgrades would no longer be attempted. Please review the attached files for further information and build/update failures. Any problem please file a bug at https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Automated%20Update%20Handler Regards, The Upgrade Helper -- >8 -- From d825a9cd1292ef42e415dc51ea5836f239311f70 Mon Sep 17 00:00:00 2001 From: Upgrade Helper Date: Thu, 25 Jun 2026 05:28:11 +0000 Subject: [PATCH] python3-click: upgrade 8.4.1 -> 8.4.2 --- ...7494c991c9197902fdf4995e11b2da3e9762.patch | 173 ------------------ .../python/python3-click/pytest-fix.patch | 19 +- ...-click_8.4.1.bb => python3-click_8.4.2.bb} | 4 +- 3 files changed, 14 insertions(+), 182 deletions(-) delete mode 100644 meta/recipes-devtools/python/python3-click/ffcc7494c991c9197902fdf4995e11b2da3e9762.patch rename meta/recipes-devtools/python/{python3-click_8.4.1.bb => python3-click_8.4.2.bb} (82%) diff --git a/meta/recipes-devtools/python/python3-click/ffcc7494c991c9197902fdf4995e11b2da3e9762.patch b/meta/recipes-devtools/python/python3-click/ffcc7494c991c9197902fdf4995e11b2da3e9762.patch deleted file mode 100644 index e16f84ec9a..0000000000 --- a/meta/recipes-devtools/python/python3-click/ffcc7494c991c9197902fdf4995e11b2da3e9762.patch +++ /dev/null @@ -1,173 +0,0 @@ -"Fix pager test flackiness and add stress tests for echo_via_pager" - -From 7eb57cff7cd292fbd526eaf861c8f945ddeb07a3 Mon Sep 17 00:00:00 2001 -From: Kevin Deldycke -Date: Fri, 22 May 2026 11:13:12 +0200 -Subject: [PATCH] Fix pager test race by raising before yield - -Upstream-Status: Backport [https://github.com/pallets/click/commit/ffcc7494c991c9197902fdf4995e11b2da3e9762] - -Refs: #3470 #2899 ---- - pyproject.toml | 3 +- - src/click/_compat.py | 1 - - tests/test_stream_lifecycle.py | 4 +- - tests/test_utils.py | 79 +++++++++++++++++++++++++++++++--- - 4 files changed, 78 insertions(+), 9 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index e39ef21055..ed91e5d741 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -185,12 +185,11 @@ commands = [[ - ]] - - [tool.tox.env.stress] --description = "stress tests for stream lifecycle race conditions" -+description = "high-iteration stress tests for race conditions" - commands = [[ - "pytest", "-v", "--tb=short", "-x", "-m", "stress", - "--basetemp={env_tmp_dir}", - "--override-ini=addopts=", -- "tests/test_stream_lifecycle.py", - {replace = "posargs", default = [], extend = true}, - ]] - -diff --git a/src/click/_compat.py b/src/click/_compat.py -index 36c0e53975..134c4f3893 100644 ---- a/src/click/_compat.py -+++ b/src/click/_compat.py -@@ -12,7 +12,6 @@ - - CYGWIN = sys.platform.startswith("cygwin") - WIN = sys.platform.startswith("win") --MAC = sys.platform == "darwin" - auto_wrap_for_ansi: t.Callable[[t.TextIO], t.TextIO] | None = None - _ansi_re = re.compile(r"\033\[[;?0-9]*[a-zA-Z]") - -diff --git a/tests/test_stream_lifecycle.py b/tests/test_stream_lifecycle.py -index 42e26acc34..9f4aa20868 100644 ---- a/tests/test_stream_lifecycle.py -+++ b/tests/test_stream_lifecycle.py -@@ -484,7 +484,9 @@ def cli(): - # Category 6: Stress tests - high-iteration reproducers for race conditions - # - # These are marked with ``pytest.mark.stress`` so they can be included or --# excluded independently. The CI workflow runs them in a separate job. -+# excluded independently. The ``tox -e stress`` env collects every -+# ``pytest.mark.stress`` test across the suite (not just this file), so -+# stress regressions for other components live alongside their unit tests. - # --------------------------------------------------------------------------- - - -diff --git a/tests/test_utils.py b/tests/test_utils.py -index 139cd7324f..1aebf3cc5a 100644 ---- a/tests/test_utils.py -+++ b/tests/test_utils.py -@@ -16,7 +16,6 @@ - - import click._termui_impl - import click.utils --from click._compat import MAC - from click._compat import WIN - from click._utils import UNSET - -@@ -286,6 +285,11 @@ def _test_gen_func(): - - - def _test_gen_func_fails(): -+ raise RuntimeError("This is a test.") -+ yield # unreachable, keeps this a generator function -+ -+ -+def _test_gen_func_yields_then_fails(): - yield "test" - raise RuntimeError("This is a test.") - -@@ -315,10 +319,6 @@ def _test_simulate_keyboard_interrupt(file=None): - - - @pytest.mark.skipif(WIN, reason="Different behavior on windows.") --@pytest.mark.skipif( -- MAC and sys.version_info >= (3, 13) and not sys._is_gil_enabled(), -- reason="Generator exception tests are flaky in Python 3.14t on macOS.", --) - @pytest.mark.parametrize( - "pager_cmd", ["cat", "cat ", " cat ", "less", " less", " less "] - ) -@@ -456,6 +456,75 @@ def test_echo_via_pager(monkeypatch, capfd, pager_cmd, test, tmp_path): - ) - - -+@pytest.mark.skipif(WIN, reason="Different behavior on windows.") -+def test_echo_via_pager_yields_before_exception(monkeypatch, tmp_path): -+ """A generator that yields then raises: click writes the partial output to -+ the pager stream before propagating the exception. -+ -+ The pager file content is intentionally NOT asserted: pipe-drain timing -+ between click and the pager subprocess is outside click's control -+ (#2899, #3470). Spying on ``MaybeStripAnsi.write`` records what click sent -+ to the pager, which is deterministic regardless of scheduling. -+ """ -+ monkeypatch.setitem(os.environ, "PAGER", "cat") -+ monkeypatch.setattr(click._termui_impl, "isatty", lambda x: True) -+ -+ writes: list[str] = [] -+ real_write = click._termui_impl.MaybeStripAnsi.write -+ -+ def spy(self, text): -+ writes.append(text) -+ return real_write(self, text) -+ -+ monkeypatch.setattr(click._termui_impl.MaybeStripAnsi, "write", spy) -+ -+ pager_out_tmp = tmp_path / "pager_out.txt" -+ with ( -+ pager_out_tmp.open("w") as f, -+ patch.object(subprocess, "Popen", partial(subprocess.Popen, stdout=f)), -+ pytest.raises(RuntimeError, match="This is a test."), -+ ): -+ click.echo_via_pager(_test_gen_func_yields_then_fails()) -+ -+ assert "".join(writes) == "test", ( -+ f"click should have written the yielded chunk before exception, got {writes!r}" -+ ) -+ -+ -+@pytest.mark.stress -+@pytest.mark.skipif(WIN, reason="Different behavior on windows.") -+@pytest.mark.parametrize("_", range(1000)) -+def test_stress_echo_via_pager_exception_cleanup(_, monkeypatch, tmp_path): -+ """Repeated exceptions during ``echo_via_pager`` must not leak subprocesses. -+ -+ Regression coverage for the cleanup path in ``_pipepager``'s exception -+ handler (issue #2899, PR #3470). Each iteration spawns a real pager -+ subprocess, raises before any data is written and check there is no leak. -+ """ -+ monkeypatch.setitem(os.environ, "PAGER", "cat") -+ monkeypatch.setattr(click._termui_impl, "isatty", lambda x: True) -+ -+ spawned: list[subprocess.Popen] = [] -+ real_popen = subprocess.Popen -+ -+ def tracking_popen(*args, **kwargs): -+ p = real_popen(*args, **kwargs) -+ spawned.append(p) -+ return p -+ -+ pager_out_tmp = tmp_path / "pager_out.txt" -+ with ( -+ pager_out_tmp.open("w") as f, -+ patch.object(subprocess, "Popen", partial(tracking_popen, stdout=f)), -+ pytest.raises(RuntimeError), -+ ): -+ click.echo_via_pager(_test_gen_func_fails()) -+ -+ assert spawned, "pager subprocess was never started" -+ for p in spawned: -+ assert p.returncode is not None, "pager subprocess not reaped" -+ -+ - def test_echo_color_flag(monkeypatch, capfd): - isatty = True - monkeypatch.setattr(click._compat, "isatty", lambda x: isatty) diff --git a/meta/recipes-devtools/python/python3-click/pytest-fix.patch b/meta/recipes-devtools/python/python3-click/pytest-fix.patch index 662ad8aae9..abfa07120a 100644 --- a/meta/recipes-devtools/python/python3-click/pytest-fix.patch +++ b/meta/recipes-devtools/python/python3-click/pytest-fix.patch @@ -1,4 +1,8 @@ -Fix an error with newer versions of pytest (9.1.0) by converting the generator into a tuple: +From 1cdbe9829973a30037075d613b5a1d5a42e260d5 Mon Sep 17 00:00:00 2001 +From: Richard Purdie +Date: Mon, 15 Jun 2026 11:37:28 +0100 +Subject: [PATCH] Fix an error with newer versions of pytest (9.1.0) by + converting the generator into a tuple: E pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated. E Test: tests/test_basic.py::test_boolean_conversion, argvalues type: chain @@ -9,12 +13,15 @@ ERROR: tests/test_basic.py:tests/test_basic.py Signed-off-by: Richard Purdie Upstream-Status: Submitted [https://github.com/pallets/click/pull/3597] +--- + tests/test_basic.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) -Index: click-8.3.3/tests/test_basic.py -=================================================================== ---- click-8.3.3.orig/tests/test_basic.py -+++ click-8.3.3/tests/test_basic.py -@@ -258,10 +258,10 @@ def test_boolean_flag(runner, default, a +diff --git a/tests/test_basic.py b/tests/test_basic.py +index 34d22e7..8076dd8 100644 +--- a/tests/test_basic.py ++++ b/tests/test_basic.py +@@ -258,10 +258,10 @@ def test_boolean_flag(runner, default, args, expect): @pytest.mark.parametrize( ("value", "expect"), diff --git a/meta/recipes-devtools/python/python3-click_8.4.1.bb b/meta/recipes-devtools/python/python3-click_8.4.2.bb similarity index 82% rename from meta/recipes-devtools/python/python3-click_8.4.1.bb rename to meta/recipes-devtools/python/python3-click_8.4.2.bb index 53c75c333c..bb03575358 100644 --- a/meta/recipes-devtools/python/python3-click_8.4.1.bb +++ b/meta/recipes-devtools/python/python3-click_8.4.2.bb @@ -8,9 +8,7 @@ HOMEPAGE = "http://click.pocoo.org/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1fa98232fd645608937a0fdc82e999b8" -SRC_URI += "file://pytest-fix.patch" -SRC_URI += "file://ffcc7494c991c9197902fdf4995e11b2da3e9762.patch" -SRC_URI[sha256sum] = "918b5633eddf6b41c32d4f454bf0de810065c74e3f7dbf8ee5452f8be88d3e96" +SRC_URI[sha256sum] = "9a6cea6e60b17ebe0a44c5cc636d94f09bd66142c1cd7d8b4cd731c4917a15f6" inherit pypi python_flit_core ptest-python-pytest