Package: src:napari-plugin-manager
Version: 0.1.10-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202606/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:napari-plugin-manager, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild --test-pytest
   dh_auto_clean -O--buildsystem=pybuild -O--test-pytest
   dh_autoreconf_clean -O--buildsystem=pybuild -O--test-pytest
   dh_clean -O--buildsystem=pybuild -O--test-pytest
 debian/rules binary
dh binary --buildsystem=pybuild --test-pytest
   dh_update_autotools_config -O--buildsystem=pybuild -O--test-pytest
   dh_autoreconf -O--buildsystem=pybuild -O--test-pytest
   dh_auto_configure -O--buildsystem=pybuild -O--test-pytest
   dh_auto_build -O--buildsystem=pybuild -O--test-pytest
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" 
module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14  
* Building wheel...
running bdist_wheel

[... snipped ...]

                'summary': '',
                'Home-page': '',
                'author': '',
                'license': '',
            }
            return meta
    
        class OldPluginManagerMock:
            def __init__(self):
                self.plugins = old_plugins.plugins
                self.enabled = old_plugins.enabled
    
            def iter_available(self):
                return self.plugins
    
            def discover(self):
                return None
    
            def is_blocked(self, plugin):
                return self.plugins[0][1]
    
            def set_blocked(self, plugin, blocked):
                self.enabled[0] = not blocked
                return
    
        monkeypatch.setattr(
            qt_plugin_dialog,
            'iter_napari_plugin_info',
            _iter_napari_pypi_plugin_info,
        )
    
        monkeypatch.setattr(
            base_qt_plugin_dialog, 'RestartWarningDialog', MagicMock()
        )
    
        # This is patching `napari.utils.misc.running_as_constructor_app` 
function
        # to mock a normal napari install.
        monkeypatch.setattr(
            qt_plugin_dialog, 'running_as_constructor_app', lambda: 
request.param
        )
>       monkeypatch.setattr(
            napari.plugins, 'plugin_manager', OldPluginManagerMock()
        )
E       AttributeError: <module 'napari.plugins' from 
'/usr/lib/python3/dist-packages/napari/plugins/__init__.py'> has no attribute 
'plugin_manager'

_tests/test_qt_plugin_dialog.py:172: AttributeError
_______ ERROR at setup of test_filter_available_plugins[no-constructor] ________

request = <SubRequest 'plugin_dialog' for <Function 
test_filter_available_plugins[no-constructor]>>
qtbot = <pytestqt.qtbot.QtBot object at 0x7f8cb2d46250>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8cb2c41650>
mock_pm = <npe2._pytest_plugin.TestPluginManager object at 0x7f8cb2c54e90>
plugins = <_tests.test_qt_plugin_dialog.PluginsMock object at 0x7f8cb2c55480>
old_plugins = <_tests.test_qt_plugin_dialog.OldPluginsMock object at 
0x7f8cb2c555b0>

    @pytest.fixture(params=[True, False], ids=['constructor', 'no-constructor'])
    def plugin_dialog(
        request,
        qtbot,
        monkeypatch,
        mock_pm,  # noqa
        plugins,
        old_plugins,
    ):
        """Fixture that provides a plugin dialog for a normal napari install."""
    
        class PluginManagerMock:
            def instance(self):
                return PluginManagerInstanceMock(plugins)
    
        class PluginManagerInstanceMock:
            def __init__(self, plugins):
                self.plugins = plugins.plugins
    
            def __iter__(self):
                yield from self.plugins
    
            def iter_manifests(self):
                yield from [mock_pm.get_manifest('my-plugin')]
    
            def is_disabled(self, name):
                return False
    
            def discover(self, include_npe1=True):
                return ['plugin']
    
            def enable(self, plugin):
                self.plugins[plugin] = True
                return
    
            def disable(self, plugin):
                self.plugins[plugin] = False
                return
    
        def mock_metadata(name):
            meta = {
                'version': '0.1.0',
                'summary': '',
                'Home-page': '',
                'author': '',
                'license': '',
            }
            return meta
    
        class OldPluginManagerMock:
            def __init__(self):
                self.plugins = old_plugins.plugins
                self.enabled = old_plugins.enabled
    
            def iter_available(self):
                return self.plugins
    
            def discover(self):
                return None
    
            def is_blocked(self, plugin):
                return self.plugins[0][1]
    
            def set_blocked(self, plugin, blocked):
                self.enabled[0] = not blocked
                return
    
        monkeypatch.setattr(
            qt_plugin_dialog,
            'iter_napari_plugin_info',
            _iter_napari_pypi_plugin_info,
        )
    
        monkeypatch.setattr(
            base_qt_plugin_dialog, 'RestartWarningDialog', MagicMock()
        )
    
        # This is patching `napari.utils.misc.running_as_constructor_app` 
function
        # to mock a normal napari install.
        monkeypatch.setattr(
            qt_plugin_dialog, 'running_as_constructor_app', lambda: 
request.param
        )
>       monkeypatch.setattr(
            napari.plugins, 'plugin_manager', OldPluginManagerMock()
        )
E       AttributeError: <module 'napari.plugins' from 
'/usr/lib/python3/dist-packages/napari/plugins/__init__.py'> has no attribute 
'plugin_manager'

_tests/test_qt_plugin_dialog.py:172: AttributeError
_________ ERROR at setup of test_filter_installed_plugins[constructor] _________

request = <SubRequest 'plugin_dialog' for <Function 
test_filter_installed_plugins[constructor]>>
qtbot = <pytestqt.qtbot.QtBot object at 0x7f8cb1150150>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8cb2c2ce50>
mock_pm = <npe2._pytest_plugin.TestPluginManager object at 0x7f8cb2c55220>
plugins = <_tests.test_qt_plugin_dialog.PluginsMock object at 0x7f8cb2c562c0>
old_plugins = <_tests.test_qt_plugin_dialog.OldPluginsMock object at 
0x7f8cb2c563f0>

    @pytest.fixture(params=[True, False], ids=['constructor', 'no-constructor'])
    def plugin_dialog(
        request,
        qtbot,
        monkeypatch,
        mock_pm,  # noqa
        plugins,
        old_plugins,
    ):
        """Fixture that provides a plugin dialog for a normal napari install."""
    
        class PluginManagerMock:
            def instance(self):
                return PluginManagerInstanceMock(plugins)
    
        class PluginManagerInstanceMock:
            def __init__(self, plugins):
                self.plugins = plugins.plugins
    
            def __iter__(self):
                yield from self.plugins
    
            def iter_manifests(self):
                yield from [mock_pm.get_manifest('my-plugin')]
    
            def is_disabled(self, name):
                return False
    
            def discover(self, include_npe1=True):
                return ['plugin']
    
            def enable(self, plugin):
                self.plugins[plugin] = True
                return
    
            def disable(self, plugin):
                self.plugins[plugin] = False
                return
    
        def mock_metadata(name):
            meta = {
                'version': '0.1.0',
                'summary': '',
                'Home-page': '',
                'author': '',
                'license': '',
            }
            return meta
    
        class OldPluginManagerMock:
            def __init__(self):
                self.plugins = old_plugins.plugins
                self.enabled = old_plugins.enabled
    
            def iter_available(self):
                return self.plugins
    
            def discover(self):
                return None
    
            def is_blocked(self, plugin):
                return self.plugins[0][1]
    
            def set_blocked(self, plugin, blocked):
                self.enabled[0] = not blocked
                return
    
        monkeypatch.setattr(
            qt_plugin_dialog,
            'iter_napari_plugin_info',
            _iter_napari_pypi_plugin_info,
        )
    
        monkeypatch.setattr(
            base_qt_plugin_dialog, 'RestartWarningDialog', MagicMock()
        )
    
        # This is patching `napari.utils.misc.running_as_constructor_app` 
function
        # to mock a normal napari install.
        monkeypatch.setattr(
            qt_plugin_dialog, 'running_as_constructor_app', lambda: 
request.param
        )
>       monkeypatch.setattr(
            napari.plugins, 'plugin_manager', OldPluginManagerMock()
        )
E       AttributeError: <module 'napari.plugins' from 
'/usr/lib/python3/dist-packages/napari/plugins/__init__.py'> has no attribute 
'plugin_manager'

_tests/test_qt_plugin_dialog.py:172: AttributeError
=============================== warnings summary ===============================
_tests/test_installer_process.py:82
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/_tests/test_installer_process.py:82:
 PytestUnknownMarkWarning: Unknown pytest.mark.needs_network - is this a typo?  
You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.needs_network

_tests/test_installer_process.py:403
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/_tests/test_installer_process.py:403:
 PytestUnknownMarkWarning: Unknown pytest.mark.needs_network - is this a typo?  
You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.needs_network

../../../../../../usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.py:325:
 16 warnings
  /usr/lib/python3/dist-packages/pydantic/_internal/_generate_schema.py:325: 
PydanticDeprecatedSince20: `json_encoders` is deprecated. See 
https://docs.pydantic.dev/2.13/concepts/serialization/#custom-serializers for 
alternatives. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic 
V2 Migration Guide at https://errors.pydantic.dev/2.13/migration/
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
===Flaky Test Report===

test_plugin_summaries passed 1 out of the required 2 times. Running test again 
until it passes 2 times.
test_plugin_summaries passed 2 out of the required 2 times. Success!

===End Flaky Test Report===
============================= slowest 10 durations =============================
0.27s setup    
.pybuild/cpython3_3.13/build/_tests/test_installer_process.py::test_pip_installer_invalid_action[NapariPipInstallerTool]
0.07s setup    
.pybuild/cpython3_3.13/build/_tests/test_installer_process.py::test_pip_installer_invalid_action[NapariUvInstallerTool]
0.01s call     
.pybuild/cpython3_3.13/build/_tests/test_installer_process.py::test_cancel_incorrect_job_id[NapariPipInstallerTool]
0.01s setup    
.pybuild/cpython3_3.13/build/_tests/test_installer_process.py::test_cancel_incorrect_job_id[NapariPipInstallerTool]
0.01s setup    
.pybuild/cpython3_3.13/build/_tests/test_qt_plugin_dialog.py::test_filter_not_available_plugins[constructor]

(5 durations < 0.005s hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
SKIPPED [2] _tests/test_installer_process.py:192: Disabled for Debian
SKIPPED [1] _tests/test_installer_process.py:257: Conda is not available.
SKIPPED [1] _tests/test_installer_process.py:362: Conda is not available.
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 5 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
====== 15 passed, 4 skipped, 3 deselected, 18 warnings, 5 errors in 1.59s ======
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -m 'not 
needs_network' -v
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" --parallel=2 returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to