python3.14-poetry-2.4.1
default.checks.x86_64-linux.nixos-asus-rog-zephyrus-g14-2024
· build #5
· raw
1Sourcing python-remove-tests-dir-hook2Sourcing python-catch-conflicts-hook.sh3Sourcing python-remove-bin-bytecode-hook.sh4Sourcing pypa-build-hook5Using pypaBuildPhase6Sourcing python-runtime-deps-check-hook7Using pythonRuntimeDepsCheckHook8Sourcing pypa-install-hook9Using pypaInstallPhase10Sourcing python-imports-check-hook.sh11Using pythonImportsCheckPhase12Sourcing python-namespaces-hook13Sourcing python-catch-conflicts-hook.sh14Sourcing pytest-check-hook15Using pytestCheckPhase
unpackPhase
16unpacking source archive /nix/store/b39brcci18464vilfcf3va4qcz5xafky-source17source root is source18setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tests/vcs/git/test_system.py"configurePhase
19no configure script, doing nothingbuildPhase
20Executing pypaBuildPhase21Creating a wheel...22pypa build flags: --no-isolation --outdir dist/ --wheel23* Getting build dependencies for wheel...24* Building wheel...25Successfully built poetry-2.4.1-py3-none-any.whl26Finished creating a wheel...27/build/source/dist /build/source28Unpacking to: unpacked/poetry-2.4.1...OK29Repacking wheel as ./poetry-2.4.1-py3-none-any.whl...OK30/build/source31Finished executing pypaBuildPhasepythonRuntimeDepsCheckHook
32Executing pythonRuntimeDepsCheck33Checking runtime dependencies for poetry-2.4.1-py3-none-any.whl34Finished executing pythonRuntimeDepsCheckinstallPhase
35Executing pypaInstallPhase36Successfully installed poetry-2.4.1-py3-none-any.whl37Finished executing pypaInstallPhasepythonOutputDistPhase
38Executing pythonOutputDistPhase39Finished executing pythonOutputDistPhasefixupPhase
40shrinking RPATHs of ELF executables and libraries in /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.141checking for references to /build/ in /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1...42patching script interpreter paths in /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.143stripping (with command strip and flags -S -p) in /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/bin44shrinking RPATHs of ELF executables and libraries in /nix/store/9yn8cnz7vwrrr0vz3kim2jl3l7389wk3-python3.14-poetry-2.4.1-dist45checking for references to /build/ in /nix/store/9yn8cnz7vwrrr0vz3kim2jl3l7389wk3-python3.14-poetry-2.4.1-dist...46patching script interpreter paths in /nix/store/9yn8cnz7vwrrr0vz3kim2jl3l7389wk3-python3.14-poetry-2.4.1-dist47Rewriting #!/nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6/bin/python3.14 to #!/nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.648wrapping `/nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/bin/poetry'...49Executing pythonRemoveTestsDir50Finished executing pythonRemoveTestsDir51Executing pythonNamespacesHook52Enforcing PEP420 namespace: poetry53Finished executing pythonNamespacesHookinstallCheckPhase
54no Makefile or custom installCheckPhase, doing nothingpythonImportsCheckPhase
55Executing pythonImportsCheckPhasepytestCheckPhase
56Executing pytestCheckPhase57pytest flags: -m pytest -k not\ \(test_builder_should_execute_build_scripts\)\ and\ not\ \(test_env_system_packages_are_relative_to_lib\)\ and\ not\ \(test_install_warning_corrupt_root\)\ and\ not\ \(test_no_additional_output_in_verbose_mode\)\ and\ not\ \(test_project_plugins_are_installed_in_project_folder\)\ and\ not\ \(test_application_command_not_found_messages\)\ and\ not\ \(test_list_poetry_managed\)\ and\ not\ \(test_list_poetry_managed\)\ and\ not\ \(test_find_all_with_poetry_managed\)\ and\ not\ \(test_find_poetry_managed_pythons\)\ and\ not\ \(test_threading_property_types\)\ and\ not\ \(test_threading_single_thread_safe\)\ and\ not\ \(test_threading_property_caching\)\ and\ not\ \(test_threading_atomic_cached_property_different_instances\) -m not\ \(network\) --numprocesses=458============================= test session starts ==============================59platform linux -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.060rootdir: /build/source61configfile: pyproject.toml62testpaths: tests63plugins: mock-3.15.1, xdist-3.8.0, anyio-4.14.2644 workers [3114 items] m65........................................................................ [ 2%]66........................................................................ [ 4%]67......................................................sss............... [ 6%]68........................................................................ [ 9%]69........................................................................ [ 11%]70..........................s............................................. [ 13%]71........................................................................ [ 16%]72..........................................................s............. [ 18%]73........................................................................ [ 20%]74.....................................s.................................. [ 23%]75........................................................................ [ 25%]76........................................................................ [ 27%]77........................................................................ [ 30%]78.......................F..........................F...Fs................ [ 32%]79........................................................................ [ 34%]80........................................................................ [ 36%]81........................................................................ [ 39%]82........................................................................ [ 41%]83........................................................................ [ 43%]84........................................................................ [ 46%]85........................................................................ [ 48%]86........................................................................ [ 50%]87........................................................................ [ 53%]88........................................................................ [ 55%]89........................................................................ [ 57%]90........................................................................ [ 60%]91........................................................................ [ 62%]92........................................................................ [ 64%]93........................................................................ [ 67%]94........................................................................ [ 69%]95........................................................................ [ 71%]96........................................................................ [ 73%]97........................................................................ [ 76%]98........................................................................ [ 78%]99........................................................................ [ 80%]100........................................................................ [ 83%]101........................................................................ [ 85%]102........................................................................ [ 87%]103........................................................................ [ 90%]104................................................................sssss.ss [ 92%]105ssssssssssss............................................................ [ 94%]106........................................................................ [ 97%]107......................s...............s................................. [ 99%]108.....ssss......... [100%]109=================================== FAILURES ===================================110_________________ test_execute_executes_a_batch_of_operations __________________111[gw0] linux -- Python 3.14.6 /nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6/bin/python3.14112113mocker = <pytest_mock.plugin.MockerFixture object at 0x7fffed1da270>114config = <tests.conftest.Config object at 0x7fffed09ad60>115pool = <poetry.repositories.repository_pool.RepositoryPool object at 0x7fffeda08590>116io = <cleo.io.buffered_io.BufferedIO object at 0x7fffeda09df0>117tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_executes_a_batch_0')118env = MockEnv("/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_executes_a_batch_0/.venv")119copy_wheel = <function copy_wheel.<locals>._copy_wheel at 0x7fffee012140>120fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7fffed736090>121122 def test_execute_executes_a_batch_of_operations(123 mocker: MockerFixture,124 config: Config,125 pool: RepositoryPool,126 io: BufferedIO,127 tmp_path: Path,128 env: MockEnv,129 copy_wheel: Callable[[], Path],130 fixture_dir: FixtureDirGetter,131 ) -> None:132 wheel_install = mocker.patch.object(WheelInstaller, "install")133 134 config.merge({"cache-dir": str(tmp_path)})135 artifact_cache = ArtifactCache(cache_dir=config.artifacts_cache_directory)136 137 prepare_spy = mocker.spy(Chef, "_prepare")138 chef = Chef(artifact_cache, env, Factory.create_pool(config))139 chef.set_directory_wheel([copy_wheel(), copy_wheel()])140 chef.set_sdist_wheel(copy_wheel())141 142 io.set_verbosity(Verbosity.VERY_VERBOSE)143 144 executor = Executor(env, pool, config, io)145 executor._chef = chef146 147 file_package = Package(148 "demo",149 "0.1.0",150 source_type="file",151 source_url=(fixture_dir("distributions") / "demo-0.1.0-py2.py3-none-any.whl")152 .resolve()153 .as_posix(),154 )155 156 directory_package = Package(157 "simple-project",158 "1.2.3",159 source_type="directory",160 source_url=fixture_dir("simple_project").resolve().as_posix(),161 )162 163 git_package = Package(164 "demo",165 "0.1.0",166 source_type="git",167 source_reference="master",168 source_url="https://github.com/demo/demo.git",169 develop=True,170 )171 172 return_code = executor.execute(173 [174 Install(Package("pytest", "3.5.1")),175 Uninstall(Package("attrs", "17.4.0")),176 Update(Package("requests", "2.18.3"), Package("requests", "2.18.4")),177 Update(Package("pytest", "3.5.1"), Package("pytest", "3.5.0")),178 Uninstall(Package("clikit", "0.2.3")).skip("Not currently installed"),179 Install(file_package),180 Install(directory_package),181 Install(git_package),182 ]183 )184 185 expected = f"""186 Package operations: 4 installs, 2 updates, 1 removal187 188 - Installing pytest (3.5.1)189 - Removing attrs (17.4.0)190 - Updating requests (2.18.3 -> 2.18.4)191 - Downgrading pytest (3.5.1 -> 3.5.0)192 - Installing demo (0.1.0 {file_package.source_url})193 - Installing simple-project (1.2.3 {directory_package.source_url})194 - Installing demo (0.1.0 master)195 """196 197 expected_lines = set(expected.splitlines())198 output_lines = set(io.fetch_output().splitlines())199> assert output_lines == expected_lines200E assert {'', ' ...ackage)', ...} == {'', ' - Dow...roject)', ...}201E 202E Extra items in the left set:203E ' self._env.run_pip(*args, **kwargs)'204E ' result: int = getattr(self, f"_execute_{method}")(operation)'205E ' 1 /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:174 in pip_embedded'206E ' 164│ wheel = get_embed_wheel('207E ' at /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:168 in get_embedded_wheel'...208E 209E ...Full output truncated (32 lines hidden), use '-vv' to show210211/build/source/tests/installation/test_executor.py:270: AssertionError212______ test_execute_prints_warning_for_yanked_package[operations1-False] _______213[gw0] linux -- Python 3.14.6 /nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6/bin/python3.14214215config = <tests.conftest.Config object at 0x7fffedfc9e80>216pool = <poetry.repositories.repository_pool.RepositoryPool object at 0x7fffed997ef0>217io = <cleo.io.buffered_io.BufferedIO object at 0x7fffed996d50>218tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_prints_warning_fo1')219env = MockEnv("/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_prints_warning_fo1/.venv")220operations = [<Uninstall black (21.11b0)>, <Uninstall pytest (3.5.1)>]221has_warning = False222223 @pytest.mark.parametrize(224 "operations, has_warning",225 [226 (227 [Install(Package("black", "21.11b0")), Install(Package("pytest", "3.5.1"))],228 True,229 ),230 (231 [232 Uninstall(Package("black", "21.11b0")),233 Uninstall(Package("pytest", "3.5.1")),234 ],235 False,236 ),237 (238 [239 Update(Package("black", "19.10b0"), Package("black", "21.11b0")),240 Update(Package("pytest", "3.5.0"), Package("pytest", "3.5.1")),241 ],242 True,243 ),244 ],245 )246 def test_execute_prints_warning_for_yanked_package(247 config: Config,248 pool: RepositoryPool,249 io: BufferedIO,250 tmp_path: Path,251 env: MockEnv,252 operations: list[Operation],253 has_warning: bool,254 ) -> None:255 config.merge({"cache-dir": str(tmp_path)})256 257 executor = Executor(env, pool, config, io)258 259 return_code = executor.execute(operations)260 261 expected = (262 "Warning: The file chosen for install of black 21.11b0 "263 "(black-21.11b0-py3-none-any.whl) is yanked. Reason for being yanked: "264 "Broken regex dependency. Use 21.11b1 instead."265 )266 output = io.fetch_output()267 error = io.fetch_error()268> assert return_code == 0, f"\noutput: {output}\nerror: {error}\n"269E AssertionError: 270E output: 271E Package operations: 0 installs, 0 updates, 2 removals272E 273E - Removing black (21.11b0)274E 275E RuntimeError276E 277E embedded pip wheel not found278E 279E at /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:168 in get_embedded_wheel280E 164│ wheel = get_embed_wheel(281E 165│ distribution, f"{self.version_info[0]}.{self.version_info[1]}"282E 166│ )283E 167│ if wheel is None:284E → 168│ raise RuntimeError(f"embedded {distribution} wheel not found")285E 169│ return wheel.path286E 170│ 287E 171│ @property288E 172│ def pip_embedded(self) -> Path:289E 290E Cannot install black.291E 292E 293E error: 294E 295E assert 1 == 0296297/build/source/tests/installation/test_executor.py:496: AssertionError298_______ test_execute_prints_warning_for_yanked_package[operations2-True] _______299[gw0] linux -- Python 3.14.6 /nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6/bin/python3.14300301config = <tests.conftest.Config object at 0x7fffece56190>302pool = <poetry.repositories.repository_pool.RepositoryPool object at 0x7fffed12e2d0>303io = <cleo.io.buffered_io.BufferedIO object at 0x7fffed12d190>304tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_prints_warning_fo2')305env = MockEnv("/build/pytest-of-nixbld/pytest-0/popen-gw0/test_execute_prints_warning_fo2/.venv")306operations = [<Update black (19.10b0) to black (21.11b0)>, <Update pytest (3.5.0) to pytest (3.5.1)>]307has_warning = True308309 @pytest.mark.parametrize(310 "operations, has_warning",311 [312 (313 [Install(Package("black", "21.11b0")), Install(Package("pytest", "3.5.1"))],314 True,315 ),316 (317 [318 Uninstall(Package("black", "21.11b0")),319 Uninstall(Package("pytest", "3.5.1")),320 ],321 False,322 ),323 (324 [325 Update(Package("black", "19.10b0"), Package("black", "21.11b0")),326 Update(Package("pytest", "3.5.0"), Package("pytest", "3.5.1")),327 ],328 True,329 ),330 ],331 )332 def test_execute_prints_warning_for_yanked_package(333 config: Config,334 pool: RepositoryPool,335 io: BufferedIO,336 tmp_path: Path,337 env: MockEnv,338 operations: list[Operation],339 has_warning: bool,340 ) -> None:341 config.merge({"cache-dir": str(tmp_path)})342 343 executor = Executor(env, pool, config, io)344 345 return_code = executor.execute(operations)346 347 expected = (348 "Warning: The file chosen for install of black 21.11b0 "349 "(black-21.11b0-py3-none-any.whl) is yanked. Reason for being yanked: "350 "Broken regex dependency. Use 21.11b1 instead."351 )352 output = io.fetch_output()353 error = io.fetch_error()354> assert return_code == 0, f"\noutput: {output}\nerror: {error}\n"355E AssertionError: 356E output: 357E Package operations: 0 installs, 2 updates, 0 removals358E 359E - Updating black (19.10b0 -> 21.11b0)360E - Updating pytest (3.5.0 -> 3.5.1)361E 362E RuntimeError363E 364E embedded pip wheel not found365E 366E at /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:168 in get_embedded_wheel367E 164│ wheel = get_embed_wheel(368E 165│ distribution, f"{self.version_info[0]}.{self.version_info[1]}"369E 166│ )370E 167│ if wheel is None:371E → 168│ raise RuntimeError(f"embedded {distribution} wheel not found")372E 169│ return wheel.path373E 170│ 374E 171│ @property375E 172│ def pip_embedded(self) -> Path:376E 377E Cannot install pytest.378E 379E 380E RuntimeError381E 382E embedded pip wheel not found383E 384E at /nix/store/qlr0kcm6s4h8fkihwig07cpvfanmlrfi-python3.14-poetry-2.4.1/lib/python3.14/site-packages/poetry/utils/env/base_env.py:168 in get_embedded_wheel385E 164│ wheel = get_embed_wheel(386E 165│ distribution, f"{self.version_info[0]}.{self.version_info[1]}"387E 166│ )388E 167│ if wheel is None:389E → 168│ raise RuntimeError(f"embedded {distribution} wheel not found")390E 169│ return wheel.path391E 170│ 392E 171│ @property393E 172│ def pip_embedded(self) -> Path:394E 395E Cannot install black.396E 397E 398E error: <warning>Warning: The file chosen for install of black 21.11b0 (black-21.11b0-py3-none-any.whl) is yanked. Reason for being yanked: Broken regex dependency. Use 21.11b1 instead.399E 400E 401E assert 1 == 0402403/build/source/tests/installation/test_executor.py:496: AssertionError404=============================== warnings summary ===============================405../../nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124406../../nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124407../../nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124408../../nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124409 /nix/store/hdw07vcf3h94alv8xd2ga5nil4mwgyf3-python3.14-pytest-9.1.1/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.410 Test: tests/repositories/test_repository_pool.py::test_repository_from_single_repo_pool, argvalues type: generator411 Please convert to a list or tuple.412 See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators413 metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker)414415-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html416=========================== short test summary info ============================417SKIPPED [3] tests/console/commands/env/test_activate.py:59: Only Windows shells418SKIPPED [1] tests/console/commands/self/test_sync.py:26: Only relevant for `poetry self install`419SKIPPED [1] tests/console/commands/test_sync.py:26: Only relevant for `poetry install`420SKIPPED [1] tests/console/commands/test_run.py:158: Poetry only installs CMD script files for console scripts of editable dependencies on Windows421SKIPPED [1] tests/installation/test_executor.py:506: https://github.com/python-poetry/poetry/issues/7983422SKIPPED [19] tests/utils/test_compat.py:43: Windows paths423SKIPPED [1] tests/utils/env/test_env_manager.py:1347: requires darwin424SKIPPED [1] tests/utils/test_python_manager.py:104: Windows only425SKIPPED [1] tests/vcs/git/test_system.py:32: These tests requires git cli426SKIPPED [1] tests/vcs/git/test_system.py:37: These tests requires git cli427SKIPPED [1] tests/vcs/git/test_system.py:43: These tests requires git cli428SKIPPED [1] tests/vcs/git/test_system.py:48: These tests requires git cli429FAILED tests/installation/test_executor.py::test_execute_executes_a_batch_of_operations - assert {'', ' ...ackage)', ...} == {'', ' - Dow...roject)', ...}430FAILED tests/installation/test_executor.py::test_execute_prints_warning_for_yanked_package[operations1-False] - AssertionError: 431FAILED tests/installation/test_executor.py::test_execute_prints_warning_for_yanked_package[operations2-True] - AssertionError: 432====== 3 failed, 3079 passed, 32 skipped, 4 warnings in 113.03s (0:01:53) ======