Diff of the two buildlogs: -- --- b1/build.log 2025-01-23 11:06:09.328074196 +0000 +++ b2/build.log 2025-01-23 11:08:16.310338666 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jan 22 23:02:20 -12 2025 -I: pbuilder-time-stamp: 1737630140 +I: Current time: Fri Jan 24 01:06:18 +14 2025 +I: pbuilder-time-stamp: 1737630378 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -22,52 +22,84 @@ dpkg-source: info: unpacking ruby-tty-command_0.10.1-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3124/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/805/tmp/hooks/D01_modify_environment starting +debug: Running on virt64a. +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 Jan 23 11:06 /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/805/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/805/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + 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]="arm-unknown-linux-gnueabihf") + 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=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='96fc74c3e2404171bfbe5da25688c33f' - 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='3124' - PS1='# ' - PS2='> ' + INVOCATION_ID=bc9db7933b8646918fd7b8e2850b3ee2 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=805 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.0oyj9Kcb/pbuilderrc_0eRP --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.0oyj9Kcb/b1 --logfile b1/build.log ruby-tty-command_0.10.1-1.dsc' - SUDO_GID='110' - SUDO_UID='103' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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.0oyj9Kcb/pbuilderrc_Tm34 --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.0oyj9Kcb/b2 --logfile b2/build.log ruby-tty-command_0.10.1-1.dsc' + SUDO_GID=114 + SUDO_UID=108 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt32z 6.1.0-30-armmp-lpae #1 SMP Debian 6.1.124-1 (2025-01-12) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-30-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3124/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/805/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -261,7 +293,7 @@ Get: 148 http://deb.debian.org/debian trixie/main armhf ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [90.2 kB] Get: 149 http://deb.debian.org/debian trixie/main armhf ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 150 http://deb.debian.org/debian trixie/main armhf ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] -Fetched 53.3 MB in 13s (4232 kB/s) +Fetched 53.3 MB in 1s (39.1 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.12-minimal:armhf. (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 ... 19569 files and directories currently installed.) @@ -762,8 +794,8 @@ Setting up tzdata (2024b-6) ... Current default time zone: 'Etc/UTC' -Local time is now: Thu Jan 23 11:04:21 UTC 2025. -Universal Time is now: Thu Jan 23 11:04:21 UTC 2025. +Local time is now: Thu Jan 23 11:07:15 UTC 2025. +Universal Time is now: Thu Jan 23 11:07:15 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-tty-color (0.6.0-1) ... @@ -898,7 +930,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-tty-command-0.10.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 > ../ruby-tty-command_0.10.1-1_source.changes +I: user script /srv/workspace/pbuilder/805/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/805/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-tty-command-0.10.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 > ../ruby-tty-command_0.10.1-1_source.changes dpkg-buildpackage: info: source package ruby-tty-command dpkg-buildpackage: info: source version 0.10.1-1 dpkg-buildpackage: info: source distribution unstable @@ -932,7 +968,7 @@ │ ruby-tty-command: Installing files and building extensions for ruby3.1 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250122-11532-3an046/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250124-14021-qtlcdl/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on rake (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' @@ -944,7 +980,7 @@ Name: tty-command Version: 0.10.1 File: tty-command-0.10.1.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-tty-command/usr/share/rubygems-integration/all /tmp/d20250122-11532-3an046/tty-command-0.10.1.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-tty-command/usr/share/rubygems-integration/all /tmp/d20250124-14021-qtlcdl/tty-command-0.10.1.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-tty-command-0.10.1/debian/ruby-tty-command/usr/share/rubygems-integration/all/gems/tty-command-0.10.1/lib/tty-command.rb /build/reproducible-path/ruby-tty-command-0.10.1/debian/ruby-tty-command/usr/share/rubygems-integration/all/gems/tty-command-0.10.1/lib/tty/command.rb @@ -992,184 +1028,184 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-tty-command-0.10.1/debian/ruby-tty-command/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-tty-command-0.10.1/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/arm-linux-gnueabihf/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 37927 +Randomized with seed 63114 -TTY::Command input - reads user input data +TTY::Command::Truncator + overflows prefix and suffix + writes both prefix and suffix + writes content within maximum size + writes more bytes letter + omits bytes + reflows suffix with more content + reflows suffix with less content + writes nil content TTY::Command#run - times out infinite process without input or output - times out an infinite process with constant input data - times out an infite process with constant output + encodes output as unicode by default + encodes output as binary + encodes all commands output as binary + +TTY::Command::Printers::Pretty + prints output on error when only_output_on_error is true + prints command start without color + prints command start in color + prints command stderr data + prints successful command exit in color + doesn't print output on success when only_output_on_error is true + prints output on error & raises ExitError when only_output_on_error is true + prints command start without uuid + prints command stdout data + prints failure command exit in color + prints command exit without exit status in color + +TTY::Command#test + implements classic bash command + +TTY::Command :output + runs command and prints to a file + +TTY::Command::Cmd::new + runs command in specified directory with environment + accepts command with environment as [cmdname, arg1, ..., opts] + runs command in specified directory + runs command with umask + converts command to hash + runs command as a user in a group + runs command with umask, chdir & user + runs command as a group + requires non empty command argument + accepts environment as first argument + runs command as a user + escapes directory path with fanky characters + escapes environment values + accepts command with environemnt string keys + accepts command as [[cmdname, argv0], arg1, ...] + runs command with umask, user, chdir and env + accepts a command + escapes special characters in split arguments + accepts a command as heredoc + handles environment with fanky characters + runs command with umask, chdir + provides unique identifier + accepts command with multiple environment keys + updates command options with global only when not already present + escapes arguments that need escaping + accepts command as [cmdname, arg1, ...] + requires at least command argument TTY::Command::Printers::Null doesn't print command stderr data - doesn't print command start or exit doesn't print command stdout data - -TTY::Command dry run - allows to run command in dry mode - queries for dry mode - doesn't collect printout to stdin or stderr - runs command in dry run mode + doesn't print command start or exit TTY::Command :pty executes command in pseudo terminal mode as command option - executes command in pseudo terminal mode as global option logs phased output in pseudo terminal mode + executes command in pseudo terminal mode as global option -TTY::Command#run - encodes all commands output as binary - encodes output as unicode by default - encodes output as binary - -TTY::Command::Printers::Progress - prints failure command exit in color - doesn't print command stdout data - doesn't print command start - prints successful command exit in color - -TTY::Command::Truncator - writes both prefix and suffix - overflows prefix and suffix - writes more bytes letter - reflows suffix with more content - writes content within maximum size - reflows suffix with less content - omits bytes - writes nil content +TTY::Command#ruby + runs ruby with a single string argument + runs ruby with multiple arguments -TTY::Command::ExitError info - displays stdin & stdout - explains no stdin & stdout +TTY::Command redirect + redirects to a file as an array value + redirects 1 -> 2 + redirects STDOUT -> /dev/null + redirects :stdout -> :stderr + redirects to a file + redirects :out -> :err + redirects multiple fds to a file + redirects STDOUT -> :err + accepts standard shell redirects -TTY::Command#test - implements classic bash command +TTY::Command dry run + allows to run command in dry mode + queries for dry mode + runs command in dry run mode + doesn't collect printout to stdin or stderr TTY::Command :printer detects null printer + uses printer based on class name uses printer based on instance + uses custom printer fails to find printer based on name - uses printer based on class name - detects printer based on name fails to find printer for nil - uses custom printer + detects printer based on name -TTY::Command#ruby - runs ruby with a single string argument - runs ruby with multiple arguments +Custom Printer + prints command stdout data + prints command exit + accepts options + prints command start TTY::Command#run - runs command and fails with logging - runs command successfully with logging without uuid set locally - raises ExitError on command failure - preserves ANSI codes - does not persist environment variables - runs command successfully with logging without color - runs command and prints to stdout - streams output data - runs command successfully with logging - runs command successfully with logging without uuid set globally - logs phased output in one line - -TTY::Command::Printers::Pretty - prints command stdout data - prints command start in color - prints command start without uuid - prints output on error when only_output_on_error is true - doesn't print output on success when only_output_on_error is true - prints successful command exit in color - prints command exit without exit status in color - prints failure command exit in color - prints output on error & raises ExitError when only_output_on_error is true - prints command stderr data - prints command start without color + times out an infite process with constant output + times out an infinite process with constant input data + times out infinite process without input or output -TTY::Command :output - runs command and prints to a file +TTY::Command input + reads user input data TTY::Command::Printers::Quiet - doesn't print command start or exit - prints command stderr data doesn't print output on success when only_output_on_error is true + prints command stderr data prints command stdout data prints output on error when only_output_on_error is true + doesn't print command start or exit -TTY::Command::Cmd::new - runs command as a group - requires non empty command argument - runs command as a user in a group - escapes environment values - accepts a command as heredoc - accepts a command - provides unique identifier - accepts command with environemnt string keys - runs command with umask, chdir - accepts command with multiple environment keys - escapes directory path with fanky characters - runs command with umask, user, chdir and env - escapes special characters in split arguments - accepts command as [cmdname, arg1, ...] - updates command options with global only when not already present - accepts command with environment as [cmdname, arg1, ..., opts] - escapes arguments that need escaping - runs command in specified directory - accepts command as [[cmdname, argv0], arg1, ...] - runs command with umask - runs command in specified directory with environment - requires at least command argument - runs command with umask, chdir & user - accepts environment as first argument - handles environment with fanky characters - converts command to hash - runs command as a user +TTY::Command::ExitError info + explains no stdin & stdout + displays stdin & stdout + +TTY::Command::Printers::Progress + doesn't print command stdout data + prints successful command exit in color + prints failure command exit in color + doesn't print command start TTY::Command::Result - iterates over output with global delimiter - exist with non-zero code exits successfully + iterates over output with global delimiter + reads stdout accesses exit code + doesn't exit iterates over output with default delimiter provides runtime - doesn't exit - reads stdout isn't equivalent with another object + exist with non-zero code is the same with equivalent object iterates over output with argument delimiter -Custom Printer - prints command stdout data - prints command exit - accepts options - prints command start - -TTY::Command redirect - redirects STDOUT -> /dev/null - redirects :stdout -> :stderr - redirects to a file as an array value - accepts standard shell redirects - redirects 1 -> 2 - redirects :out -> :err - redirects multiple fds to a file - redirects STDOUT -> :err - redirects to a file +TTY::Command#run + preserves ANSI codes + does not persist environment variables + runs command successfully with logging + logs phased output in one line + runs command and fails with logging + runs command and prints to stdout + streams output data + runs command successfully with logging without uuid set locally + raises ExitError on command failure + runs command successfully with logging without color + runs command successfully with logging without uuid set globally -Top 2 slowest examples (1.43 seconds, 18.4% of total time): +Top 2 slowest examples (1.51 seconds, 24.1% of total time): TTY::Command::Printers::Pretty prints output on error when only_output_on_error is true - 0.74174 seconds ./spec/unit/printers/pretty_spec.rb:144 + 0.80561 seconds ./spec/unit/printers/pretty_spec.rb:144 TTY::Command::Printers::Pretty doesn't print output on success when only_output_on_error is true - 0.69175 seconds ./spec/unit/printers/pretty_spec.rb:97 + 0.70167 seconds ./spec/unit/printers/pretty_spec.rb:97 Top 2 slowest example groups: - TTY::Command input - 0.38956 seconds average (0.38956 seconds / 1 example) ./spec/unit/input_spec.rb:3 TTY::Command :pty - 0.36785 seconds average (1.1 seconds / 3 examples) ./spec/unit/pty_spec.rb:3 + 0.28348 seconds average (0.85043 seconds / 3 examples) ./spec/unit/pty_spec.rb:3 + TTY::Command input + 0.2614 seconds average (0.2614 seconds / 1 example) ./spec/unit/input_spec.rb:3 -Finished in 7.8 seconds (files took 0.76837 seconds to load) +Finished in 6.26 seconds (files took 0.65766 seconds to load) 120 examples, 0 failures -Randomized with seed 37927 +Randomized with seed 63114 /usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner @@ -1186,184 +1222,184 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-tty-command-0.10.1/debian/ruby-tty-command/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-tty-command-0.10.1/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/arm-linux-gnueabihf/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.3.0 ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 10751 +Randomized with seed 57898 -TTY::Command#ruby - runs ruby with multiple arguments - runs ruby with a single string argument +TTY::Command#run + runs command successfully with logging + raises ExitError on command failure + runs command successfully with logging without color + runs command successfully with logging without uuid set globally + streams output data + runs command and fails with logging + runs command successfully with logging without uuid set locally + does not persist environment variables + logs phased output in one line + preserves ANSI codes + runs command and prints to stdout + +TTY::Command::Printers::Null + doesn't print command stdout data + doesn't print command stderr data + doesn't print command start or exit + +TTY::Command::Printers::Quiet + doesn't print output on success when only_output_on_error is true + prints command stdout data + prints output on error when only_output_on_error is true + prints command stderr data + doesn't print command start or exit TTY::Command#run - encodes output as unicode by default - encodes all commands output as binary encodes output as binary + encodes all commands output as binary + encodes output as unicode by default + +TTY::Command input + reads user input data TTY::Command#run - times out infinite process without input or output times out an infinite process with constant input data times out an infite process with constant output + times out infinite process without input or output -TTY::Command input - reads user input data +TTY::Command::Printers::Progress + doesn't print command start + prints successful command exit in color + prints failure command exit in color + doesn't print command stdout data -TTY::Command::Printers::Quiet - doesn't print output on success when only_output_on_error is true - prints command stdout data - prints command stderr data - prints output on error when only_output_on_error is true - doesn't print command start or exit +TTY::Command dry run + allows to run command in dry mode + doesn't collect printout to stdin or stderr + queries for dry mode + runs command in dry run mode -TTY::Command#test - implements classic bash command +TTY::Command#ruby + runs ruby with multiple arguments + runs ruby with a single string argument + +TTY::Command::Result + isn't equivalent with another object + provides runtime + iterates over output with global delimiter + iterates over output with argument delimiter + reads stdout + is the same with equivalent object + iterates over output with default delimiter + exist with non-zero code + exits successfully + doesn't exit + accesses exit code TTY::Command :output runs command and prints to a file -TTY::Command::Truncator - omits bytes - overflows prefix and suffix - writes both prefix and suffix - writes nil content - writes more bytes letter - reflows suffix with less content - writes content within maximum size - reflows suffix with more content - TTY::Command::ExitError info displays stdin & stdout explains no stdin & stdout -TTY::Command dry run - runs command in dry run mode - queries for dry mode - allows to run command in dry mode - doesn't collect printout to stdin or stderr - -Custom Printer - prints command exit - prints command start - prints command stdout data - accepts options +TTY::Command :printer + detects null printer + uses printer based on instance + detects printer based on name + fails to find printer for nil + fails to find printer based on name + uses printer based on class name + uses custom printer TTY::Command :pty - executes command in pseudo terminal mode as command option - logs phased output in pseudo terminal mode executes command in pseudo terminal mode as global option + logs phased output in pseudo terminal mode + executes command in pseudo terminal mode as command option -TTY::Command::Printers::Pretty - doesn't print output on success when only_output_on_error is true - prints failure command exit in color - prints output on error & raises ExitError when only_output_on_error is true - prints command exit without exit status in color - prints command start in color - prints output on error when only_output_on_error is true - prints command stderr data +Custom Printer + prints command exit + accepts options + prints command start prints command stdout data - prints command start without color - prints command start without uuid - prints successful command exit in color TTY::Command redirect + redirects to a file as an array value + redirects :out -> :err + redirects to a file redirects STDOUT -> /dev/null - redirects STDOUT -> :err redirects 1 -> 2 accepts standard shell redirects - redirects :out -> :err - redirects :stdout -> :stderr - redirects to a file as an array value - redirects to a file + redirects STDOUT -> :err redirects multiple fds to a file + redirects :stdout -> :stderr + +TTY::Command#test + implements classic bash command TTY::Command::Cmd::new - accepts command with multiple environment keys - runs command with umask, user, chdir and env - requires non empty command argument - accepts command with environemnt string keys - handles environment with fanky characters - updates command options with global only when not already present - accepts a command - accepts environment as first argument + escapes environment values + runs command in specified directory with environment runs command in specified directory + runs command with umask + accepts command as [[cmdname, argv0], arg1, ...] runs command as a user - escapes directory path with fanky characters - runs command with umask, chdir - runs command as a user in a group - escapes special characters in split arguments + accepts command with environment as [cmdname, arg1, ..., opts] + accepts command with environemnt string keys + requires at least command argument + accepts command with multiple environment keys escapes arguments that need escaping + handles environment with fanky characters + escapes special characters in split arguments + accepts command as [cmdname, arg1, ...] converts command to hash + accepts environment as first argument accepts a command as heredoc - accepts command with environment as [cmdname, arg1, ..., opts] - runs command with umask, chdir & user - runs command with umask + runs command with umask, chdir + runs command as a user in a group + escapes directory path with fanky characters provides unique identifier - runs command in specified directory with environment - escapes environment values - accepts command as [[cmdname, argv0], arg1, ...] runs command as a group - requires at least command argument - accepts command as [cmdname, arg1, ...] - -TTY::Command :printer - uses printer based on class name - fails to find printer for nil - uses printer based on instance - uses custom printer - detects null printer - fails to find printer based on name - detects printer based on name - -TTY::Command::Result - provides runtime - exits successfully - exist with non-zero code - doesn't exit - reads stdout - isn't equivalent with another object - is the same with equivalent object - iterates over output with global delimiter - iterates over output with argument delimiter - accesses exit code - iterates over output with default delimiter + runs command with umask, user, chdir and env + requires non empty command argument + updates command options with global only when not already present + accepts a command + runs command with umask, chdir & user -TTY::Command::Printers::Progress - doesn't print command stdout data +TTY::Command::Printers::Pretty + prints command start in color + prints command start without color + prints command stdout data + doesn't print output on success when only_output_on_error is true + prints command stderr data + prints output on error when only_output_on_error is true + prints command exit without exit status in color prints successful command exit in color + prints output on error & raises ExitError when only_output_on_error is true prints failure command exit in color - doesn't print command start - -TTY::Command#run - streams output data - does not persist environment variables - runs command successfully with logging without uuid set locally - runs command and fails with logging - logs phased output in one line - preserves ANSI codes - raises ExitError on command failure - runs command and prints to stdout - runs command successfully with logging - runs command successfully with logging without color - runs command successfully with logging without uuid set globally + prints command start without uuid -TTY::Command::Printers::Null - doesn't print command stdout data - doesn't print command stderr data - doesn't print command start or exit +TTY::Command::Truncator + writes nil content + writes both prefix and suffix + writes more bytes letter + overflows prefix and suffix + omits bytes + reflows suffix with less content + writes content within maximum size + reflows suffix with more content -Top 2 slowest examples (1.64 seconds, 17.8% of total time): +Top 2 slowest examples (1.23 seconds, 18.8% of total time): + TTY::Command::Printers::Quiet prints output on error when only_output_on_error is true + 0.6275 seconds ./spec/unit/printers/quiet_spec.rb:54 TTY::Command::Printers::Pretty prints output on error & raises ExitError when only_output_on_error is true - 0.83863 seconds ./spec/unit/printers/pretty_spec.rb:120 - TTY::Command::Printers::Quiet doesn't print output on success when only_output_on_error is true - 0.80005 seconds ./spec/unit/printers/quiet_spec.rb:37 + 0.59829 seconds ./spec/unit/printers/pretty_spec.rb:120 Top 2 slowest example groups: TTY::Command :pty - 0.35153 seconds average (1.05 seconds / 3 examples) ./spec/unit/pty_spec.rb:3 - TTY::Command::Printers::Quiet - 0.31126 seconds average (1.56 seconds / 5 examples) ./spec/unit/printers/quiet_spec.rb:3 + 0.31862 seconds average (0.95586 seconds / 3 examples) ./spec/unit/pty_spec.rb:3 + TTY::Command input + 0.27911 seconds average (0.27911 seconds / 1 example) ./spec/unit/input_spec.rb:3 -Finished in 9.22 seconds (files took 0.55176 seconds to load) +Finished in 6.51 seconds (files took 0.66389 seconds to load) 120 examples, 0 failures -Randomized with seed 10751 +Randomized with seed 57898 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1396,12 +1432,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/805/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/805/tmp/hooks/B01_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/3124 and its subdirectories -I: Current time: Wed Jan 22 23:06:05 -12 2025 -I: pbuilder-time-stamp: 1737630365 +I: removing directory /srv/workspace/pbuilder/805 and its subdirectories +I: Current time: Fri Jan 24 01:08:12 +14 2025 +I: pbuilder-time-stamp: 1737630492