public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/poetry] rawhide: Backport upstream patches to fix FTBFS
Date: Wed, 04 Nov 2026 13:19:18 GMT [thread overview]
Message-ID: <179379835895.1.9821359506188639591.rpms-poetry-4197d4d17d82@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/poetry
Branch : rawhide
Commit : 4197d4d17d82f0d2552ccfdc29bb797b10186244
Author : Tomáš Hrnčiar <thrnciar@redhat.com>
Date : 2026-11-03T14:57:30+01:00
Stats : +112/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/poetry/c/4197d4d17d82f0d2552ccfdc29bb797b10186244?branch=rawhide
Log:
Backport upstream patches to fix FTBFS
---
diff --git a/12f29ff3.patch b/12f29ff3.patch
new file mode 100644
index 0000000..060e5f1
--- /dev/null
+++ b/12f29ff3.patch
@@ -0,0 +1,43 @@
+From 12f29ff3e130e04bca20b5476dea9b8cc527c2ff Mon Sep 17 00:00:00 2001
+From: David Hotham <david.hotham@blueyonder.co.uk>
+Date: Sun, 17 May 2026 11:33:47 +0100
+Subject: [PATCH] fix unreliable unit test (#10900)
+
+---
+ tests/utils/test_threading.py | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/tests/utils/test_threading.py b/tests/utils/test_threading.py
+index 35ff35a2127..a571d84e091 100644
+--- a/tests/utils/test_threading.py
++++ b/tests/utils/test_threading.py
+@@ -4,6 +4,7 @@
+ import logging
+ import os
+ import sys
++import threading
+ import time
+
+ from concurrent.futures import wait
+@@ -84,14 +85,20 @@ def test_threading_single_thread_safe() -> None:
+
+ def run_in_threads(instance: Example, property_name: str) -> None:
+ results = []
++ # Synchronize thread start so all workers enter __get__ before any thread
++ # finishes computing the property. Without this, on Python 3.12+ where
++ # functools.cached_property is lockless, the test for maximum-contention
++ # call counts is racy.
++ barrier = threading.Barrier(WORKER_COUNT)
+
+ def access_property() -> None:
++ barrier.wait(10)
+ results.append(instance.__getattribute__(property_name))
+
+ executor = ThreadPoolExecutor(max_workers=WORKER_COUNT)
+ futures = [executor.submit(access_property) for _ in range(WORKER_COUNT)]
+
+- wait(futures)
++ wait(futures, 10)
+ assert len(results) == WORKER_COUNT
+ assert all(result == (EXPECTED_VALUE + instance.value) for result in results)
+
diff --git a/fix-tests.patch b/fix-tests.patch
new file mode 100644
index 0000000..c2b6b28
--- /dev/null
+++ b/fix-tests.patch
@@ -0,0 +1,64 @@
+From 4a03b5cae09f41007e7656c5940406658f6371ac Mon Sep 17 00:00:00 2001
+From: David Hotham <david.hotham@blueyonder.co.uk>
+Date: Tue, 3 Nov 2026 14:17:30 +0100
+Subject: [PATCH] fix pipelines
+
+---
+ tests/console/test_exceptions_poetry_runtime_error.py | 6 ++++--
+ tests/installation/test_executor.py | 7 +------
+ tests/repositories/fixtures/pypi.org/json/isort/4.3.4.json | 4 ++++
+ 3 files changed, 9 insertions(+), 8 deletions(-)
+
+diff --git a/tests/console/test_exceptions_poetry_runtime_error.py b/tests/console/test_exceptions_poetry_runtime_error.py
+index e2acb93..c0feaa0 100644
+--- a/tests/console/test_exceptions_poetry_runtime_error.py
++++ b/tests/console/test_exceptions_poetry_runtime_error.py
+@@ -115,8 +115,10 @@ def test_poetry_runtime_error_get_text(
+ ["Additional info"],
+ [
+ "Subprocess error",
+- "<warning><b>Exception:</>\n"
+- " | Command '['cmd']' returned non-zero exit status 1.</>",
++ (
++ "<warning><b>Exception:</>\n"
++ f" | {CalledProcessError(1, ['cmd'])}</>"
++ ),
+ "<warning><b>Output:</>\n | stdout</>",
+ "<warning><b>Errors:</>\n | stderr</>",
+ "<info>Additional info</>",
+diff --git a/tests/installation/test_executor.py b/tests/installation/test_executor.py
+index 2de5df6..d1af8ea 100644
+--- a/tests/installation/test_executor.py
++++ b/tests/installation/test_executor.py
+@@ -1597,12 +1597,7 @@ hide the original error
+ """
+
+ if isinstance(exception, CalledProcessError):
+- expected_output += (
+- "\n | Command '['pip']' returned non-zero exit status 1."
+- "\n | "
+- "\n | original error"
+- "\n"
+- )
++ expected_output += f"\n | {exception}\n | \n | original error\n"
+
+ expected_output += f"""
+ Note: This error originates from the build backend, and is likely not a problem \
+diff --git a/tests/repositories/fixtures/pypi.org/json/isort/4.3.4.json b/tests/repositories/fixtures/pypi.org/json/isort/4.3.4.json
+index 5f90d46..9cf331e 100644
+--- a/tests/repositories/fixtures/pypi.org/json/isort/4.3.4.json
++++ b/tests/repositories/fixtures/pypi.org/json/isort/4.3.4.json
+@@ -58,6 +58,10 @@
+ "ownership": {
+ "organization": null,
+ "roles": [
++ {
++ "role": "Owner",
++ "user": "danielnoord"
++ },
+ {
+ "role": "Owner",
+ "user": "static"
+--
+2.56.0
+
diff --git a/poetry.spec b/poetry.spec
index def7de0..9459fa6 100644
--- a/poetry.spec
+++ b/poetry.spec
@@ -32,6 +32,11 @@ Patch: https://github.com/python-poetry/poetry/pull/11014.patch
# Python 3.15 tarfile normalizes ".." in member names before the traversal
# check, so the symlink traversal archive extracts safely instead of raising.
Patch: https://github.com/python-poetry/poetry/pull/11046.patch
+# Fix unreliable test_threading
+Patch: https://github.com/python-poetry/poetry/commit/12f29ff3.patch
+# Fix test output with the latest python 3.15.1
+# Upstream commit: https://github.com/python-poetry/poetry/commit/ee03ef0
+Patch: fix-tests.patch
BuildArch: noarch
BuildRequires: python3-devel
reply other threads:[~2026-11-04 13:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179379835895.1.9821359506188639591.rpms-poetry-4197d4d17d82@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox