Diff of the two buildlogs: -- --- b1/build.log 2025-01-25 18:44:22.112679863 +0000 +++ b2/build.log 2025-01-25 18:46:19.291401225 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Feb 27 13:06:44 -12 2026 -I: pbuilder-time-stamp: 1772240804 +I: Current time: Sun Jan 26 08:44:25 +14 2025 +I: pbuilder-time-stamp: 1737830665 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -24,52 +24,84 @@ dpkg-source: info: applying 0001-drop-bundler.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3801877/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1220890/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 Jan 25 18:44 /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/1220890/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1220890/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='6dbaa5474b2441b18615f32b2cb29fd1' - 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='3801877' - PS1='# ' - PS2='> ' + INVOCATION_ID=db7243063c734dc2a6c01e31f9648532 + 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=1220890 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.QuILwVEq/pbuilderrc_1XXh --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.QuILwVEq/b1 --logfile b1/build.log ruby-tty-reader_0.9.0-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.QuILwVEq/pbuilderrc_ZE2R --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.QuILwVEq/b2 --logfile b2/build.log ruby-tty-reader_0.9.0-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 codethink03-arm64 6.1.0-30-cloud-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-30-cloud-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 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3801877/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1220890/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -268,7 +300,7 @@ Get: 149 http://deb.debian.org/debian trixie/main arm64 ruby-tty-cursor all 0.7.1-2 [8076 B] Get: 150 http://deb.debian.org/debian trixie/main arm64 ruby-tty-screen all 0.8.1-2 [8924 B] Get: 151 http://deb.debian.org/debian trixie/main arm64 ruby-wisper all 2.0.1-2 [12.7 kB] -Fetched 54.4 MB in 1s (95.3 MB/s) +Fetched 54.4 MB in 1s (106 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.12-minimal:arm64. (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 ... 19970 files and directories currently installed.) @@ -774,8 +806,8 @@ Setting up tzdata (2024b-6) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Feb 28 01:07:06 UTC 2026. -Universal Time is now: Sat Feb 28 01:07:06 UTC 2026. +Local time is now: Sat Jan 25 18:45:14 UTC 2025. +Universal Time is now: Sat Jan 25 18:45:14 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -909,7 +941,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-tty-reader-0.9.0/ && 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-reader_0.9.0-1_source.changes +I: user script /srv/workspace/pbuilder/1220890/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/1220890/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-tty-reader-0.9.0/ && 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-reader_0.9.0-1_source.changes dpkg-buildpackage: info: source package ruby-tty-reader dpkg-buildpackage: info: source version 0.9.0-1 dpkg-buildpackage: info: source distribution unstable @@ -943,7 +979,7 @@ │ ruby-tty-reader: Installing files and building extensions for ruby3.1 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20260227-3816733-xjcwte/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250126-1241553-ijemce/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' @@ -955,7 +991,7 @@ Name: tty-reader Version: 0.9.0 File: tty-reader-0.9.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-tty-reader/usr/share/rubygems-integration/all /tmp/d20260227-3816733-xjcwte/tty-reader-0.9.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-tty-reader/usr/share/rubygems-integration/all /tmp/d20250126-1241553-ijemce/tty-reader-0.9.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-tty-reader-0.9.0/debian/ruby-tty-reader/usr/share/rubygems-integration/all/gems/tty-reader-0.9.0/lib/tty-reader.rb /build/reproducible-path/ruby-tty-reader-0.9.0/debian/ruby-tty-reader/usr/share/rubygems-integration/all/gems/tty-reader-0.9.0/lib/tty/reader.rb @@ -999,161 +1035,161 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-tty-reader-0.9.0/debian/ruby-tty-reader/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-tty-reader-0.9.0/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/aarch64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/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 41940 +Randomized with seed 13907 -TTY::Reader#read_keypress - reads single key press - reads multibyte key press - when Ctrl+C pressed - exits with 130 code when :exit option is chosen - defaults to raising InputInterrupt - skips handler when handler is nil - sends interrupt signal when :signal option is chosen - evaluates custom handler when proc object is provided - -TTY::Reader::Line - removes char before current cursor position +TTY::Reader#publish_keypress_event + publishes :keydown event for read_keypress + publishes :keyreturn event + publishes :keynum event + subscribes to multiple events No entry for terminal type "unknown"; using dumb terminal settings. No entry for terminal type "unknown"; using dumb terminal settings. No entry for terminal type "unknown"; using dumb terminal settings. - provides access to the prompt - moves cursor left and right - inserts characters inside a line - inserts characters with #insert call - inserts char at start of the line - inserts char at end of the line - replaces current line with new preserving cursor - inserts char inside the line - deletes char under current cursor position - inserts char outside of the line size - inserts chars in empty string + publishes :keypress events + publishes :keyescape events + publishes :keyup for read_keypress + subscribes to ctrl+X type of event event -TTY::Reader::History - excludes lines matching pattern - excludes empty lines by default - adds items to history without overflowing - iterates over lines - navigates through history buffer without cycling - allows to cycle through non-empty buffer - clears all lines - prevents duplicates - doesn't navigate through empty buffer - checks if navigation is possible - returns enumerator when iterating without a block - has no lines - allows duplicates - presents string representation - retrieves current line - gets line based on index - navigates through history buffer with cycling - defaults maximum size +TTY::Reader#subscribe + subscribes to listen to events only in a block + subscribes to receive events TTY::Reader#read_line - supports multiline prompts + echoes characters back displays custom input with a prompt - restores empty line when history has no more lines buffers non-empty input and restores it back when history has no more lines + restores empty line when history has no more lines masks characters reads multibyte line - doesn't echo characters back + supports multiline prompts deletes characters when backspace pressed - echoes characters back displays a prompt before input + doesn't echo characters back -TTY::Reader#publish_keypress_event - publishes :keypress events - publishes :keynum event - subscribes to ctrl+X type of event event - subscribes to multiple events - publishes :keyup for read_keypress - publishes :keyescape events - publishes :keyreturn event - publishes :keydown event for read_keypress - -TTY::Reader#subscribe - subscribes to receive events - subscribes to listen to events only in a block - -TTY::Reader#read_multiline - sets initial input line - reads lines with a prompt - reads no lines - reads a line and terminates on Ctrl+d - reads lines with echo off - reads a line and terminates on Ctrl+z - reads and yiels every line - reads multibyte lines - reads few lines - skips empty lines +TTY::Reader::History + checks if navigation is possible + presents string representation + allows to cycle through non-empty buffer + returns enumerator when iterating without a block + excludes empty lines by default + iterates over lines + defaults maximum size + adds items to history without overflowing + has no lines + prevents duplicates + navigates through history buffer without cycling + retrieves current line + navigates through history buffer with cycling + excludes lines matching pattern + gets line based on index + doesn't navigate through empty buffer + clears all lines + allows duplicates -TTY::Reader#with_history_disabled - leaves the line alone on :up - leaves the line alone on :down +TTY::Reader#read_keypress + reads multibyte key press + reads single key press + when Ctrl+C pressed + sends interrupt signal when :signal option is chosen + evaluates custom handler when proc object is provided + exits with 130 code when :exit option is chosen + defaults to raising InputInterrupt + skips handler when handler is nil TTY::Reader::KeyEvent#from - parses uppercase char - parses \\[13\~ as f3 key - parses \\[21\~ as f10 key - parses lowercase char - parses \\[19\~ as f8 key - parses number char - parses \\[24\~ as f12 key - parses \\[2\~ as insert key + parses \\[B as down key + exposes line value parses \\[E as clear key - parses \\[6\~ as page_down key - parses \\[\[B as f2 key + parses \\[1\~ as home key parses \\[12\~ as f2 key - parses \\[4\~ as end key - parses \\[\[D as f4 key - parses \\[B as down key - parses \\[\[A as f1 key - parses \\[20\~ as f9 key - parses \OQ as f2 key - parses \\[F as end key - parses \\[15\~ as f5 key - parses \\[5\~ as page_up key - parses \\[\[C as f3 key + parses \\[14\~ as f4 key parses \\[7\~ as home key - parses \OR as f3 key - parses \\[D as left key - parses backspace - parses uknown key - parses \\[3\~ as delete key - parses \OF as end key - parses \\[C as right key - parses \\[18\~ as f7 key - parses \OS as f4 key - parses \\[1\~ as home key - parses ctrl-a to ctrl-z inputs - exposes line value parses \\[A as up key + parses \\[18\~ as f7 key + parses number char + parses \\[15\~ as f5 key + parses \OF as end key parses \OP as f1 key + parses \\[2\~ as insert key + parses \\[20\~ as f9 key + parses \\[11\~ as f1 key + parses \OS as f4 key parses \\[17\~ as f6 key + parses \\[\[B as f2 key + parses \\[3\~ as delete key + parses \\[5\~ as page_up key + parses \\[19\~ as f8 key + parses uppercase char + parses \\[24\~ as f12 key + parses \\[C as right key + parses \OQ as f2 key + parses backspace + parses \\[D as left key + parses \\[6\~ as page_down key + parses \\[13\~ as f3 key + parses \\[4\~ as end key + parses lowercase char + parses \OR as f3 key + parses ctrl-a to ctrl-z inputs parses \\[H as home key - parses \\[11\~ as f1 key - parses \\[23\~ as f11 key + parses \\[\[D as f4 key + parses \\[F as end key + parses \\[21\~ as f10 key + parses \\[\[A as f1 key parses \\[\[E as f5 key - parses \\[14\~ as f4 key + parses uknown key + parses \\[\[C as f3 key + parses \\[23\~ as f11 key + +TTY::Reader::Line + inserts char outside of the line size + provides access to the prompt + moves cursor left and right + inserts char inside the line + inserts characters with #insert call + inserts char at end of the line + deletes char under current cursor position + inserts char at start of the line + inserts characters inside a line + removes char before current cursor position + inserts chars in empty string + replaces current line with new preserving cursor + +TTY::Reader#read_multiline + reads few lines + skips empty lines + reads lines with echo off + reads multibyte lines + reads a line and terminates on Ctrl+d + reads no lines + sets initial input line + reads lines with a prompt + reads a line and terminates on Ctrl+z + reads and yiels every line -Top 2 slowest examples (0.00918 seconds, 13.6% of total time): - TTY::Reader#read_keypress when Ctrl+C pressed sends interrupt signal when :signal option is chosen - 0.00518 seconds ./spec/unit/read_keypress_spec.rb:39 - TTY::Reader::Line moves cursor left and right - 0.004 seconds ./spec/unit/line_spec.rb:22 +TTY::Reader#with_history_disabled + leaves the line alone on :up + leaves the line alone on :down + +Top 2 slowest examples (0.03495 seconds, 14.4% of total time): + TTY::Reader#read_multiline reads and yiels every line + 0.01825 seconds ./spec/unit/read_multiline_spec.rb:45 + TTY::Reader#read_multiline reads a line and terminates on Ctrl+z + 0.0167 seconds ./spec/unit/read_multiline_spec.rb:24 Top 2 slowest example groups: TTY::Reader#read_multiline - 0.00169 seconds average (0.01693 seconds / 10 examples) ./spec/unit/read_multiline_spec.rb:3 - TTY::Reader#read_keypress - 0.00137 seconds average (0.00962 seconds / 7 examples) ./spec/unit/read_keypress_spec.rb:3 + 0.00839 seconds average (0.08386 seconds / 10 examples) ./spec/unit/read_multiline_spec.rb:3 + TTY::Reader#read_line + 0.00489 seconds average (0.04886 seconds / 10 examples) ./spec/unit/read_line_spec.rb:3 -Finished in 0.06765 seconds (files took 0.15107 seconds to load) +Finished in 0.24209 seconds (files took 0.39149 seconds to load) 112 examples, 0 failures -Randomized with seed 41940 +Randomized with seed 13907 /usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner @@ -1170,155 +1206,155 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-tty-reader-0.9.0/debian/ruby-tty-reader/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-tty-reader-0.9.0/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/aarch64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/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 49006 - -TTY::Reader#read_multiline - reads lines with echo off - skips empty lines - reads lines with a prompt - reads a line and terminates on Ctrl+d - sets initial input line - reads a line and terminates on Ctrl+z - reads and yiels every line - reads few lines - reads no lines - reads multibyte lines - -TTY::Reader::History - allows duplicates - clears all lines - adds items to history without overflowing - defaults maximum size - allows to cycle through non-empty buffer - presents string representation - excludes lines matching pattern - doesn't navigate through empty buffer - excludes empty lines by default - checks if navigation is possible - has no lines - retrieves current line - iterates over lines - navigates through history buffer without cycling - navigates through history buffer with cycling - returns enumerator when iterating without a block - prevents duplicates - gets line based on index - -TTY::Reader::Line - inserts characters inside a line - inserts char outside of the line size - deletes char under current cursor position - inserts char inside the line - moves cursor left and right - inserts char at start of the line - inserts chars in empty string - replaces current line with new preserving cursor - inserts char at end of the line - inserts characters with #insert call - provides access to the prompt - removes char before current cursor position - -TTY::Reader#publish_keypress_event - publishes :keyescape events - publishes :keypress events - publishes :keydown event for read_keypress - subscribes to ctrl+X type of event event - publishes :keynum event - publishes :keyup for read_keypress - subscribes to multiple events - publishes :keyreturn event - -TTY::Reader#read_keypress - reads single key press - reads multibyte key press - when Ctrl+C pressed - defaults to raising InputInterrupt - sends interrupt signal when :signal option is chosen - exits with 130 code when :exit option is chosen - skips handler when handler is nil - evaluates custom handler when proc object is provided +Randomized with seed 42868 TTY::Reader#with_history_disabled leaves the line alone on :down leaves the line alone on :up TTY::Reader#subscribe - subscribes to receive events subscribes to listen to events only in a block + subscribes to receive events TTY::Reader::KeyEvent#from - parses \\[17\~ as f6 key parses \\[3\~ as delete key - parses \\[\[B as f2 key - parses \\[6\~ as page_down key - parses \OP as f1 key - parses \\[\[D as f4 key - parses number char - parses ctrl-a to ctrl-z inputs - parses \\[\[A as f1 key parses \\[\[E as f5 key - parses \\[11\~ as f1 key - parses \\[C as right key - parses \\[A as up key - parses \\[15\~ as f5 key - parses \\[D as left key - parses \\[E as clear key parses \\[4\~ as end key - parses \\[21\~ as f10 key - parses lowercase char - parses \\[B as down key - parses \OF as end key + parses \OP as f1 key parses \\[23\~ as f11 key + parses \\[20\~ as f9 key + parses lowercase char + parses \\[6\~ as page_down key + parses \\[11\~ as f1 key + parses \\[2\~ as insert key + parses \\[12\~ as f2 key + parses \\[\[D as f4 key parses \\[F as end key - parses \\[19\~ as f8 key - parses \\[5\~ as page_up key - parses backspace - parses \\[14\~ as f4 key + parses \\[\[B as f2 key + parses \\[1\~ as home key parses \\[\[C as f3 key - parses \\[20\~ as f9 key - parses \OR as f3 key + parses \\[14\~ as f4 key + parses \\[D as left key + parses uknown key exposes line value + parses backspace + parses \\[H as home key + parses \\[\[A as f1 key + parses \OR as f3 key + parses \\[15\~ as f5 key + parses ctrl-a to ctrl-z inputs + parses \\[B as down key parses \\[7\~ as home key - parses \\[24\~ as f12 key + parses \OF as end key + parses number char + parses \\[21\~ as f10 key + parses \OS as f4 key parses \\[18\~ as f7 key + parses \\[C as right key + parses \\[17\~ as f6 key + parses \\[E as clear key parses \OQ as f2 key - parses uppercase char - parses \\[1\~ as home key - parses \\[2\~ as insert key - parses uknown key - parses \\[H as home key - parses \OS as f4 key parses \\[13\~ as f3 key - parses \\[12\~ as f2 key + parses \\[19\~ as f8 key + parses \\[24\~ as f12 key + parses uppercase char + parses \\[5\~ as page_up key + parses \\[A as up key TTY::Reader#read_line + echoes characters back + reads multibyte line deletes characters when backspace pressed supports multiline prompts - displays custom input with a prompt masks characters - restores empty line when history has no more lines - buffers non-empty input and restores it back when history has no more lines + displays custom input with a prompt doesn't echo characters back + buffers non-empty input and restores it back when history has no more lines + restores empty line when history has no more lines displays a prompt before input - echoes characters back - reads multibyte line -Top 2 slowest examples (0.09123 seconds, 53.7% of total time): - TTY::Reader#read_multiline reads lines with echo off - 0.08518 seconds ./spec/unit/read_multiline_spec.rb:81 - TTY::Reader#read_line restores empty line when history has no more lines - 0.00605 seconds ./spec/unit/read_line_spec.rb:120 +TTY::Reader#read_keypress + reads multibyte key press + reads single key press + when Ctrl+C pressed + sends interrupt signal when :signal option is chosen + exits with 130 code when :exit option is chosen + skips handler when handler is nil + evaluates custom handler when proc object is provided + defaults to raising InputInterrupt + +TTY::Reader::History + prevents duplicates + clears all lines + iterates over lines + excludes lines matching pattern + allows duplicates + navigates through history buffer without cycling + adds items to history without overflowing + returns enumerator when iterating without a block + checks if navigation is possible + defaults maximum size + navigates through history buffer with cycling + has no lines + presents string representation + excludes empty lines by default + retrieves current line + allows to cycle through non-empty buffer + gets line based on index + doesn't navigate through empty buffer + +TTY::Reader#publish_keypress_event + subscribes to multiple events + publishes :keydown event for read_keypress + publishes :keypress events + publishes :keynum event + publishes :keyup for read_keypress + subscribes to ctrl+X type of event event + publishes :keyescape events + publishes :keyreturn event + +TTY::Reader::Line + deletes char under current cursor position + inserts characters inside a line + moves cursor left and right + inserts chars in empty string + inserts characters with #insert call + inserts char at start of the line + inserts char at end of the line + removes char before current cursor position + provides access to the prompt + inserts char inside the line + inserts char outside of the line size + replaces current line with new preserving cursor + +TTY::Reader#read_multiline + sets initial input line + reads a line and terminates on Ctrl+d + reads lines with echo off + reads no lines + reads and yiels every line + reads lines with a prompt + skips empty lines + reads a line and terminates on Ctrl+z + reads multibyte lines + reads few lines + +Top 2 slowest examples (0.23031 seconds, 53.8% of total time): + TTY::Reader#with_history_disabled leaves the line alone on :down + 0.20836 seconds ./spec/unit/history_disabled_spec.rb:26 + TTY::Reader#read_line supports multiline prompts + 0.02196 seconds ./spec/unit/read_line_spec.rb:97 Top 2 slowest example groups: + TTY::Reader#with_history_disabled + 0.10742 seconds average (0.21485 seconds / 2 examples) ./spec/unit/history_disabled_spec.rb:3 TTY::Reader#read_multiline - 0.01072 seconds average (0.1072 seconds / 10 examples) ./spec/unit/read_multiline_spec.rb:3 - TTY::Reader#read_line - 0.00232 seconds average (0.02322 seconds / 10 examples) ./spec/unit/read_line_spec.rb:3 + 0.00602 seconds average (0.06025 seconds / 10 examples) ./spec/unit/read_multiline_spec.rb:3 -Finished in 0.17002 seconds (files took 0.1586 seconds to load) +Finished in 0.42776 seconds (files took 0.38336 seconds to load) 112 examples, 0 failures -Randomized with seed 49006 +Randomized with seed 42868 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1351,12 +1387,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/1220890/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1220890/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/3801877 and its subdirectories -I: Current time: Fri Feb 27 13:07:20 -12 2026 -I: pbuilder-time-stamp: 1772240840 +I: removing directory /srv/workspace/pbuilder/1220890 and its subdirectories +I: Current time: Sun Jan 26 08:46:18 +14 2025 +I: pbuilder-time-stamp: 1737830778