Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-salt-factories for
openSUSE:Factory checked in at 2025-11-28 16:53:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-salt-factories (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-salt-factories.new.14147
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-salt-factories"
Fri Nov 28 16:53:16 2025 rev:6 rq:1320410 version:1.0.5
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-salt-factories/python-pytest-salt-factories.changes
2025-09-03 21:08:22.339022305 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-salt-factories.new.14147/python-pytest-salt-factories.changes
2025-11-28 16:55:04.863714348 +0100
@@ -1,0 +2,7 @@
+Fri Nov 28 05:13:27 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Only require pytest-subtests with pytest < 9.
+- Add patch support-pytest-9.patch:
+ * Do not overload fixture names and do not mark fixtures.
+
+-------------------------------------------------------------------
New:
----
_scmsync.obsinfo
build.specials.obscpio
support-pytest-9.patch
----------(New B)----------
New:- Only require pytest-subtests with pytest < 9.
- Add patch support-pytest-9.patch:
* Do not overload fixture names and do not mark fixtures.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-salt-factories.spec ++++++
--- /var/tmp/diff_new_pack.aigo5R/_old 2025-11-28 16:55:05.707749886 +0100
+++ /var/tmp/diff_new_pack.aigo5R/_new 2025-11-28 16:55:05.711750054 +0100
@@ -31,6 +31,8 @@
Source0:
https://files.pythonhosted.org/packages/source/p/pytest-salt-factories/pytest_salt_factories-%{version}.tar.gz
# PATCH-FIX-OPENSUSE fix_unit_tests.patch this patch is removing the
workaround in the unit test implementation so the test can pass when using our
openSUSE Salt 3006.0 package
Patch1: fix_unit_tests.patch
+# PATCH-FIX-UPSTREAM gh#saltstack/pytest-salt-factories#194 &
gh#saltstack/pytest-salt-factories#195
+Patch2: support-pytest-9.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module docker}
@@ -39,7 +41,7 @@
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 6.0.0}
BuildRequires: %{python_module pytest-shell-utilities}
-BuildRequires: %{python_module pytest-subtests}
+BuildRequires: %{python_module pytest-subtests if %python-pytest < 9}
BuildRequires: %{python_module pytest-system-statistics}
BuildRequires: %{python_module pyzmq}
BuildRequires: %{python_module salt}
++++++ _scmsync.obsinfo ++++++
mtime: 1764306824
commit: 62db507dce1ddd829f7ddeeb5eb4f0f77d9a3eb253fb99176225bfa5a4c41550
url: https://src.opensuse.org/python-pytest/python-pytest-salt-factories.git
revision: 62db507dce1ddd829f7ddeeb5eb4f0f77d9a3eb253fb99176225bfa5a4c41550
projectscmsync: https://src.opensuse.org/python-pytest/_ObsPrj.git
++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore 2025-11-28 07:28:54.000000000 +0100
@@ -0,0 +1 @@
+.osc
++++++ support-pytest-9.patch ++++++
>From 625f80869ea897cb06e17c3d74ddd2f134c7db38 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Fri, 28 Nov 2025 14:58:26 +1100
Subject: [PATCH] Do not overload docker_client fixtures
pytest fixtures are now executed in the order they are found, which
means a redeclared fixture will take precedence. This means that an
attempt to spin up the salt_factories fixture in the container
integration tests now has a dependency loop. Remove the overloaded
fixture, and perform the check further up the fixture chain.
---
.../factories/daemons/container/test_master.py | 12 ++++--------
.../factories/daemons/container/test_minion.py | 11 +++--------
2 files changed, 7 insertions(+), 16 deletions(-)
diff --git a/tests/integration/factories/daemons/container/test_master.py
b/tests/integration/factories/daemons/container/test_master.py
index 8f0a655c..221cb4e5 100644
--- a/tests/integration/factories/daemons/container/test_master.py
+++ b/tests/integration/factories/daemons/container/test_master.py
@@ -21,14 +21,6 @@
]
[email protected](scope="session")
-def docker_client(salt_factories, docker_client):
- if salt_factories.system_service: # pragma: no cover
- msg = "Test should not run against system install of Salt"
- raise pytest.skip.Exception(msg, _use_item_location=True)
- return docker_client
-
-
@pytest.fixture(scope="module")
def minion_id(salt_version):
return random_string(f"salt-minion-{salt_version}-", uppercase=False)
@@ -43,6 +35,10 @@ def master_id(salt_version):
def salt_master(
salt_factories, docker_client, docker_network_name, master_id,
host_docker_network_ip_address
):
+ if salt_factories.system_service: # pragma: no cover
+ msg = "Test should not run against system install of Salt"
+ raise pytest.skip.Exception(msg, _use_item_location=True)
+
config_overrides = {
"open_mode": True,
"user": "root",
diff --git a/tests/integration/factories/daemons/container/test_minion.py
b/tests/integration/factories/daemons/container/test_minion.py
index 89a92feb..dc1909a2 100644
--- a/tests/integration/factories/daemons/container/test_minion.py
+++ b/tests/integration/factories/daemons/container/test_minion.py
@@ -23,14 +23,6 @@
]
[email protected](scope="session")
-def docker_client(salt_factories, docker_client):
- if salt_factories.system_service: # pragma: no cover
- msg = "Test should not run against system install of Salt"
- raise pytest.skip.Exception(msg, _use_item_location=True)
- return docker_client
-
-
@pytest.fixture
def minion_id(salt_version):
return random_string(f"salt-minion-{salt_version}-", uppercase=False)
@@ -38,6 +30,9 @@ def minion_id(salt_version):
@pytest.fixture(scope="module")
def salt_master(salt_factories, host_docker_network_ip_address):
+ if salt_factories.system_service: # pragma: no cover
+ msg = "Test should not run against system install of Salt"
+ raise pytest.skip.Exception(msg, _use_item_location=True)
config_overrides = {
"interface": host_docker_network_ip_address,
"log_level_logfile": "quiet",
>From 7bf6da9ccaf6acab3688503bbd62315ae8fdcb98 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Fri, 28 Nov 2025 15:04:38 +1100
Subject: [PATCH] Do not apply a mark to a fixture
pytest 9 now errors if marks are applied to a fixture, which has never
had any effect, but now causes an error. Move the skipping check to the
test cases.
---
tests/integration/factories/daemons/ssh/test_salt_ssh.py | 2 +-
tests/integration/factories/daemons/sshd/test_sshd.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/integration/factories/daemons/ssh/test_salt_ssh.py
b/tests/integration/factories/daemons/ssh/test_salt_ssh.py
index 2e8fbed1..3c063947 100644
--- a/tests/integration/factories/daemons/ssh/test_salt_ssh.py
+++ b/tests/integration/factories/daemons/ssh/test_salt_ssh.py
@@ -15,7 +15,6 @@
@pytest.fixture(scope="module")
[email protected]_if_binaries_missing("sshd", "ssh-keygen")
def sshd(salt_factories):
# Set StrictModes to no because our config directory lives in /tmp and
those permissions
# are not acceptable by sshd strict paranoia.
@@ -54,6 +53,7 @@ def salt_ssh_cli(sshd, salt_factories, master):
@pytest.mark.skip_on_windows
[email protected]_if_binaries_missing("ssh", "sshd", "ssh-keygen")
def test_salt_ssh(salt_ssh_cli):
ret = salt_ssh_cli.run("test.echo", "It Works!", minion_tgt="localhost")
assert ret.returncode == 0
diff --git a/tests/integration/factories/daemons/sshd/test_sshd.py
b/tests/integration/factories/daemons/sshd/test_sshd.py
index 873a8dd2..0b4076bc 100644
--- a/tests/integration/factories/daemons/sshd/test_sshd.py
+++ b/tests/integration/factories/daemons/sshd/test_sshd.py
@@ -37,7 +37,7 @@ def test_sshd(sshd):
@pytest.mark.skip_on_windows
[email protected]_if_binaries_missing("ssh")
[email protected]_if_binaries_missing("ssh", "sshd", "ssh-keygen")
def test_connect(sshd, known_hosts_file):
ssh = shutil.which("ssh")
assert ssh is not None