Source: pontos Version: 26.4.3-1 Severity: important Justification: fails autopkgtest on Debian CI infrastructure Tags: forky sid User: [email protected] Usertags: lxc
Hi, Debian CI is switching away from lxc containers in favor of incus Containers. This is motivated by security concerns from us; incus is based on lxc, but orchestrates containers substantially different: containers are not privileged (so root in the container is not uid 0 outside of it), and incus imposes a stricter isolation from the host system). pontos passes its tests under lxc, but fails under incus. The relevant part of the failure is (hopefully): > [...] > test_delete_key > (tests.github.api.test_users.GitHubAsyncRESTUsersTestCase.test_delete_key) > ... /usr/lib/python3/dist-packages/pontos/github/api/users.py:254: > RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never > awaited > Coroutine created at (most recent call last) > File "/usr/lib/python3.13/unittest/async_case.py", line 116, in > _callMaybeAsync > return self._asyncioRunner.run( > File "/usr/lib/python3.13/asyncio/runners.py", line 119, in run > return self._loop.run_until_complete(task) > File "/usr/lib/python3.13/asyncio/base_events.py", line 712, in > run_until_complete > self.run_forever() > File "/usr/lib/python3.13/asyncio/base_events.py", line 683, in run_forever > self._run_once() > File "/usr/lib/python3.13/asyncio/base_events.py", line 2052, in _run_once > handle._run() > File "/usr/lib/python3.13/asyncio/events.py", line 89, in _run > self._context.run(self._callback, *self._args) > File > "/tmp/autopkgtest.gUuG0Y/autopkgtest_tmp/tests/github/api/test_users.py", > line 232, in test_delete_key > await self.api.delete_key(2) > File "/usr/lib/python3/dist-packages/pontos/github/api/users.py", line 254, > in delete_key > response.raise_for_status() > File "/usr/lib/python3.13/unittest/mock.py", line 1169, in __call__ > return self._mock_call(*args, **kwargs) > File "/usr/lib/python3.13/unittest/mock.py", line 1173, in _mock_call > return self._execute_mock_call(*args, **kwargs) > response.raise_for_status() > RuntimeWarning: Enable tracemalloc to get the object allocation traceback > ok > > [...] > ====================================================================== > FAIL: test_git_error (tests.git.test_git.GitExtendedTestCase.test_git_error) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/tmp/autopkgtest.gUuG0Y/autopkgtest_tmp/tests/git/test_git.py", line > 1105, in test_git_error > self.assertEqual( > ~~~~~~~~~~~~~~~~^ > cm.exception.stderr, > ^^^^^^^^^^^^^^^^^^^^ > "fatal: not a git repository (or any of the parent directories): " > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > ".git\n", > ^^^^^^^^^ > ) > ^ > AssertionError: 'fata[27 chars] any parent up to mount point /)\nStopping at > [60 chars]).\n' != 'fata[27 chars] any of the parent directories): .git\n' > + fatal: not a git repository (or any of the parent directories): .git > - fatal: not a git repository (or any parent up to mount point /) > - Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). > > > ---------------------------------------------------------------------- > Ran 1058 tests in 3.577s > > FAILED (failures=1, skipped=1) The full autokpgtest logs are available at: https://ci.debian.net/experiments/8/regressions/ (please beware of pagination) Common types of failure and suggested fixes are being documented at: https://wiki.debian.org/ContinuousIntegration/LxcToIncus Note that for the time being, pontos is still being tested under lxc to avoid disturbing its testing migration test results. If you decide to add the `isolation-machine` restriction to get this package tested under qemu, please mention that explicitly when closing this bug (it's fine to do that only in the package changelog entry that closes the bug) so that we can configure your package for qemu on ci.debian.net.
signature.asc
Description: PGP signature

