Summary: | sys-apps/portage: test_auxdb.py incompatible with multiprocessing spawn start method | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Zac Medico <zmedico> |
Component: | Conceptual/Abstract Ideas | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/portage/pull/1163 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 916031 | ||
Bug Blocks: | 914876 |
Description
Zac Medico
2023-10-24 19:34:14 UTC
After fixing the unpicklable local functions, there's this: FAILED lib/portage/tests/dbapi/test_auxdb.py::AuxdbTestCase::test_anydbm - TypeError: cannot pickle '_dbm.dbm' object FAILED lib/portage/tests/dbapi/test_auxdb.py::AuxdbTestCase::test_sqite - TypeError: cannot pickle 'module' object The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=d7e64317e3a0d789e17dfea7b451c6b3b6cdb3c0 commit d7e64317e3a0d789e17dfea7b451c6b3b6cdb3c0 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2023-10-24 23:52:46 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2023-10-24 23:56:15 +0000 test_auxdb: multiprocessing spawn compat Use staticmethod and functools.partial to avoid unpicklable local functions. Also, don't try to pickle anydbm or sqlite modules since they currently are not picklable. Ultimately, it might be a good idea to implement pickling for the sqlite module. Bug: https://bugs.gentoo.org/916245 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/tests/dbapi/test_auxdb.py | 103 ++++++++++++++++++++++------------ 1 file changed, 66 insertions(+), 37 deletions(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b9128b401def05cac46f9e6d66048e5a0d888b8 commit 2b9128b401def05cac46f9e6d66048e5a0d888b8 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-25 05:48:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-25 05:48:40 +0000 sys-apps/portage: add 3.0.54 Closes: https://bugs.gentoo.org/905869 Closes: https://bugs.gentoo.org/915551 Closes: https://bugs.gentoo.org/915896 Closes: https://bugs.gentoo.org/916106 Closes: https://bugs.gentoo.org/916108 Closes: https://bugs.gentoo.org/916112 Closes: https://bugs.gentoo.org/916116 Closes: https://bugs.gentoo.org/916139 Closes: https://bugs.gentoo.org/916141 Closes: https://bugs.gentoo.org/916142 Closes: https://bugs.gentoo.org/916149 Closes: https://bugs.gentoo.org/916182 Closes: https://bugs.gentoo.org/916231 Closes: https://bugs.gentoo.org/916235 Closes: https://bugs.gentoo.org/916240 Closes: https://bugs.gentoo.org/916242 Closes: https://bugs.gentoo.org/916245 Closes: https://bugs.gentoo.org/916248 Closes: https://bugs.gentoo.org/899898 Closes: https://bugs.gentoo.org/906129 Closes: https://bugs.gentoo.org/906156 Closes: https://bugs.gentoo.org/916031 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-3.0.54.ebuild | 238 +++++++++++++++++++++++++++++++++ 2 files changed, 239 insertions(+) |