Diff of the two buildlogs: -- --- b1/build.log 2025-02-05 18:35:56.895066696 +0000 +++ b2/build.log 2025-02-05 18:37:14.703548588 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Mar 10 12:56:40 -12 2026 -I: pbuilder-time-stamp: 1773190600 +I: Current time: Thu Feb 6 08:36:02 +14 2025 +I: pbuilder-time-stamp: 1738780562 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -23,54 +23,86 @@ dpkg-source: info: unpacking ruby-http-form-data_2.3.0-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/25996/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/48033/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-i386. +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 Feb 5 18: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/48033/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/48033/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-pc-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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='ba60ee89950a4e00bfbfefa3abb0c774' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='25996' - PS1='# ' - PS2='> ' + INVOCATION_ID=589dbee151b045e6991019991345cf69 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-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=48033 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.p7fMNvaQ/pbuilderrc_g2gv --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.p7fMNvaQ/b1 --logfile b1/build.log ruby-http-form-data_2.3.0-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152: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.p7fMNvaQ/pbuilderrc_MdhG --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.p7fMNvaQ/b2 --logfile b2/build.log ruby-http-form-data_2.3.0-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos6-i386 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/25996/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/48033/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -282,7 +314,7 @@ Get: 164 http://deb.debian.org/debian unstable/main i386 ruby-rspec-expectations all 3.13.0c0e0m0s1-2 [90.2 kB] Get: 165 http://deb.debian.org/debian unstable/main i386 ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 166 http://deb.debian.org/debian unstable/main i386 ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] -Fetched 58.3 MB in 1s (42.7 MB/s) +Fetched 58.3 MB in 3s (17.2 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-minimal:i386. (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 ... 19792 files and directories currently installed.) @@ -829,8 +861,8 @@ Setting up tzdata (2025a-2) ... Current default time zone: 'Etc/UTC' -Local time is now: Wed Mar 11 00:58:23 UTC 2026. -Universal Time is now: Wed Mar 11 00:58:23 UTC 2026. +Local time is now: Wed Feb 5 18:36:48 UTC 2025. +Universal Time is now: Wed Feb 5 18:36:48 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-minitest (5.25.4-1) ... @@ -981,7 +1013,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-http-form-data-2.3.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-http-form-data_2.3.0-1_source.changes +I: user script /srv/workspace/pbuilder/48033/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/48033/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-http-form-data-2.3.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-http-form-data_2.3.0-1_source.changes dpkg-buildpackage: info: source package ruby-http-form-data dpkg-buildpackage: info: source version 2.3.0-1 dpkg-buildpackage: info: source distribution unstable @@ -1049,147 +1085,124 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 4466 +Randomized with seed 49857 -HTTP::FormData::Part - #size - when body given as a String - is expected to eq 20 - #to_s - when body given as String - rewinds content - is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" +HTTP::FormData::File #rewind - when body given as String + when file given as IO + rewinds the underlying IO object + when file given as a String + rewinds the underlying IO object + when file given as File + rewinds the underlying IO object + when file given as a Pathname rewinds the underlying IO object #content_type - is expected to eq nil + is expected to eq "application/octet-stream" when it was given with options is expected to eq "application/json" - #read - when body given as String - is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" + #mime_type + should be an alias of #content_type #filename - is expected to eq nil - when it was given with options - is expected to eq "foobar.txt" - -HTTP::FormData::File - #size when file given as File - is expected to eq 77 - when file given as IO - is expected to eq 20 - when file given as a Pathname - is expected to eq 77 - when file given as a String - is expected to eq 77 - #filename - when file given as a Pathname is expected to eq "the-http-gem.info" and filename given with options is expected to eq "foobar.txt" - when file given as a String - is expected to eq "the-http-gem.info" + when file given as IO + is expected to eq "stream-2190" and filename given with options is expected to eq "foobar.txt" - when file given as File + when file given as a String is expected to eq "the-http-gem.info" and filename given with options is expected to eq "foobar.txt" - when file given as IO - is expected to eq "stream-2170" + when file given as a Pathname + is expected to eq "the-http-gem.info" and filename given with options is expected to eq "foobar.txt" - #content_type - is expected to eq "application/octet-stream" - when it was given with options - is expected to eq "application/json" - #mime_type - should be an alias of #content_type - #to_s + #size + when file given as a String + is expected to eq 77 when file given as IO - rewinds content - is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" + is expected to eq 20 when file given as a Pathname - rewinds content - is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" - when file given as a String - is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" - rewinds content + is expected to eq 77 when file given as File - is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" - rewinds content + is expected to eq 77 #read when file given as a String is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" + when file given as a Pathname + is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" when file given as File is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" when file given as IO is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" - when file given as a Pathname + #to_s + when file given as a String is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" - #rewind - when file given as IO - rewinds the underlying IO object + rewinds content when file given as a Pathname - rewinds the underlying IO object + rewinds content + is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" when file given as File - rewinds the underlying IO object - when file given as a String - rewinds the underlying IO object + is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" + rewinds content + when file given as IO + is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" + rewinds content -HTTP::FormData::Urlencoded - with custom instance level encoder - uses encoder passed to initializer - #read - returns multipart data - #size - returns bytesize of multipart data - #to_s - is expected to eq "foo%5Bbar%5D=test" - rewinds content - with unicode chars - is expected to eq "foo%5Bbar%5D=%D1%82%D0%B5%D1%81%D1%82" +HTTP::FormData::Part #content_type - is expected to eq "application/x-www-form-urlencoded" - .encoder= - switches form encoder implementation - #content_length - is expected to eq 17 - with unicode chars - is expected to eq 37 + is expected to eq nil + when it was given with options + is expected to eq "application/json" + #filename + is expected to eq nil + when it was given with options + is expected to eq "foobar.txt" #rewind - rewinds the multipart data IO + when body given as String + rewinds the underlying IO object + #read + when body given as String + is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" + #to_s + when body given as String + rewinds content + is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" + #size + when body given as a String + is expected to eq 20 HTTP::FormData::Multipart - #content_type - is expected to match /^multipart\/form-data; boundary=(?-mix:-{21}[a-f0-9]{42})$/ - with user-defined boundary - includes the given boundary - .generate_boundary - returns a string suitable as a multipart boundary - #boundary - returns a new boundary - with user-defined boundary - returns the given boundary - #size - returns bytesize of multipart data + #read + returns multipart data #to_s properly generates multipart data rewinds content with user-defined boundary uses the given boundary - with content type set to nil - doesn't include a filename with filename set to nil doesn't include a filename - #read - returns multipart data - #rewind - rewinds the multipart data IO + with content type set to nil + doesn't include a filename + #size + returns bytesize of multipart data #content_length is expected to eq 449 + #boundary + returns a new boundary + with user-defined boundary + returns the given boundary + .generate_boundary + returns a string suitable as a multipart boundary + #content_type + is expected to match /^multipart\/form-data; boundary=(?-mix:-{21}[a-f0-9]{42})$/ + with user-defined boundary + includes the given boundary + #rewind + rewinds the multipart data IO HTTP::FormData .create @@ -1200,75 +1213,98 @@ when form has at least one file param is expected to be a kind of HTTP::FormData::Multipart .ensure_hash - when neither Hash nor #to_h given - fails with HTTP::FormData::Error - when Hash given - is expected to eq {:foo=>:bar} when #to_h given is expected to eq {:foo=>:bar} + when Hash given + is expected to eq {:foo=>:bar} when nil given is expected to eq {} + when neither Hash nor #to_h given + fails with HTTP::FormData::Error + +HTTP::FormData::Urlencoded + .encoder= + switches form encoder implementation + #rewind + rewinds the multipart data IO + #size + returns bytesize of multipart data + #content_length + is expected to eq 17 + with unicode chars + is expected to eq 37 + #content_type + is expected to eq "application/x-www-form-urlencoded" + #to_s + is expected to eq "foo%5Bbar%5D=test" + rewinds content + with unicode chars + is expected to eq "foo%5Bbar%5D=%D1%82%D0%B5%D1%81%D1%82" + #read + returns multipart data + with custom instance level encoder + uses encoder passed to initializer HTTP::FormData::CompositeIO #read - returns empty string when no data was retrieved - reads partial data with a buffer + fills the buffer with retrieved content reads data in bytes + reads partial data with a buffer + reads all data + returns data in binary encoding + returns empty string when no data was retrieved returns nil when no partial data was retrieved reads partial data - returns data in binary encoding returns nil when no partial data was retrieved with a buffer - fills the buffer with retrieved content - reads all data + #initialize + fails if an IO is neither a String nor an IO + accepts IOs and strings #size - returns sum of all IO sizes returns 0 when there are no IOs + returns sum of all IO sizes #rewind rewinds all IOs - #initialize - fails if an IO is neither a String nor an IO - accepts IOs and strings -Top 10 slowest examples (0.01611 seconds, 18.0% of total time): - HTTP::FormData::Urlencoded#content_length with unicode chars is expected to eq 37 - 0.00454 seconds ./spec/lib/http/form_data/urlencoded_spec.rb:19 +Top 10 slowest examples (0.02404 seconds, 22.7% of total time): + HTTP::FormData::File#size when file given as File is expected to eq 77 + 0.00686 seconds ./spec/lib/http/form_data/file_spec.rb:24 + HTTP::FormData::Multipart#to_s with user-defined boundary uses the given boundary + 0.00629 seconds ./spec/lib/http/form_data/multipart_spec.rb:44 HTTP::FormData.ensure_hash when neither Hash nor #to_h given fails with HTTP::FormData::Error - 0.00345 seconds ./spec/lib/http/form_data_spec.rb:45 + 0.00397 seconds ./spec/lib/http/form_data_spec.rb:45 + HTTP::FormData::Multipart#boundary returns a new boundary + 0.00142 seconds ./spec/lib/http/form_data/multipart_spec.rb:137 + HTTP::FormData::Urlencoded#content_length is expected to eq 17 + 0.00117 seconds ./spec/lib/http/form_data/urlencoded_spec.rb:15 HTTP::FormData.create when form has file in an array param is expected to be a kind of HTTP::FormData::Multipart - 0.00189 seconds ./spec/lib/http/form_data_spec.rb:21 - HTTP::FormData::Multipart#content_type is expected to match /^multipart\/form-data; boundary=(?-mix:-{21}[a-f0-9]{42})$/ - 0.00153 seconds ./spec/lib/http/form_data/multipart_spec.rb:117 - HTTP::FormData::Part#size when body given as a String is expected to eq 20 - 0.00108 seconds ./spec/lib/http/form_data/part_spec.rb:13 - HTTP::FormData::Multipart#content_length is expected to eq 449 - 0.00088 seconds ./spec/lib/http/form_data/multipart_spec.rb:133 - HTTP::FormData.ensure_hash when #to_h given is expected to eq {:foo=>:bar} - 0.00075 seconds ./spec/lib/http/form_data_spec.rb:35 - HTTP::FormData.create when form has no files is expected to be a kind of HTTP::FormData::Urlencoded - 0.00072 seconds ./spec/lib/http/form_data_spec.rb:9 - HTTP::FormData.create when form has at least one file param is expected to be a kind of HTTP::FormData::Multipart - 0.00066 seconds ./spec/lib/http/form_data_spec.rb:15 - HTTP::FormData::File#to_s when file given as a Pathname rewinds content - 0.00059 seconds ./spec/lib/http/form_data/file_spec.rb:51 + 0.00111 seconds ./spec/lib/http/form_data_spec.rb:21 + HTTP::FormData::File#rewind when file given as IO rewinds the underlying IO object + 0.00099 seconds ./spec/lib/http/form_data/file_spec.rb:142 + HTTP::FormData::Urlencoded#to_s with unicode chars is expected to eq "foo%5Bbar%5D=%D1%82%D0%B5%D1%81%D1%82" + 0.00082 seconds ./spec/lib/http/form_data/urlencoded_spec.rb:29 + HTTP::FormData::Urlencoded#content_length with unicode chars is expected to eq 37 + 0.00074 seconds ./spec/lib/http/form_data/urlencoded_spec.rb:19 + HTTP::FormData::Multipart#read returns multipart data + 0.00067 seconds ./spec/lib/http/form_data/multipart_spec.rb:99 Top 6 slowest example groups: - HTTP::FormData - 0.00226 seconds average (0.01585 seconds / 7 examples) ./spec/lib/http/form_data_spec.rb:3 HTTP::FormData::Urlencoded - 0.00101 seconds average (0.01107 seconds / 11 examples) ./spec/lib/http/form_data/urlencoded_spec.rb:4 - HTTP::FormData::File - 0.001 seconds average (0.03085 seconds / 31 examples) ./spec/lib/http/form_data/file_spec.rb:4 + 0.002 seconds average (0.02196 seconds / 11 examples) ./spec/lib/http/form_data/urlencoded_spec.rb:4 + HTTP::FormData + 0.00179 seconds average (0.01251 seconds / 7 examples) ./spec/lib/http/form_data_spec.rb:3 HTTP::FormData::Multipart - 0.00095 seconds average (0.01326 seconds / 14 examples) ./spec/lib/http/form_data/multipart_spec.rb:3 + 0.00147 seconds average (0.02064 seconds / 14 examples) ./spec/lib/http/form_data/multipart_spec.rb:3 + HTTP::FormData::File + 0.00109 seconds average (0.03365 seconds / 31 examples) ./spec/lib/http/form_data/file_spec.rb:4 HTTP::FormData::Part - 0.00094 seconds average (0.00843 seconds / 9 examples) ./spec/lib/http/form_data/part_spec.rb:3 + 0.00087 seconds average (0.00785 seconds / 9 examples) ./spec/lib/http/form_data/part_spec.rb:3 HTTP::FormData::CompositeIO - 0.00064 seconds average (0.00895 seconds / 14 examples) ./spec/lib/http/form_data/composite_io_spec.rb:3 + 0.00057 seconds average (0.00801 seconds / 14 examples) ./spec/lib/http/form_data/composite_io_spec.rb:3 -Finished in 0.08944 seconds (files took 0.71338 seconds to load) +Finished in 0.10597 seconds (files took 0.60092 seconds to load) 86 examples, 0 failures -Randomized with seed 4466 +Randomized with seed 49857 Coverage report generated for RSpec to /build/reproducible-path/ruby-http-form-data-2.3.0/coverage. 192 / 194 LOC (98.97%) covered. [Coveralls] Outside the CI environment, not sending data. @@ -1290,75 +1326,155 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 49526 +Randomized with seed 27315 -HTTP::FormData::Part +HTTP::FormData::Urlencoded + .encoder= + switches form encoder implementation + #content_length + is expected to eq 17 + with unicode chars + is expected to eq 37 + #read + returns multipart data + #size + returns bytesize of multipart data #content_type - is expected to eq nil - when it was given with options - is expected to eq "application/json" + is expected to eq "application/x-www-form-urlencoded" + with custom instance level encoder + uses encoder passed to initializer + #rewind + rewinds the multipart data IO + #to_s + rewinds content + is expected to eq "foo%5Bbar%5D=test" + with unicode chars + is expected to eq "foo%5Bbar%5D=%D1%82%D0%B5%D1%81%D1%82" + +HTTP::FormData::Multipart + #content_length + is expected to eq 449 + #to_s + properly generates multipart data + rewinds content + with user-defined boundary + uses the given boundary + with content type set to nil + doesn't include a filename + with filename set to nil + doesn't include a filename + .generate_boundary + returns a string suitable as a multipart boundary + #content_type + is expected to match /^multipart\/form-data; boundary=(?-mix:-{21}[a-f0-9]{42})$/ + with user-defined boundary + includes the given boundary + #size + returns bytesize of multipart data + #boundary + returns a new boundary + with user-defined boundary + returns the given boundary #read + returns multipart data + #rewind + rewinds the multipart data IO + +HTTP::FormData::Part + #to_s when body given as String is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" + rewinds content #rewind when body given as String rewinds the underlying IO object #size when body given as a String is expected to eq 20 + #read + when body given as String + is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" #filename is expected to eq nil when it was given with options is expected to eq "foobar.txt" - #to_s - when body given as String - rewinds content - is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" + #content_type + is expected to eq nil + when it was given with options + is expected to eq "application/json" HTTP::FormData::CompositeIO #read - reads all data - returns nil when no partial data was retrieved - reads partial data with a buffer returns nil when no partial data was retrieved with a buffer + fills the buffer with retrieved content returns data in binary encoding + reads all data returns empty string when no data was retrieved - reads partial data + returns nil when no partial data was retrieved + reads partial data with a buffer reads data in bytes - fills the buffer with retrieved content - #rewind - rewinds all IOs - #initialize - fails if an IO is neither a String nor an IO - accepts IOs and strings + reads partial data #size returns 0 when there are no IOs returns sum of all IO sizes - -HTTP::FormData::Urlencoded - #size - returns bytesize of multipart data - .encoder= - switches form encoder implementation - #to_s - is expected to eq "foo%5Bbar%5D=test" - rewinds content - with unicode chars - is expected to eq "foo%5Bbar%5D=%D1%82%D0%B5%D1%81%D1%82" + #initialize + fails if an IO is neither a String nor an IO + accepts IOs and strings #rewind - rewinds the multipart data IO - #read - returns multipart data - #content_length - is expected to eq 17 - with unicode chars - is expected to eq 37 - with custom instance level encoder - uses encoder passed to initializer - #content_type - is expected to eq "application/x-www-form-urlencoded" + rewinds all IOs + +HTTP::FormData + .ensure_hash + when #to_h given + is expected to eq {:foo=>:bar} + when neither Hash nor #to_h given + fails with HTTP::FormData::Error + when nil given + is expected to eq {} + when Hash given + is expected to eq {:foo=>:bar} + .create + when form has no files + is expected to be a kind of HTTP::FormData::Urlencoded + when form has file in an array param + is expected to be a kind of HTTP::FormData::Multipart + when form has at least one file param + is expected to be a kind of HTTP::FormData::Multipart HTTP::FormData::File + #to_s + when file given as a String + is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" + rewinds content + when file given as File + is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" + rewinds content + when file given as IO + rewinds content + is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" + when file given as a Pathname + rewinds content + is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" + #mime_type + should be an alias of #content_type + #size + when file given as IO + is expected to eq 20 + when file given as a Pathname + is expected to eq 77 + when file given as a String + is expected to eq 77 + when file given as File + is expected to eq 77 + #rewind + when file given as a Pathname + rewinds the underlying IO object + when file given as a String + rewinds the underlying IO object + when file given as IO + rewinds the underlying IO object + when file given as File + rewinds the underlying IO object #read when file given as File is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" @@ -1368,18 +1484,16 @@ is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" when file given as IO is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" - #mime_type - should be an alias of #content_type #filename - when file given as File + when file given as a String is expected to eq "the-http-gem.info" and filename given with options is expected to eq "foobar.txt" when file given as IO - is expected to eq "stream-2170" + is expected to eq "stream-2250" and filename given with options is expected to eq "foobar.txt" - when file given as a String + when file given as File is expected to eq "the-http-gem.info" and filename given with options is expected to eq "foobar.txt" @@ -1387,129 +1501,51 @@ is expected to eq "the-http-gem.info" and filename given with options is expected to eq "foobar.txt" - #rewind - when file given as File - rewinds the underlying IO object - when file given as a Pathname - rewinds the underlying IO object - when file given as a String - rewinds the underlying IO object - when file given as IO - rewinds the underlying IO object - #size - when file given as File - is expected to eq 77 - when file given as a String - is expected to eq 77 - when file given as IO - is expected to eq 20 - when file given as a Pathname - is expected to eq 77 #content_type is expected to eq "application/octet-stream" when it was given with options is expected to eq "application/json" - #to_s - when file given as a String - is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" - rewinds content - when file given as File - rewinds content - is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" - when file given as IO - is expected to eq "\u043F\u0440\u0438\u0432\u0435\u0442 \u043C\u0438\u0440!" - rewinds content - when file given as a Pathname - is expected to eq "The HTTP Gem is an easy-to-use client library for making requests from Ruby.\n" - rewinds content - -HTTP::FormData - .ensure_hash - when nil given - is expected to eq {} - when #to_h given - is expected to eq {:foo=>:bar} - when neither Hash nor #to_h given - fails with HTTP::FormData::Error - when Hash given - is expected to eq {:foo=>:bar} - .create - when form has no files - is expected to be a kind of HTTP::FormData::Urlencoded - when form has file in an array param - is expected to be a kind of HTTP::FormData::Multipart - when form has at least one file param - is expected to be a kind of HTTP::FormData::Multipart -HTTP::FormData::Multipart - .generate_boundary - returns a string suitable as a multipart boundary - #content_length - is expected to eq 449 - #size - returns bytesize of multipart data - #read - returns multipart data - #boundary - returns a new boundary - with user-defined boundary - returns the given boundary - #rewind - rewinds the multipart data IO - #to_s - properly generates multipart data - rewinds content - with filename set to nil - doesn't include a filename - with content type set to nil - doesn't include a filename - with user-defined boundary - uses the given boundary - #content_type - is expected to match /^multipart\/form-data; boundary=(?-mix:-{21}[a-f0-9]{42})$/ - with user-defined boundary - includes the given boundary - -Top 10 slowest examples (0.00753 seconds, 12.3% of total time): +Top 10 slowest examples (0.00912 seconds, 11.3% of total time): HTTP::FormData::CompositeIO#initialize fails if an IO is neither a String nor an IO - 0.00169 seconds ./spec/lib/http/form_data/composite_io_spec.rb:14 + 0.00213 seconds ./spec/lib/http/form_data/composite_io_spec.rb:14 HTTP::FormData::Multipart.generate_boundary returns a string suitable as a multipart boundary - 0.00127 seconds ./spec/lib/http/form_data/multipart_spec.rb:153 - HTTP::FormData::Part#content_type is expected to eq nil - 0.00088 seconds ./spec/lib/http/form_data/part_spec.rb:67 + 0.00139 seconds ./spec/lib/http/form_data/multipart_spec.rb:153 + HTTP::FormData::Urlencoded.encoder= switches form encoder implementation + 0.00105 seconds ./spec/lib/http/form_data/urlencoded_spec.rb:63 HTTP::FormData.create when form has no files is expected to be a kind of HTTP::FormData::Urlencoded - 0.00074 seconds ./spec/lib/http/form_data_spec.rb:9 - HTTP::FormData::Multipart#to_s with user-defined boundary uses the given boundary - 0.00051 seconds ./spec/lib/http/form_data/multipart_spec.rb:44 - HTTP::FormData::Multipart#rewind rewinds the multipart data IO - 0.0005 seconds ./spec/lib/http/form_data/multipart_spec.rb:105 - HTTP::FormData::Multipart#to_s rewinds content - 0.0005 seconds ./spec/lib/http/form_data/multipart_spec.rb:33 + 0.00085 seconds ./spec/lib/http/form_data_spec.rb:9 HTTP::FormData::Multipart#content_length is expected to eq 449 - 0.00049 seconds ./spec/lib/http/form_data/multipart_spec.rb:133 - HTTP::FormData::Multipart#content_type is expected to match /^multipart\/form-data; boundary=(?-mix:-{21}[a-f0-9]{42})$/ - 0.00048 seconds ./spec/lib/http/form_data/multipart_spec.rb:117 + 0.00071 seconds ./spec/lib/http/form_data/multipart_spec.rb:133 + HTTP::FormData::Multipart#to_s rewinds content + 0.00065 seconds ./spec/lib/http/form_data/multipart_spec.rb:33 + HTTP::FormData::Multipart#rewind rewinds the multipart data IO + 0.00063 seconds ./spec/lib/http/form_data/multipart_spec.rb:105 + HTTP::FormData::Multipart#to_s with user-defined boundary uses the given boundary + 0.00059 seconds ./spec/lib/http/form_data/multipart_spec.rb:44 + HTTP::FormData::File#filename when file given as a String and filename given with options is expected to eq "foobar.txt" + 0.00057 seconds ./spec/lib/http/form_data/file_spec.rb:160 HTTP::FormData::Multipart#read returns multipart data - 0.00047 seconds ./spec/lib/http/form_data/multipart_spec.rb:99 + 0.00055 seconds ./spec/lib/http/form_data/multipart_spec.rb:99 Top 6 slowest example groups: + HTTP::FormData::Part + 0.00123 seconds average (0.01103 seconds / 9 examples) ./spec/lib/http/form_data/part_spec.rb:3 HTTP::FormData::Multipart - 0.00096 seconds average (0.01347 seconds / 14 examples) ./spec/lib/http/form_data/multipart_spec.rb:3 + 0.00105 seconds average (0.01476 seconds / 14 examples) ./spec/lib/http/form_data/multipart_spec.rb:3 HTTP::FormData - 0.00075 seconds average (0.00523 seconds / 7 examples) ./spec/lib/http/form_data_spec.rb:3 + 0.00097 seconds average (0.00682 seconds / 7 examples) ./spec/lib/http/form_data_spec.rb:3 HTTP::FormData::File - 0.00073 seconds average (0.02265 seconds / 31 examples) ./spec/lib/http/form_data/file_spec.rb:4 - HTTP::FormData::Part - 0.00066 seconds average (0.00595 seconds / 9 examples) ./spec/lib/http/form_data/part_spec.rb:3 + 0.00091 seconds average (0.02807 seconds / 31 examples) ./spec/lib/http/form_data/file_spec.rb:4 HTTP::FormData::Urlencoded - 0.00053 seconds average (0.00587 seconds / 11 examples) ./spec/lib/http/form_data/urlencoded_spec.rb:4 + 0.00083 seconds average (0.00909 seconds / 11 examples) ./spec/lib/http/form_data/urlencoded_spec.rb:4 HTTP::FormData::CompositeIO - 0.00049 seconds average (0.0069 seconds / 14 examples) ./spec/lib/http/form_data/composite_io_spec.rb:3 + 0.00067 seconds average (0.00931 seconds / 14 examples) ./spec/lib/http/form_data/composite_io_spec.rb:3 -Finished in 0.06111 seconds (files took 0.38604 seconds to load) +Finished in 0.08072 seconds (files took 0.49658 seconds to load) 86 examples, 0 failures -Randomized with seed 49526 +Randomized with seed 27315 Coverage report generated for RSpec to /build/reproducible-path/ruby-http-form-data-2.3.0/coverage. 192 / 194 LOC (98.97%) covered. [Coveralls] Outside the CI environment, not sending data. @@ -1546,12 +1582,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/48033/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/48033/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/25996 and its subdirectories -I: Current time: Tue Mar 10 12:58:49 -12 2026 -I: pbuilder-time-stamp: 1773190730 +I: removing directory /srv/workspace/pbuilder/48033 and its subdirectories +I: Current time: Thu Feb 6 08:37:12 +14 2025 +I: pbuilder-time-stamp: 1738780632