Diff of the two buildlogs: -- --- b1/build.log 2024-12-21 21:36:38.296258363 +0000 +++ b2/build.log 2024-12-21 21:37:27.110040856 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Jan 23 15:58:53 -12 2026 -I: pbuilder-time-stamp: 1769227133 +I: Current time: Sun Dec 22 11:36:41 +14 2024 +I: pbuilder-time-stamp: 1734817001 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: unpacking python-fluent-logger_0.11.1-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2586684/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2696587/tmp/hooks/D01_modify_environment starting +debug: Running on codethink04-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 21 21:36 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2696587/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2696587/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='7d6e02c316c24ddcba1801384d117a08' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2586684' - PS1='# ' - PS2='> ' + INVOCATION_ID=3fcb7e7082b448aca98aec594608afce + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2696587 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.lWmcE4FU/pbuilderrc_oLRg --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.lWmcE4FU/b1 --logfile b1/build.log python-fluent-logger_0.11.1-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.lWmcE4FU/pbuilderrc_MMgt --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.lWmcE4FU/b2 --logfile b2/build.log python-fluent-logger_0.11.1-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink01-arm64 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2586684/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2696587/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -212,7 +244,7 @@ Get: 88 http://deb.debian.org/debian trixie/main arm64 python3-msgpack arm64 1.0.3-3+b4 [96.8 kB] Get: 89 http://deb.debian.org/debian trixie/main arm64 python3-pytest all 8.3.3-1 [249 kB] Get: 90 http://deb.debian.org/debian trixie/main arm64 python3-pytest-cov all 5.0.0-1 [26.8 kB] -Fetched 34.4 MB in 0s (125 MB/s) +Fetched 34.4 MB in 0s (149 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libjs-jquery. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20083 files and directories currently installed.) @@ -517,8 +549,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Jan 24 03:59:14 UTC 2026. -Universal Time is now: Sat Jan 24 03:59:14 UTC 2026. +Local time is now: Sat Dec 21 21:37:03 UTC 2024. +Universal Time is now: Sat Dec 21 21:37:03 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libpython3.13-minimal:arm64 (3.13.1-2) ... @@ -601,7 +633,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-fluent-logger-0.11.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../python-fluent-logger_0.11.1-1_source.changes +I: user script /srv/workspace/pbuilder/2696587/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/2696587/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-fluent-logger-0.11.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../python-fluent-logger_0.11.1-1_source.changes dpkg-buildpackage: info: source package python-fluent-logger dpkg-buildpackage: info: source version 0.11.1-1 dpkg-buildpackage: info: source distribution unstable @@ -637,44 +673,448 @@ tests/test_asynchandler.py ............... [ 20%] tests/test_asyncsender.py ....s.............. [ 45%] tests/test_event.py s... [ 51%] -tests/test_handler.py .................. [ 75%] +tests/test_handler.py ......F..FFFFFFFFF [ 75%] tests/test_sender.py .................. [100%] -======================== 72 passed, 2 skipped in 0.50s ========================= - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-fluent-logger/ -O--buildsystem=pybuild -I: pybuild plugin_pyproject:178: Copying package built for python3.12 to destdir - dh_installdocs -O--buildsystem=pybuild - dh_installchangelogs -O--buildsystem=pybuild - dh_python3 -O--buildsystem=pybuild - dh_installsystemduser -O--buildsystem=pybuild - dh_perl -O--buildsystem=pybuild - dh_link -O--buildsystem=pybuild - dh_strip_nondeterminism -O--buildsystem=pybuild - dh_compress -O--buildsystem=pybuild - dh_fixperms -O--buildsystem=pybuild - dh_missing -O--buildsystem=pybuild - dh_installdeb -O--buildsystem=pybuild - dh_gencontrol -O--buildsystem=pybuild - dh_md5sums -O--buildsystem=pybuild - dh_builddeb -O--buildsystem=pybuild -dpkg-deb: building package 'python3-fluent-logger' in '../python3-fluent-logger_0.11.1-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-fluent-logger_0.11.1-1_arm64.buildinfo - dpkg-genchanges --build=binary -O../python-fluent-logger_0.11.1-1_arm64.changes -dpkg-genchanges: info: binary-only upload (no source code included) - dpkg-source --after-build . -dpkg-source: info: using options from python-fluent-logger-0.11.1/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/ -dpkg-buildpackage: info: binary-only upload (no source included) -dpkg-genchanges: info: including full source code in upload +=================================== FAILURES =================================== +________________________ TestHandler.test_exclude_attrs ________________________ + +self = + + def test_exclude_attrs(self): + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter(fluent.handler.FluentRecordFormatter(exclude_attrs=[])) + log.addHandler(handler) +> log.info({"sample": "value"}) + +tests/test_handler.py:79: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:255: in emit + return _sender.emit_with_time( +fluent/sender.py:108: in emit_with_time + return self._send(bytes_) +fluent/asyncsender.py:124: in _send + self._queue_overflow_handler(discarded_bytes) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +discarded_bytes = b'\x93\xaaapp.follow\xcegg5\x13\x84\xa8sys_host\xb6i-capture-the-hostname\xa8sys_name\xabfluent.test\xaasys_module\xac...handler.py", line 342, in test_exception_message\n raise Exception("sample exception")\nException: sample exception' + + def queue_overflow_handler(discarded_bytes): +> raise QueueOverflowException(discarded_bytes) +E tests.test_asynchandler.QueueOverflowException: b'\x93\xaaapp.follow\xcegg5\x13\x84\xa8sys_host\xb6i-capture-the-hostname\xa8sys_name\xabfluent.test\xaasys_module\xactest_handler\xa7message\xda\x01\rit failed\nTraceback (most recent call last):\n File "/build/reproducible-path/python-fluent-logger-0.11.1/.pybuild/cpython3_3.12_fluent/build/tests/test_handler.py", line 342, in test_exception_message\n raise Exception("sample exception")\nException: sample exception' + +tests/test_asynchandler.py:321: QueueOverflowException +_______________________ TestHandler.test_format_dynamic ________________________ + +self = + + def test_format_dynamic(self): + def formatter(record): + return {"message": record.message, "x": record.x, "custom_value": 1} + + formatter.usesTime = lambda: True + + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter(fluent.handler.FluentRecordFormatter(fmt=formatter)) + log.addHandler(handler) +> log.info("Test with value '%s'", "test value", extra={"x": 1234}) + +tests/test_handler.py:133: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:255: in emit + return _sender.emit_with_time( +fluent/sender.py:108: in emit_with_time + return self._send(bytes_) +fluent/asyncsender.py:124: in _send + self._queue_overflow_handler(discarded_bytes) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +discarded_bytes = b"\x93\xaaapp.follow\xcegg5\x13\x84\xa8sys_host\xb6i-capture-the-hostname\xa8sys_name\xabfluent.test\xaasys_module\xactest_handler\xa7message\xbcTest with value 'test value'" + + def queue_overflow_handler(discarded_bytes): +> raise QueueOverflowException(discarded_bytes) +E tests.test_asynchandler.QueueOverflowException: b"\x93\xaaapp.follow\xcegg5\x13\x84\xa8sys_host\xb6i-capture-the-hostname\xa8sys_name\xabfluent.test\xaasys_module\xactest_handler\xa7message\xbcTest with value 'test value'" + +tests/test_asynchandler.py:321: QueueOverflowException +____________________ TestHandler.test_json_encoded_message _____________________ + +self = + + def test_json_encoded_message(self): + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter(fluent.handler.FluentRecordFormatter()) + log.addHandler(handler) + +> log.info('{"key": "hello world!", "param": "value"}') + +tests/test_handler.py:238: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:253: in emit + data = self.format(record) +/usr/lib/python3.12/logging/__init__.py:999: in format + return fmt.format(record) +fluent/handler.py:103: in format + data = self._formatter(record) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +record = + + def formatter(record): +> return {"message": record.message, "x": record.x, "custom_value": 1} +E AttributeError: 'LogRecord' object has no attribute 'x' + +tests/test_handler.py:123: AttributeError +______________ TestHandler.test_json_encoded_message_without_json ______________ + +self = + + def test_json_encoded_message_without_json(self): + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter( + fluent.handler.FluentRecordFormatter(format_json=False) + ) + log.addHandler(handler) + +> log.info('{"key": "hello world!", "param": "value"}') + +tests/test_handler.py:256: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:253: in emit + data = self.format(record) +/usr/lib/python3.12/logging/__init__.py:999: in format + return fmt.format(record) +fluent/handler.py:103: in format + data = self._formatter(record) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +record = + + def formatter(record): +> return {"message": record.message, "x": record.x, "custom_value": 1} +E AttributeError: 'LogRecord' object has no attribute 'x' + +tests/test_handler.py:123: AttributeError +___________________ TestHandler.test_non_string_dict_message ___________________ + +self = + + def test_non_string_dict_message(self): + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter(fluent.handler.FluentRecordFormatter()) + log.addHandler(handler) +> log.info({42: "root"}) + +tests/test_handler.py:327: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:253: in emit + data = self.format(record) +/usr/lib/python3.12/logging/__init__.py:999: in format + return fmt.format(record) +fluent/handler.py:103: in format + data = self._formatter(record) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +record = + + def formatter(record): +> return {"message": record.message, "x": record.x, "custom_value": 1} +E AttributeError: 'LogRecord' object has no attribute 'x' + +tests/test_handler.py:123: AttributeError +__________________ TestHandler.test_non_string_simple_message __________________ + +self = + + def test_non_string_simple_message(self): + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter(fluent.handler.FluentRecordFormatter()) + log.addHandler(handler) +> log.info(42) + +tests/test_handler.py:314: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:253: in emit + data = self.format(record) +/usr/lib/python3.12/logging/__init__.py:999: in format + return fmt.format(record) +fluent/handler.py:103: in format + data = self._formatter(record) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +record = + + def formatter(record): +> return {"message": record.message, "x": record.x, "custom_value": 1} +E AttributeError: 'LogRecord' object has no attribute 'x' + +tests/test_handler.py:123: AttributeError +________________ TestHandler.test_number_string_simple_message _________________ + +self = + + def test_number_string_simple_message(self): + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter(fluent.handler.FluentRecordFormatter()) + log.addHandler(handler) +> log.info("1") + +tests/test_handler.py:301: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:253: in emit + data = self.format(record) +/usr/lib/python3.12/logging/__init__.py:999: in format + return fmt.format(record) +fluent/handler.py:103: in format + data = self._formatter(record) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +record = + + def formatter(record): +> return {"message": record.message, "x": record.x, "custom_value": 1} +E AttributeError: 'LogRecord' object has no attribute 'x' + +tests/test_handler.py:123: AttributeError +___________________________ TestHandler.test_simple ____________________________ + +self = + + def test_simple(self): + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter(fluent.handler.FluentRecordFormatter()) + log.addHandler(handler) + +> log.info({"from": "userA", "to": "userB"}) + +tests/test_handler.py:34: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:253: in emit + data = self.format(record) +/usr/lib/python3.12/logging/__init__.py:999: in format + return fmt.format(record) +fluent/handler.py:103: in format + data = self._formatter(record) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +record = + + def formatter(record): +> return {"message": record.message, "x": record.x, "custom_value": 1} +E AttributeError: 'LogRecord' object has no attribute 'x' + +tests/test_handler.py:123: AttributeError +_______________ TestHandler.test_unstructured_formatted_message ________________ + +self = + + def test_unstructured_formatted_message(self): + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter(fluent.handler.FluentRecordFormatter()) + log.addHandler(handler) +> log.info("hello world, %s", "you!") + +tests/test_handler.py:287: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:253: in emit + data = self.format(record) +/usr/lib/python3.12/logging/__init__.py:999: in format + return fmt.format(record) +fluent/handler.py:103: in format + data = self._formatter(record) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +record = + + def formatter(record): +> return {"message": record.message, "x": record.x, "custom_value": 1} +E AttributeError: 'LogRecord' object has no attribute 'x' + +tests/test_handler.py:123: AttributeError +____________________ TestHandler.test_unstructured_message _____________________ + +self = + + def test_unstructured_message(self): + handler = fluent.handler.FluentHandler("app.follow", port=self._port) + + with handler: + log = get_logger("fluent.test") + handler.setFormatter(fluent.handler.FluentRecordFormatter()) + log.addHandler(handler) +> log.info("hello %s", "world") + +tests/test_handler.py:273: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.12/logging/__init__.py:1539: in info + self._log(INFO, msg, args, **kwargs) +/usr/lib/python3.12/logging/__init__.py:1684: in _log + self.handle(record) +/usr/lib/python3.12/logging/__init__.py:1700: in handle + self.callHandlers(record) +/usr/lib/python3.12/logging/__init__.py:1762: in callHandlers + hdlr.handle(record) +/usr/lib/python3.12/logging/__init__.py:1028: in handle + self.emit(record) +fluent/handler.py:253: in emit + data = self.format(record) +/usr/lib/python3.12/logging/__init__.py:999: in format + return fmt.format(record) +fluent/handler.py:103: in format + data = self._formatter(record) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +record = + + def formatter(record): +> return {"message": record.message, "x": record.x, "custom_value": 1} +E AttributeError: 'LogRecord' object has no attribute 'x' + +tests/test_handler.py:123: AttributeError +=========================== short test summary info ============================ +FAILED tests/test_handler.py::TestHandler::test_exclude_attrs - tests.test_as... +FAILED tests/test_handler.py::TestHandler::test_format_dynamic - tests.test_a... +FAILED tests/test_handler.py::TestHandler::test_json_encoded_message - Attrib... +FAILED tests/test_handler.py::TestHandler::test_json_encoded_message_without_json +FAILED tests/test_handler.py::TestHandler::test_non_string_dict_message - Att... +FAILED tests/test_handler.py::TestHandler::test_non_string_simple_message - A... +FAILED tests/test_handler.py::TestHandler::test_number_string_simple_message +FAILED tests/test_handler.py::TestHandler::test_simple - AttributeError: 'Log... +FAILED tests/test_handler.py::TestHandler::test_unstructured_formatted_message +FAILED tests/test_handler.py::TestHandler::test_unstructured_message - Attrib... +=================== 10 failed, 62 passed, 2 skipped in 1.80s =================== +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-fluent-logger-0.11.1/.pybuild/cpython3_3.12_fluent/build; python3.12 -m pytest tests +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12 returned exit code 13 +make: *** [debian/rules:6: binary] Error 25 +dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration +E: Failed autobuilding of package +I: user script /srv/workspace/pbuilder/2696587/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Sat Dec 21 21:37:25 UTC 2024 +Filesystem Size Used Avail Use% Mounted on +tmpfs 30G 0 30G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/2696587/tmp/hooks/C01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2586684 and its subdirectories -I: Current time: Fri Jan 23 15:59:37 -12 2026 -I: pbuilder-time-stamp: 1769227177 +I: removing directory /srv/workspace/pbuilder/2696587 and its subdirectories