[DRE-maint] Bug#1094524: ruby-httpclient: FTBFS: ERROR: Test "ruby3.1" failed.
Lucas Nussbaum
lucas at debian.org
Tue Jan 28 19:52:25 GMT 2025
Source: ruby-httpclient
Version: 2.8.3+git20211122.4658227-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20250128 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> /usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner
>
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby3.1 │
> └──────────────────────────────────────────────────────────────────────────────┘
>
> RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/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/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -e gem\ \"httpclient\"
>
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake │
> └──────────────────────────────────────────────────────────────────────────────┘
>
> RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/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/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
> /usr/bin/ruby3.1 -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/test_auth.rb" "test/test_cookie.rb" "test/test_hexdump.rb" "test/test_http-access2.rb" "test/test_httpclient.rb" "test/test_include_client.rb" "test/test_jsonclient.rb" "test/test_webagent-cookie.rb" -v
> Loaded suite /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader
> Started
> HTTPAccess2::TestClient:
> test_agent_name: .: (0.017858)
> test_connect_timeout: .: (0.002119)
> test_cookies: Cookie#domain returns dot-less domain name now. Use Cookie#dot_domain if you need "." at the beginning.
> .: (0.003281)
> test_debug_dev: .: (0.004997)
> test_delete: .: (1.049322)
> test_extra_headers: .: (0.020814)
> test_from: .: (0.014005)
> test_get: .: (0.052608)
> test_get_content: .: (0.711773)
> test_get_query: .: (0.315977)
> test_head: .: (0.004686)
> test_no_proxy: .: (0.036111)
> test_noproxy_for_localhost: .: (0.004912)
> test_options: .: (0.044771)
> test_post: .: (0.047963)
> test_post_body: .: (0.424063)
> test_post_content: .: (0.067741)
> test_protocol_version_http10: .: (1.005816)
> test_protocol_version_http11: .: (0.012244)
> test_put: .: (0.011129)
> test_receive_timeout: .: (5.014709)
> test_send_timeout: .: (0.001675)
> test_timeout: .: (0.001672)
> test_trace: .: (0.047068)
> TestAuth:
> test_BASIC_auth: .: (0.007826)
> test_BASIC_auth_async: .: (0.009606)
> test_BASIC_auth_force: .: (0.012498)
> test_BASIC_auth_multi_thread: .: (0.212161)
> test_BASIC_auth_nil_uri: .: (0.009659)
> test_basic_auth: .: (0.009823)
> test_basic_auth_compat: .: (0.008303)
> test_basic_auth_reuses_credentials: .: (1.015090)
> test_digest_auth: .: (0.009676)
> test_digest_auth_reuses_credentials: .: (0.014744)
> test_digest_auth_with_block: .: (0.054531)
> test_digest_auth_with_post_io: .: (0.095373)
> test_digest_auth_with_querystring: .: (0.007758)
> test_digest_proxy_auth: .: (0.021947)
> test_digest_proxy_auth_loop: .: (0.004181)
> test_digest_proxy_auth_reuses_credentials: .: (0.004871)
> test_digest_sess_auth: .: (0.009172)
> test_perfer_digest: .: (0.012121)
> test_prefer_digest_to_basic_proxy_auth: .: (0.005079)
> test_proxy_auth: .: (0.007612)
> test_proxy_auth_force: .: (0.002549)
> test_proxy_auth_reuses_credentials: .: (0.003337)
> TestCookie:
> test_s_new: .: (0.000218)
> TestCookieManager:
> test_add: WebAgent::Cookie is deprecated and will be replaced with HTTP::Cookie in the near future. Please use Cookie#origin= instead of Cookie#url= for the replacement.
> .: (0.001224)
> test_add2: .: (0.001020)
> test_check_expired_cookies: .: (0.001136)
> test_find_cookie: CookieManager#find is deprecated and will be removed in near future. Use HTTP::Cookie.cookie_value(CookieManager#cookies) instead
> .: (0.002217)
> test_keep_escaped: .: (0.003587)
> test_load_cookies: WebAgent::Cookie is deprecated and will be replaced with HTTP::Cookie in the near future. Please use Cookie#origin instead of Cookie#url for the replacement.
> WebAgent::Cookie is deprecated and will be replaced with HTTP::Cookie in the near future. Please use Cookie#secure, for_domain, etc. instead of Cookie#flag for the replacement.
> .: (0.002051)
> test_load_cookies_escaped: .: (0.001154)
> test_not_saved_expired_cookies: .: (0.000936)
> test_parse: .: (0.000410)
> test_parse2: .: (0.000346)
> test_parse3: WebAgent::Cookie is deprecated and will be replaced with HTTP::Cookie in the near future. Please use Cookie#httponly? instead of Cookie#http_only? for the replacement.
> .: (0.000613)
> test_parse_after_expiration: .: (0.000558)
> test_parse_double_semicolon: .: (0.000440)
> test_parse_expires: .: (0.000484)
> test_save_cookie: .: (0.001043)
> TestHTTPClient:
> test_agent_name: .: (0.005712)
> test_body_param_order: .: (0.006276)
> test_broken_header: .: (0.004868)
> test_charset: .: (0.009077)
> test_chunked: .: (0.050045)
> test_chunked_empty: .: (0.007060)
> test_connect_request: .: (0.003824)
> test_connect_timeout: .: (0.004385)
> test_connection: .: (0.004593)
> test_continue: .: (0.007443)
> test_cookie_update_while_authentication: .: (0.007982)
> test_cookies: .: (0.005041)
> test_debug_dev: .: (0.008711)
> test_debug_dev_stream: .: (0.025278)
> test_delete: .: (0.006473)
> test_delete_async: .: (0.005438)
> test_delete_with_body: .: (0.005878)
> test_delete_with_query: .: (0.005247)
> test_delete_with_query_and_body: .: (0.006101)
> test_empty_proxy_env: .: (0.003366)
> test_eof_error_length: .: (0.002640)
> test_eof_error_rest: .: (0.003032)
> test_extra_headers: .: (0.007875)
> test_from: .: (0.006506)
> test_get: .: (0.091635)
> test_get_async: .: (0.013854)
> test_get_async_for_largebody: .: (0.046454)
> test_get_async_with_base_url: .: (0.053517)
> test_get_content: E
> ===============================================================================
> Error: test_get_content(TestHTTPClient): Errno::ECONNREFUSED: Connection refused - Connection refused - connect(2) for "127.0.0.1" port 50000 (127.0.0.1:50000)
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient/session.rb:623:in `rescue in create_socket'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient/session.rb:607:in `create_socket'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient/session.rb:755:in `block in connect'
> /usr/lib/ruby/3.1.0/timeout.rb:107:in `block in timeout'
> /usr/lib/ruby/3.1.0/timeout.rb:117:in `timeout'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient/session.rb:748:in `connect'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient/session.rb:511:in `query'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient/session.rb:177:in `query'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient.rb:1246:in `do_get_block'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient.rb:1023:in `block in do_request'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient.rb:1137:in `protect_keep_alive_disconnected'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient.rb:1018:in `do_request'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient.rb:1108:in `follow_redirect'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/debian/ruby-httpclient/usr/share/rubygems-integration/all/gems/httpclient-2.8.3/lib/httpclient.rb:655:in `get_content'
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/test/test_httpclient.rb:555:in `test_get_content'
> 552: assert_equal('hello', @client.get_content(serverurl + 'redirect1'))
> 553: assert_equal('hello', @client.get_content(serverurl + 'redirect2'))
> 554: url = serverurl.sub(/localhost/, '127.0.0.1')
> => 555: assert_equal('hello', @client.get_content(url + 'hello'))
> 556: assert_equal('hello', @client.get_content(url + 'redirect1'))
> 557: assert_equal('hello', @client.get_content(url + 'redirect2'))
> 558: @client.reset(serverurl)
> ===============================================================================
> : (0.226982)
> test_get_content_with_base_url: .: (0.716779)
> test_get_content_with_block: .: (0.232455)
> test_get_follow_redirect: .: (0.227954)
> test_get_follow_redirect_with_query: .: (0.051080)
> test_get_gzipped_content: .: (0.095871)
> test_get_query: .: (0.539164)
> test_get_with_base_url: .: (0.095621)
> test_get_with_block: .: (0.005621)
> test_get_with_block_and_redirects: .: (0.006162)
> test_get_with_block_arity_2: .: (0.008148)
> test_get_with_block_arity_2_and_redirects: .: (0.007228)
> test_get_with_block_chunked_string_recycle: .: (0.005176)
> test_get_with_block_string_recycle: .: (0.015259)
> test_get_with_default_header: .: (0.138946)
> test_head: .: (0.005876)
> test_head_async: .: (0.007736)
> test_head_follow_redirect: .: (0.013823)
> test_header_accept: .: (0.008874)
> test_header_accept_by_default: .: (0.006902)
> test_header_symbol: .: (0.005852)
> test_host_given: .: (0.011635)
> test_host_header: .: (0.004157)
> test_http_custom_date_header: .: (0.008763)
> test_http_header: .: (0.005123)
> test_keepalive: .: (0.356267)
> test_keepalive_disconnected: .: (0.064413)
> test_loopback_http_response: .: (0.004075)
> test_loopback_response: .: (0.004051)
> test_loopback_response_stream: .: (0.002927)
> test_mime_type: .: (0.002900)
> test_multiline_header: .: (0.003564)
> test_no_content: .: (0.006264)
> test_no_proxy_with_initial_dot: .: (0.004775)
> test_noproxy_for_localhost: .: (0.008539)
> test_ok_response_success: .: (0.002189)
> test_options: .: (0.006694)
> test_options_async: .: (0.010489)
> test_options_with_body: .: (0.005086)
> test_options_with_body_and_header: .: (0.006704)
> test_options_with_header: .: (0.004123)
> test_patch: .: (0.014754)
> test_patch_async: .: (0.012817)
> test_patch_bytesize: .: (0.005518)
> test_patch_with_query_and_body: .: (0.011272)
> test_post: .: (0.049860)
> test_post_async: .: (0.006167)
> test_post_async_with_default_internal: /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/test/test_httpclient.rb:773: warning: setting Encoding.default_internal
> /build/reproducible-path/ruby-httpclient-2.8.3+git20211122.4658227/test/test_httpclient.rb:781: warning: setting Encoding.default_internal
> .: (0.007970)
> test_post_body: .: (0.405825)
> test_post_content: .: (0.116579)
> test_post_content_io: .: (0.359580)
> test_post_empty: .: (0.004629)
> test_post_follow_redirect: .: (0.020384)
> test_post_with_block: .: (0.049613)
> test_post_with_content_type: .: (0.316033)
> test_post_with_custom_multipart: .: (0.223729)
> test_post_with_custom_multipart_and_boolean_params: .: (0.267861)
> test_post_with_custom_multipart_and_file: .: (0.013217)
> test_post_with_file: /usr/share/rubygems-integration/all/gems/test-unit-3.6.2/lib/test/unit/assertions.rb:607: warning: historical binary regexp match /.../n against UTF-8 string
> .: (0.021340)
> test_post_with_file_without_size: .: (0.010573)
> test_post_with_io: .: (0.010397)
> test_post_with_io_nosize: .: (0.007024)
> test_post_with_query: .: (0.014583)
> test_post_with_query_and_body: .: (0.020028)
> test_post_with_sized_io: .: (0.012475)
> test_post_with_sized_io_part: .: (0.005417)
> test_post_with_unknown_sized_io_part: .: (0.008615)
> test_propfind: .: (0.004411)
> test_propfind_async: .: (0.004392)
> test_proppatch: .: (0.049997)
> test_proppatch_async: .: (0.009484)
> test_protocol_version_http09: .: (0.008719)
> test_protocol_version_http10: .: (0.008929)
> test_protocol_version_http11: .: (0.015777)
> test_proxy_env_cgi: .: (0.006526)
> test_put: .: (0.007624)
> test_put_async: .: (0.005976)
> test_put_bytesize: .: (0.005206)
> test_put_with_query_and_body: .: (0.005548)
> test_receive_timeout: .: (5.012016)
> test_receive_timeout_post: .: (5.049219)
> test_redirect_https_relative: .: (0.005574)
> test_redirect_non_https: .: (0.065688)
> test_redirect_relative: .: (0.050447)
> test_redirect_returns_not_modified: .: (0.006394)
> test_redirect_see_other: .: (0.006402)
> test_redirect_without_location_should_gracefully_fail:.: (0.004582)
> test_request_uri_in_response: .: (0.002982)
> test_request_uri_in_response_when_redirect: .: (0.185923)
> test_reset: .: (0.017472)
> test_reset_all: .: (0.018342)
> test_response: .: (0.007686)
> test_response_cookies: .: (0.009563)
> test_send_timeout: .: (0.013406)
> test_site: .: (0.002430)
> test_socket_local: .: (0.007420)
> test_strict_response_size_check: .: (0.003665)
> test_tcp_keepalive: .: (0.004449)
> test_timeout: .: (0.002250)
> test_trace: .: (0.051822)
> test_trace_async: .: (0.009654)
> test_uri_no_schema: .: (0.010700)
> test_urify: .: (0.004494)
> TestHexDump:
> test_encode: .: (0.000482)
> TestIncludeClient:
> test_client_class_level_singleton: .: (0.001193)
> test_configured: .: (0.000101)
> test_not_infected_class_hieararchy: .: (0.000454)
> test_two_includes: .: (0.000316)
> TestJSONClient:
> test_array_header_not_modified: .: (0.006331)
> test_get_not_affected: .: (0.006290)
> test_hash_header_not_modified: .: (0.006713)
> test_post: .: (0.005023)
> test_post_non_json_body: .: (0.003159)
> test_post_with_array: .: (0.005237)
> test_post_with_array_header: .: (0.003422)
> test_post_with_header: .: (0.003782)
> test_put: .: (0.003054)
>
> Finished in 26.596522118 seconds.
> -------------------------------------------------------------------------------
> 207 tests, 706 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
> 99.5169% passed
> -------------------------------------------------------------------------------
> 7.78 tests/s, 26.54 assertions/s
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/test_auth.rb" "test/test_cookie.rb" "test/test_hexdump.rb" "test/test_http-access2.rb" "test/test_httpclient.rb" "test/test_include_client.rb" "test/test_jsonclient.rb" "test/test_webagent-cookie.rb" -v]
> /usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.1" failed.
The full build log is available from:
http://qa-logs.debian.net/2025/01/28/ruby-httpclient_2.8.3+git20211122.4658227-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20250128;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20250128&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-ruby-extras-maintainers
mailing list