[DRE-maint] Bug#1027076: ruby-influxdb: FTBFS with ruby-rspec 3.12: ERROR: Test "ruby3.1" failed.

Antonio Terceiro terceiro at debian.org
Tue Dec 27 15:04:22 GMT 2022


Source: ruby-influxdb
Version: 0.8.1-1
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby-rspec-3.12

Hi,

I'm about to upload ruby-rspec 3.12. During a test rebuild with that version,
ruby-influxdb failed to build.

Relevant part of the build log (hopefully):
> /usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby3.1                           │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-influxdb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/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\ \"influxdb\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-influxdb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/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 -f debian/ruby-tests.rake
> /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.12.0/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/exe/rspec ./spec/influxdb/cases/query_batch_spec.rb ./spec/influxdb/cases/query_cluster_spec.rb ./spec/influxdb/cases/query_continuous_query_spec.rb ./spec/influxdb/cases/query_core_spec.rb ./spec/influxdb/cases/query_database_spec.rb ./spec/influxdb/cases/query_retention_policy_spec.rb ./spec/influxdb/cases/query_series_spec.rb ./spec/influxdb/cases/query_shard_spec.rb ./spec/influxdb/cases/query_user_spec.rb ./spec/influxdb/cases/query_with_params_spec.rb ./spec/influxdb/cases/querying_issue_7000_spec.rb ./spec/influxdb/cases/querying_spec.rb ./spec/influxdb/cases/retry_requests_spec.rb ./spec/influxdb/cases/show_field_keys_spec.rb ./spec/influxdb/cases/udp_client_spec.rb ./spec/influxdb/cases/write_points_spec.rb ./spec/influxdb/client_spec.rb ./spec/influxdb/config_spec.rb ./spec/influxdb/logging_spec.rb ./spec/influxdb/max_queue_spec.rb ./spec/influxdb/point_value_spec.rb ./spec/influxdb/query_builder_spec.rb ./spec/influxdb/time_conversion_spec.rb ./spec/influxdb/worker_spec.rb ./spec/smoke/smoke_batch_spec.rb ./spec/smoke/smoke_spec.rb --format documentation
> SMOKE TESTS ARE NOT CURRENTLY RUNNING
> Run options: exclude {:smoke=>true}
> Run options: exclude {:smoke=>true}
> 
> InfluxDB::Client
>   #batch
>     is expected to be a kind of InfluxDB::Query::Batch
> .    #execute
>       is expected to eq []
> .    #add
>       returns statement id
> .      block form
>         returns statement id
> .  #batch.execute
>     with multiple queries when there is no data for a query
>       should return responses for all statements
> .    with a group by tag query
>       should return a single result
> .
> InfluxDB::Client
>   #create_cluster_admin
>     with existing admin user
>       should GET to create a new cluster admin
> .    with no admin user
>       should GET to create a new cluster admin
> .  #list_cluster_admins
>     should GET a list of cluster admins
> .  #revoke_cluster_admin_privileges
>     should GET to revoke cluster admin privileges from a user
> .
> InfluxDB::Client
>   #list_continuous_queries
>     should GET a list of continuous queries for specified db only
> .  #create_continuous_query
>     without resampling
>       should GET to create a new continuous query
> .    with resampling
>       EVERY <interval>
>         should GET to create a new continuous query
> .      FOR <interval>
>         should GET to create a new continuous query
> .      EVERY <interval> FOR <interval>
>         should GET to create a new continuous query
> .  #delete_continuous_query
>     should GET to remove continuous query
> .
> InfluxDB::Client
>   #query
>     should handle responses with no values
> .
> InfluxDB::Client
>   #create_database
>     from param
>       should GET to create a new database
> .    from config
>       should GET to create a new database using database name from config
> .  #delete_database
>     from param
>       should GET to remove a database
> .    from config
>       should GET to remove a database using database name from config
> .  #list_databases
>     should GET a list of databases
> .
> InfluxDB::Client
>   #list_retention_policies
>     database with RPs
>       should GET a list of retention policies
> .    database without RPs
>       should GET a list of retention policies
> .  #create_retention_policy
>     default
>       should GET to create a new database
> .    non-default
>       should GET to create a new database
> .    default_with_shard_duration
>       should GET to create a new database
> .    non-default_with_shard_duration
>       should GET to create a new database
> .  #delete_retention_policy
>     should GET to remove a database
> .  #alter_retention_policy
>     default
>       should GET to alter a new database
> .    non-default
>       should GET to alter a new database
> .    default_with_shard_duration
>       should GET to alter a new database
> .    non-default_with_shard_duration
>       should GET to alter a new database
> .
> InfluxDB::Client
>   GET #list_series
>     returns a list of all series names
> .  GET empty #list_series
>     returns a empty list
> .  #delete_series
>     without a where clause
>       should GET to remove a database
> .    with a where clause
>       should GET to remove a database
> .
> InfluxDB::Client
>   #update user password
>     should GET to update user password
> .  #grant_user_privileges
>     should GET to grant privileges for a user on a database
> .  #grant_user_admin_privileges
>     should GET to grant privileges for a user on a database
> .  #revoke_user_privileges
>     should GET to revoke privileges from a user on a database
> .  #create_database_user
>     without specifying permissions
>       should GET to create a new database user with all permissions
> .    with passing permission as argument
>       should GET to create a new database user with permission set
> .  #delete_user
>     should GET to delete a user
> .  #list_users
>     should GET a list of database users
> .  #list_user_grants
>     should GET for a user
> .
> InfluxDB::Client
>   #query with parameters
>     should handle responses with no values
> .  #query_with_params
>     with empty params hash
>       is expected to raise ArgumentError
> .    with empty params array
>       is expected to raise ArgumentError
> .    with empty params
>       is expected to raise ArgumentError
> .    with simple params
>       is expected to eq "select * from foo where bar > 42"
> .    string escaping
>       is expected to eq "select * from foo where bar > 'string'"
> .
> InfluxDB::Client
>   #query
>     with series with different tags (multi-line)
>       should return array with 2 elements grouped by tags
> .    with multiple series with different tags
>       should return array with 4 elements grouped by name and tags
> .
> InfluxDB::Client
>   #query
>     with single series with multiple points
>       should return array with single hash containing multiple values
> .    with series with different tags
>       should return array with 2 elements grouped by tags
> .    with multiple series with different tags
>       should return array with 4 elements grouped by name and tags
> .    with multiple series for explicit value only
>       should return array with 2 elements grouped by name only and no tags
> .    with a block
>       should accept a block and yield name, tags and points
> .    with epoch set to seconds
>       should return results with integer timestamp
> .    with chunk_size set to 100
>       should set 'chunked' and 'chunk_size' parameters
> .    with database
>       should return array with single hash containing multiple values
> .  multiple select queries
>     with single series with multiple points
>       should return array with single hash containing multiple values
> .    with series with different tags
>       should return array with 2 elements grouped by tags
> .    with a block
>       should accept a block and yield name, tags and points
> .
> InfluxDB::Client
>   retrying requests
>     raises when stopped
> .    raise an exception if the server didn't return 200
> .    when retry is 0
>       raise error directly
> .    when retry is 'n'
>       raise error after 'n' attemps
> .    when retry is -1
>       keep trying until get the connection
> .
> InfluxDB::Client
>   #show_field_keys
>     should GET a list of field/type pairs per measurement
> .
> InfluxDB::Client
>   is expected to be a kind of InfluxDB::Writer::UDP
> .  #write
>     sends a UDP packet
> .  #write with discard_write_errors
>     doesn't raise
> .
> InfluxDB::Client
>   #write_point
>     should POST to add single point
> .    should not mutate data object
> .  #write_points
>     with multiple series
>       should POST multiple points
> .    with no tags
>       should POST multiple points
> .    with time precision set to milisceconds
>       should POST multiple points
> .    with retention policy
>       should POST multiple points
> .    with database
>       should POST multiple points
> .
> InfluxDB::Client
>   is expected not to be stopped
> .  with basic auth
>     GET
> .    POST
> .  #full_url
>     returns String
> .    escapes params
> .    with prefix
>       returns path with prefix
> .  GET #ping
>     returns OK
> .    with prefix
>       returns OK with prefix
> .  GET #version
>     returns 1.1.1
> .    with prefix
>       returns 1.1.1 with prefix
> .  Load balancing
>     balance requests
> .
> InfluxDB::Config
>   with no parameters specified
>     is expected to be nil
> .    is expected to eq ["localhost"]
> .    is expected to eq 8086
> .    is expected to eq "root"
> .    is expected to eq "root"
> .    is expected to be falsey
> .    is expected to eq "s"
> .    is expected to eq "params"
> .    is expected to be truthy
> .    is expected not to be udp
> .    is expected not to be async
> .    is expected to be falsey
> .    is expected to be nil
> .    is expected to be nil
> .  with no database specified
>     is expected to be nil
> .    is expected to eq ["host"]
> .    is expected to eq "port"
> .    is expected to eq "username"
> .    is expected to eq "password"
> .    is expected to eq "m"
> .    is expected to be falsey
> .  with both a database and options specified
>     is expected to eq "database"
> .    is expected to eq ["host"]
> .    is expected to eq "port"
> .    is expected to eq "username"
> .    is expected to eq "password"
> .    is expected to eq "m"
> .    is expected to be falsey
> .  with ssl option specified
>     is expected to be nil
> .    is expected to eq ["localhost"]
> .    is expected to eq 8086
> .    is expected to eq "root"
> .    is expected to eq "root"
> .    is expected to be truthy
> .  with multiple hosts specified
>     is expected to be nil
> .    is expected to eq 8086
> .    is expected to eq "root"
> .    is expected to eq "root"
> .    is expected to eq ["1.1.1.1", "2.2.2.2"]
> .  with auth_method basic auth specified
>     is expected to be nil
> .    is expected to eq ["localhost"]
> .    is expected to eq 8086
> .    is expected to eq "root"
> .    is expected to eq "root"
> .    is expected to eq "basic_auth"
> .  with udp specified with params
>     is expected to be udp
> .  with udp specified as true
>     is expected to be udp
> .  with async specified with params
>     is expected to be async
> .  with async specified as true
>     is expected to be async
> .  with epoch specified as seconds
>     is expected to eq "s"
> .  given a config URL
>     applies values found in URL
> .    applies defaults
> .    with encoded values
>       decode encoded values
> .    UDP
>       is expected to be udp
> .      is expected to equal 2345
> .      is expected to equal true
> .  given a config URL and explicit options
>     applies values found in URL
> .    applies values found in opts hash
> .    applies defaults
> .  given explicit proxy information
>     is expected to eq "my.proxy.addr"
> .    is expected to eq 8080
> .
> InfluxDB::Logging
>   has a default logger
> .  allows setting of a logger
> .  allows disabling of a logger
> .  when logging is disabled
>     does not log (FAILED - 1)
> F  when included in classes
>     logs with string message
> .    logs with block message
> .
> InfluxDB::MaxQueue
>   is expected to be a kind of Thread::Queue
> .  #new
>     allows max_depth to be set
> .  #push
>     allows an item to be added if the queue is not full
> .    doesn't allow items to be added if the queue is full
> .
> InfluxDB::PointValue
>   escaping
>     should escape correctly
> .    with empty values
>       should raise an exception
> .  dump
>     with all possible data passed
>       should have proper form
> .    without tags
>       should have proper form
> .    without tags and timestamp
>       should have proper form
> .    empty tag values
>       should be omitted
> .
> InfluxDB::Query::Builder
>   #quote
>     should quote parameters properly
> .  #build
>     named parameters
>       is expected to eq "SELECT value FROM rpm WHERE f = 'value' group by time(5m)"
> .      with string keys
>         is expected to eq "SELECT value FROM rpm WHERE f = 'value' group by time(5m)"
> .    positional parameter
>       is expected to eq "SELECT value FROM rpm WHERE time > 1437019900"
> .    missing parameters
>       is expected to raise /key.1. not found/
> .    extra parameters
>       is expected to eq "SELECT value FROM rpm WHERE time > 0"
> .
> InfluxDB
>   .convert_timestamp
>     should return the timestamp in "ns"
> .    should return the timestamp in nil
> .    should return the timestamp in "u"
> .    should return the timestamp in "ms"
> .    should return the timestamp in "s"
> .    should return the timestamp in "m"
> .    should return the timestamp in "h"
> .    should raise an excpetion when precision is unrecognized
> .  .now
>     should return the current time in "ns"
> .    should return the current time in nil
> .    should return the current time in "u"
> .    should return the current time in "ms"
> .    should return the current time in "s"
> .    should return the current time in "m"
> .    should return the current time in "h"
> .
> InfluxDB::Writer::Async::Worker
>   #push
>     writes aggregate payload to the client
> .
> 
> Failures:
> 
>   1) InfluxDB::Logging when logging is disabled does not log FIXED
>      Expected pending 'The test doesn't work since bugfix in rspec-mocks 3.10.1 (https://github.com/rspec/rspec-mocks/pull/1357)' to fail. No error was raised.
>      # ./spec/influxdb/logging_spec.rb:40
> 
> Failures:
> 
>   1) InfluxDB::Logging when logging is disabled does not log FIXED
>      Expected pending 'The test doesn't work since bugfix in rspec-mocks 3.10.1 (https://github.com/rspec/rspec-mocks/pull/1357)' to fail. No error was raised.
>      # ./spec/influxdb/logging_spec.rb:40
> 
> Finished in 0.2114 seconds (files took 0.36978 seconds to load)
> 191 examples, 1 failure
> 
> Failed examples:
> 
> rspec ./spec/influxdb/logging_spec.rb:40 # InfluxDB::Logging when logging is disabled does not log
> 
> Finished in 0.2114 seconds (files took 0.36978 seconds to load)
> 191 examples, 1 failure
> 
> Failed examples:
> 
> rspec ./spec/influxdb/logging_spec.rb:40 # InfluxDB::Logging when logging is disabled does not log
> 
> 
> /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.12.0/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/exe/rspec ./spec/influxdb/cases/query_batch_spec.rb ./spec/influxdb/cases/query_cluster_spec.rb ./spec/influxdb/cases/query_continuous_query_spec.rb ./spec/influxdb/cases/query_core_spec.rb ./spec/influxdb/cases/query_database_spec.rb ./spec/influxdb/cases/query_retention_policy_spec.rb ./spec/influxdb/cases/query_series_spec.rb ./spec/influxdb/cases/query_shard_spec.rb ./spec/influxdb/cases/query_user_spec.rb ./spec/influxdb/cases/query_with_params_spec.rb ./spec/influxdb/cases/querying_issue_7000_spec.rb ./spec/influxdb/cases/querying_spec.rb ./spec/influxdb/cases/retry_requests_spec.rb ./spec/influxdb/cases/show_field_keys_spec.rb ./spec/influxdb/cases/udp_client_spec.rb ./spec/influxdb/cases/write_points_spec.rb ./spec/influxdb/client_spec.rb ./spec/influxdb/config_spec.rb ./spec/influxdb/logging_spec.rb ./spec/influxdb/max_queue_spec.rb ./spec/influxdb/point_value_spec.rb ./spec/influxdb/query_builder_spec.rb ./spec/influxdb/time_conversion_spec.rb ./spec/influxdb/worker_spec.rb ./spec/smoke/smoke_batch_spec.rb ./spec/smoke/smoke_spec.rb --format documentation failed
> ERROR: Test "ruby3.1" failed.


The full build log is attached.

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruby-influxdb.log.gz
Type: application/gzip
Size: 20065 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20221227/5be2f9d8/attachment-0001.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20221227/5be2f9d8/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list