>>> dzonegit: Building community/dzonegit 0.15-r4 (using abuild 3.15.0-r0) started Thu, 09 Oct 2025 17:06:00 +0000 >>> dzonegit: Validating /home/udu/aports/community/dzonegit/APKBUILD... >>> dzonegit: Analyzing dependencies... >>> dzonegit: Installing for build: build-base bind-tools git python3 py3-gpep517 py3-setuptools py3-pytest-runner py3-wheel py3-pytest WARNING: opening /home/udu/packages//community: No such file or directory WARNING: opening /home/udu/packages//main: No such file or directory fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz (1/36) Installing fstrm (0.6.1-r4) (2/36) Installing krb5-conf (1.0-r2) (3/36) Installing libcom_err (1.47.2-r2) (4/36) Installing keyutils-libs (1.6.3-r4) (5/36) Installing libverto (0.3.2-r2) (6/36) Installing krb5-libs (1.21.3-r0) (7/36) Installing json-c (0.18-r1) (8/36) Installing protobuf-c (1.5.2-r0) (9/36) Installing userspace-rcu (0.15.2-r0) (10/36) Installing libuv (1.51.0-r0) (11/36) Installing libxml2 (2.13.9-r0) (12/36) Installing bind-libs (9.20.13-r0) (13/36) Installing bind-tools (9.20.13-r0) (14/36) Installing py3-installer (0.7.0-r2) (15/36) Installing py3-installer-pyc (0.7.0-r2) (16/36) Installing py3-gpep517 (19-r0) (17/36) Installing py3-gpep517-pyc (19-r0) (18/36) Installing py3-parsing (3.2.3-r0) (19/36) Installing py3-parsing-pyc (3.2.3-r0) (20/36) Installing py3-packaging (25.0-r0) (21/36) Installing py3-packaging-pyc (25.0-r0) (22/36) Installing py3-setuptools (80.9.0-r0) (23/36) Installing py3-setuptools-pyc (80.9.0-r0) (24/36) Installing py3-iniconfig (2.1.0-r0) (25/36) Installing py3-iniconfig-pyc (2.1.0-r0) (26/36) Installing py3-pluggy (1.5.0-r0) (27/36) Installing py3-pluggy-pyc (1.5.0-r0) (28/36) Installing py3-py (1.11.0-r4) (29/36) Installing py3-py-pyc (1.11.0-r4) (30/36) Installing py3-pytest (8.3.5-r0) (31/36) Installing py3-pytest-pyc (8.3.5-r0) (32/36) Installing py3-pytest-runner (6.0.1-r1) (33/36) Installing py3-pytest-runner-pyc (6.0.1-r1) (34/36) Installing py3-wheel (0.46.1-r0) (35/36) Installing py3-wheel-pyc (0.46.1-r0) (36/36) Installing .makedepends-dzonegit (20251009.170601) Executing busybox-1.37.0-r19.trigger OK: 317 MiB in 125 packages >>> dzonegit: Cleaning up srcdir >>> dzonegit: Cleaning up pkgdir >>> dzonegit: Cleaning up tmpdir >>> dzonegit: Fetching https://github.com/oskar456/dzonegit/archive/v0.15/dzonegit-0.15.tar.gz >>> dzonegit: Fetching https://github.com/oskar456/dzonegit/archive/v0.15/dzonegit-0.15.tar.gz >>> dzonegit: Checking sha512sums... dzonegit-0.15.tar.gz: OK >>> dzonegit: Unpacking /var/cache/distfiles/dzonegit-0.15.tar.gz... 2025-10-09 17:06:02,190 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__ /usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) /usr/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() 2025-10-09 17:06:02,200 root INFO running bdist_wheel 2025-10-09 17:06:02,208 root INFO running build 2025-10-09 17:06:02,208 root INFO running build_py 2025-10-09 17:06:02,209 root INFO creating build/lib 2025-10-09 17:06:02,210 root INFO copying dzonegit.py -> build/lib 2025-10-09 17:06:02,213 root INFO installing to build/bdist.linux-x86_64/wheel 2025-10-09 17:06:02,213 root INFO running install 2025-10-09 17:06:02,217 root INFO running install_lib 2025-10-09 17:06:02,219 root INFO creating build/bdist.linux-x86_64/wheel 2025-10-09 17:06:02,219 root INFO copying build/lib/dzonegit.py -> build/bdist.linux-x86_64/wheel/. 2025-10-09 17:06:02,219 root INFO running install_egg_info 2025-10-09 17:06:02,221 root INFO running egg_info 2025-10-09 17:06:02,222 root INFO creating dzonegit.egg-info 2025-10-09 17:06:02,222 root INFO writing dzonegit.egg-info/PKG-INFO 2025-10-09 17:06:02,222 root INFO writing dependency_links to dzonegit.egg-info/dependency_links.txt 2025-10-09 17:06:02,222 root INFO writing entry points to dzonegit.egg-info/entry_points.txt 2025-10-09 17:06:02,222 root INFO writing top-level names to dzonegit.egg-info/top_level.txt 2025-10-09 17:06:02,222 root INFO writing manifest file 'dzonegit.egg-info/SOURCES.txt' 2025-10-09 17:06:02,224 root INFO reading manifest file 'dzonegit.egg-info/SOURCES.txt' 2025-10-09 17:06:02,224 root INFO adding license file 'LICENSE' 2025-10-09 17:06:02,224 root INFO writing manifest file 'dzonegit.egg-info/SOURCES.txt' 2025-10-09 17:06:02,224 root INFO Copying dzonegit.egg-info to build/bdist.linux-x86_64/wheel/./dzonegit-0.15-py3.12.egg-info 2025-10-09 17:06:02,225 root INFO running install_scripts 2025-10-09 17:06:02,225 root INFO creating build/bdist.linux-x86_64/wheel/dzonegit-0.15.dist-info/WHEEL 2025-10-09 17:06:02,225 wheel INFO creating '/home/udu/aports/community/dzonegit/src/dzonegit-0.15/.dist/.tmp-db12wkuz/dzonegit-0.15-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2025-10-09 17:06:02,225 wheel INFO adding 'dzonegit.py' 2025-10-09 17:06:02,226 wheel INFO adding 'dzonegit-0.15.dist-info/licenses/LICENSE' 2025-10-09 17:06:02,226 wheel INFO adding 'dzonegit-0.15.dist-info/METADATA' 2025-10-09 17:06:02,226 wheel INFO adding 'dzonegit-0.15.dist-info/WHEEL' 2025-10-09 17:06:02,226 wheel INFO adding 'dzonegit-0.15.dist-info/entry_points.txt' 2025-10-09 17:06:02,226 wheel INFO adding 'dzonegit-0.15.dist-info/top_level.txt' 2025-10-09 17:06:02,226 wheel INFO adding 'dzonegit-0.15.dist-info/RECORD' 2025-10-09 17:06:02,226 root INFO removing build/bdist.linux-x86_64/wheel 2025-10-09 17:06:02,226 gpep517 INFO The backend produced .dist/dzonegit-0.15-py3-none-any.whl dzonegit-0.15-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.11, pytest-8.3.5, pluggy-1.5.0 rootdir: /home/udu/aports/community/dzonegit/src/dzonegit-0.15 collected 21 items test_dzonegit.py ...FF......F..FF..... [100%] =================================== FAILURES =================================== ______________________________ test_compile_zone _______________________________ def test_compile_zone(): testzone = b""" $ORIGIN example.com. @ 60 IN SOA ns hostmaster ( 1234567890 ; serial 3600 ; refresh (1 hour) 900 ; retry (15 minutes) 1814400 ; expire (3 weeks) 60 ; minimum (1 minute) ) 60 IN NS ns ns.example.com. 60 IN A 192.0.2.1 """ r = dzonegit.compile_zone("example.org", testzone, missing_dot=True) assert not r.success assert r.zonehash is None assert r.stderr r = dzonegit.compile_zone("example.com", testzone, missing_dot=True) > assert r.success E AssertionError: assert False E + where False = CompileResults(success=False, serial=None, zonehash=None, stderr='zone example.com/IN: loading from master file /dev/stdin failed: file not found\nzone example.com/IN: not loaded due to errors.\n').success /home/udu/aports/community/dzonegit/src/dzonegit-0.15/test_dzonegit.py:76: AssertionError _________________________ test_compile_unsmudged_zone __________________________ def test_compile_unsmudged_zone(): testzone = b""" $ORIGIN example.com. @ 60 IN SOA ns hostmaster ( $UNIXTIME ; serial 3600 ; refresh (1 hour) 900 ; retry (15 minutes) 1814400 ; expire (3 weeks) 60 ; minimum (1 minute) ) 60 IN NS ns ns.example.com. 60 IN A 192.0.2.1 """ replaced = dzonegit.unixtime_directive(testzone) assert b"$UNIXTIME" not in replaced r = dzonegit.compile_zone("example.com", testzone, 123456) > assert r.success E AssertionError: assert False E + where False = CompileResults(success=False, serial=None, zonehash=None, stderr='zone example.com/IN: loading from master file /dev/stdin failed: file not found\nzone example.com/IN: not loaded due to errors.\n').success /home/udu/aports/community/dzonegit/src/dzonegit-0.15/test_dzonegit.py:103: AssertionError ___________________________ test_check_updated_zones ___________________________ git_dir = local('/tmp/pytest-of-udu/pytest-0') def test_check_updated_zones(git_dir): git_dir.chdir() git_dir.join("dummy.zone").write("") subprocess.call(["git", "add", "dummy.zone"]) with pytest.raises(ValueError): dzonegit.check_updated_zones(dzonegit.get_head()) subprocess.call(["git", "commit", "-m", "empty dummy.zone"]) with pytest.raises(ValueError): dzonegit.check_updated_zones("HEAD~", "HEAD") git_dir.join("dummy.zone").write(""" @ 60 IN SOA ns hm 1 60 60 60 60 60 NS ns.example.com. """) subprocess.call(["git", "add", "dummy.zone"]) > dzonegit.check_updated_zones(dzonegit.get_head()) /home/udu/aports/community/dzonegit/src/dzonegit-0.15/test_dzonegit.py:239: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ against = '70b1b6c3116f05d08d3a6724e3fb10a68619da35', revision = None autoupdate_serial = False, missing_dot = False def check_updated_zones( against, revision=None, autoupdate_serial=False, missing_dot=False, ): """ Check whether all updated zone files compile. """ unixtime = int(time.time()) for f in get_altered_files(against, "AMCR", revision): if not f.suffix == ".zone": continue print("Checking file {f}".format(f=f)) zonedata = get_file_contents(f, revision) zname = get_zone_name(f, zonedata) rnew = compile_zone(zname, zonedata, unixtime, missing_dot) if not rnew.success: > raise HookException( "New zone version does not compile", f, rnew.stderr, ) E dzonegit.HookException: dummy.zone: New zone version does not compile E E zone dummy/IN: loading from master file /dev/stdin failed: file not found E zone dummy/IN: not loaded due to errors. /home/udu/aports/community/dzonegit/src/dzonegit-0.15/dzonegit.py:242: HookException ----------------------------- Captured stdout call ----------------------------- Checking file dummy.zone [master 70b1b6c] empty dummy.zone 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 dummy.zone Checking file dummy.zone Checking file dummy.zone _________________________________ test_update __________________________________ against = '4b825dc642cb6eb9a060e54bf8d69288fbee4904' revision = '70b1b6c3116f05d08d3a6724e3fb10a68619da35', autoupdate_serial = False missing_dot = False def do_commit_checks( against, revision=None, autoupdate_serial=False, missing_dot=False, ): try: if not get_config("dzonegit.ignorewhitespaceerrors", bool): check_whitespace_errors(against, revision=revision) > check_updated_zones( against, revision=revision, autoupdate_serial=autoupdate_serial, missing_dot=missing_dot, ) /home/udu/aports/community/dzonegit/src/dzonegit-0.15/dzonegit.py:424: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ against = '4b825dc642cb6eb9a060e54bf8d69288fbee4904' revision = '70b1b6c3116f05d08d3a6724e3fb10a68619da35', autoupdate_serial = False missing_dot = False def check_updated_zones( against, revision=None, autoupdate_serial=False, missing_dot=False, ): """ Check whether all updated zone files compile. """ unixtime = int(time.time()) for f in get_altered_files(against, "AMCR", revision): if not f.suffix == ".zone": continue print("Checking file {f}".format(f=f)) zonedata = get_file_contents(f, revision) zname = get_zone_name(f, zonedata) rnew = compile_zone(zname, zonedata, unixtime, missing_dot) if not rnew.success: > raise HookException( "New zone version does not compile", f, rnew.stderr, ) E dzonegit.HookException: dummy.zone: New zone version does not compile E E zone dummy/IN: loading from master file /dev/stdin failed: file not found E zone dummy/IN: not loaded due to errors. /home/udu/aports/community/dzonegit/src/dzonegit-0.15/dzonegit.py:242: HookException During handling of the above exception, another exception occurred: git_dir = local('/tmp/pytest-of-udu/pytest-0') def test_update(git_dir): git_dir.chdir() os.environ.update({"GIT_DIR": str(git_dir.join(".git"))}) with pytest.raises(SystemExit): dzonegit.update(["update", "refs/heads/slave", "0", "0"]) > dzonegit.update([ "update", "refs/heads/master", "0"*40, dzonegit.get_head(), ]) /home/udu/aports/community/dzonegit/src/dzonegit-0.15/test_dzonegit.py:320: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/community/dzonegit/src/dzonegit-0.15/dzonegit.py:459: in update do_commit_checks(against, revision) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ against = '4b825dc642cb6eb9a060e54bf8d69288fbee4904' revision = '70b1b6c3116f05d08d3a6724e3fb10a68619da35', autoupdate_serial = False missing_dot = False def do_commit_checks( against, revision=None, autoupdate_serial=False, missing_dot=False, ): try: if not get_config("dzonegit.ignorewhitespaceerrors", bool): check_whitespace_errors(against, revision=revision) check_updated_zones( against, revision=revision, autoupdate_serial=autoupdate_serial, missing_dot=missing_dot, ) except HookException as e: print(e) > raise SystemExit(1) E SystemExit: 1 /home/udu/aports/community/dzonegit/src/dzonegit-0.15/dzonegit.py:431: SystemExit ----------------------------- Captured stdout call ----------------------------- Checking file dummy.zone dummy.zone: New zone version does not compile zone dummy/IN: loading from master file /dev/stdin failed: file not found zone dummy/IN: not loaded due to errors. _______________________________ test_pre_receive _______________________________ against = '4b825dc642cb6eb9a060e54bf8d69288fbee4904' revision = '70b1b6c3116f05d08d3a6724e3fb10a68619da35', autoupdate_serial = False missing_dot = False def do_commit_checks( against, revision=None, autoupdate_serial=False, missing_dot=False, ): try: if not get_config("dzonegit.ignorewhitespaceerrors", bool): check_whitespace_errors(against, revision=revision) > check_updated_zones( against, revision=revision, autoupdate_serial=autoupdate_serial, missing_dot=missing_dot, ) /home/udu/aports/community/dzonegit/src/dzonegit-0.15/dzonegit.py:424: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ against = '4b825dc642cb6eb9a060e54bf8d69288fbee4904' revision = '70b1b6c3116f05d08d3a6724e3fb10a68619da35', autoupdate_serial = False missing_dot = False def check_updated_zones( against, revision=None, autoupdate_serial=False, missing_dot=False, ): """ Check whether all updated zone files compile. """ unixtime = int(time.time()) for f in get_altered_files(against, "AMCR", revision): if not f.suffix == ".zone": continue print("Checking file {f}".format(f=f)) zonedata = get_file_contents(f, revision) zname = get_zone_name(f, zonedata) rnew = compile_zone(zname, zonedata, unixtime, missing_dot) if not rnew.success: > raise HookException( "New zone version does not compile", f, rnew.stderr, ) E dzonegit.HookException: dummy.zone: New zone version does not compile E E zone dummy/IN: loading from master file /dev/stdin failed: file not found E zone dummy/IN: not loaded due to errors. /home/udu/aports/community/dzonegit/src/dzonegit-0.15/dzonegit.py:242: HookException During handling of the above exception, another exception occurred: git_dir = local('/tmp/pytest-of-udu/pytest-0') def test_pre_receive(git_dir): git_dir.chdir() revisions = "{} {} ".format( "4b825dc642cb6eb9a060e54bf8d69288fbee4904", dzonegit.get_head(), ) stdin = StringIO(revisions + "refs/heads/slave\n") with pytest.raises(SystemExit): dzonegit.pre_receive(stdin) stdin = StringIO(revisions + "refs/heads/master\n") > dzonegit.pre_receive(stdin) /home/udu/aports/community/dzonegit/src/dzonegit-0.15/test_dzonegit.py:336: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/udu/aports/community/dzonegit/src/dzonegit-0.15/dzonegit.py:474: in pre_receive do_commit_checks(against, revision) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ against = '4b825dc642cb6eb9a060e54bf8d69288fbee4904' revision = '70b1b6c3116f05d08d3a6724e3fb10a68619da35', autoupdate_serial = False missing_dot = False def do_commit_checks( against, revision=None, autoupdate_serial=False, missing_dot=False, ): try: if not get_config("dzonegit.ignorewhitespaceerrors", bool): check_whitespace_errors(against, revision=revision) check_updated_zones( against, revision=revision, autoupdate_serial=autoupdate_serial, missing_dot=missing_dot, ) except HookException as e: print(e) > raise SystemExit(1) E SystemExit: 1 /home/udu/aports/community/dzonegit/src/dzonegit-0.15/dzonegit.py:431: SystemExit ----------------------------- Captured stdout call ----------------------------- Checking file dummy.zone dummy.zone: New zone version does not compile zone dummy/IN: loading from master file /dev/stdin failed: file not found zone dummy/IN: not loaded due to errors. =========================== short test summary info ============================ FAILED test_dzonegit.py::test_compile_zone - AssertionError: assert False FAILED test_dzonegit.py::test_compile_unsmudged_zone - AssertionError: assert... FAILED test_dzonegit.py::test_check_updated_zones - dzonegit.HookException: d... FAILED test_dzonegit.py::test_update - SystemExit: 1 FAILED test_dzonegit.py::test_pre_receive - SystemExit: 1 ========================= 5 failed, 16 passed in 0.74s ========================= >>> ERROR: dzonegit: check failed >>> dzonegit: Uninstalling dependencies... (1/36) Purging .makedepends-dzonegit (20251009.170601) (2/36) Purging bind-tools (9.20.13-r0) (3/36) Purging py3-gpep517-pyc (19-r0) (4/36) Purging py3-gpep517 (19-r0) (5/36) Purging py3-installer-pyc (0.7.0-r2) (6/36) Purging py3-installer (0.7.0-r2) (7/36) Purging py3-pytest-runner-pyc (6.0.1-r1) (8/36) Purging py3-pytest-runner (6.0.1-r1) (9/36) Purging py3-setuptools-pyc (80.9.0-r0) (10/36) Purging py3-setuptools (80.9.0-r0) (11/36) Purging py3-wheel-pyc (0.46.1-r0) (12/36) Purging py3-wheel (0.46.1-r0) (13/36) Purging py3-pytest-pyc (8.3.5-r0) (14/36) Purging py3-pytest (8.3.5-r0) (15/36) Purging py3-iniconfig-pyc (2.1.0-r0) (16/36) Purging py3-iniconfig (2.1.0-r0) (17/36) Purging py3-packaging-pyc (25.0-r0) (18/36) Purging py3-packaging (25.0-r0) (19/36) Purging py3-parsing-pyc (3.2.3-r0) (20/36) Purging py3-parsing (3.2.3-r0) (21/36) Purging py3-pluggy-pyc (1.5.0-r0) (22/36) Purging py3-pluggy (1.5.0-r0) (23/36) Purging py3-py-pyc (1.11.0-r4) (24/36) Purging py3-py (1.11.0-r4) (25/36) Purging bind-libs (9.20.13-r0) (26/36) Purging fstrm (0.6.1-r4) (27/36) Purging json-c (0.18-r1) (28/36) Purging krb5-libs (1.21.3-r0) (29/36) Purging krb5-conf (1.0-r2) (30/36) Purging libcom_err (1.47.2-r2) (31/36) Purging libuv (1.51.0-r0) (32/36) Purging libverto (0.3.2-r2) (33/36) Purging libxml2 (2.13.9-r0) (34/36) Purging protobuf-c (1.5.2-r0) (35/36) Purging userspace-rcu (0.15.2-r0) (36/36) Purging keyutils-libs (1.6.3-r4) Executing busybox-1.37.0-r19.trigger OK: 296 MiB in 89 packages