Source: ruby-api-pagination Version: 4.8.2-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: [email protected] Usertags: ruby3.0
Hi, We are about to enable building against ruby3.0 on unstable. During a test rebuild, ruby-api-pagination was found to fail to build in that situation. To reproduce this locally, you need to install ruby-all-dev from experimental on an unstable system or build chroot. Relevant part (hopefully): > ArgumentError: > wrong number of arguments (given 2, expected 1) > Shared Example Group: "an endpoint with existing Link headers" called > from ./spec/grape_spec.rb:40 > # > /usr/share/rubygems-integration/all/gems/kaminari-core-1.2.1/lib/kaminari/models/array_extension.rb:70:in > `paginate_array' > # ./lib/api-pagination.rb:97:in `paginate_with_kaminari' > # ./lib/api-pagination.rb:15:in `paginate' > # ./lib/grape/pagination.rb:12:in `paginate' > # ./spec/support/numbers_api.rb:21:in `block in <class:NumbersAPI>' > # > /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:182:in > `instrument' > # > /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:182:in > `instrument' > # ./spec/grape_spec.rb:38:in `block (4 levels) in <top (required)>' > > Finished in 0.26449 seconds (files took 2.07 seconds to load) > 76 examples, 70 failures > > Failed examples: > > rspec ./spec/rails_spec.rb:64 # NumbersController GET #index providing a > block yields to the block instead of implicitly rendering > rspec ./spec/rails_spec.rb:299 # NumbersController GET #index default per > page in objects without paginator defaults should not fail if model does not > respond to per page > rspec ./spec/rails_spec.rb:279 # NumbersController GET #index default per > page in model should not fail if the model yields nil for per page > rspec ./spec/rails_spec.rb:273 # NumbersController GET #index default per > page in model should use default per page from model > rspec ./spec/rails_spec.rb:159 # NumbersController GET #index custom page > param page_param as a symbol should work > rspec ./spec/rails_spec.rb:180 # NumbersController GET #index custom page > param page_param as a block should work > rspec './spec/rails_spec.rb[1:1:2:1:2]' # NumbersController GET #index with > existing Link headers behaves like an endpoint with existing Link headers > should contain pagination Links > rspec './spec/rails_spec.rb[1:1:2:1:3]' # NumbersController GET #index with > existing Link headers behaves like an endpoint with existing Link headers > should give a Total header > rspec './spec/rails_spec.rb[1:1:2:1:1]' # NumbersController GET #index with > existing Link headers behaves like an endpoint with existing Link headers > should keep existing Links > rspec ./spec/rails_spec.rb:104 # NumbersController GET #index with custom > response headers should give a X-Per-Page header > rspec ./spec/rails_spec.rb:112 # NumbersController GET #index with custom > response headers should give a X-Page header > rspec ./spec/rails_spec.rb:96 # NumbersController GET #index with custom > response headers should give a X-Total-Count header > rspec ./spec/rails_spec.rb:121 # NumbersController GET #index with custom > response headers with paginated result should use custom base_url in the Link > header > rspec ./spec/rails_spec.rb:236 # NumbersController GET #index paginate array > options has a properly set Total header > rspec ./spec/rails_spec.rb:216 # NumbersController GET #index custom per_page > param page_param as a block should work > rspec ./spec/rails_spec.rb:198 # NumbersController GET #index custom per_page > param per_page_param as a symbol should work > rspec ./spec/rails_spec.rb:132 # NumbersController GET #index configured not > to include the total should not include a Total header > rspec ./spec/rails_spec.rb:138 # NumbersController GET #index configured not > to include the total should not include a link with rel "last" > rspec ./spec/rails_spec.rb:27 # NumbersController GET #index without enough > items to give more than one page should give a Per-Page header > rspec ./spec/rails_spec.rb:23 # NumbersController GET #index without enough > items to give more than one page should give a Total header > rspec ./spec/rails_spec.rb:19 # NumbersController GET #index without enough > items to give more than one page should not paginate > rspec ./spec/rails_spec.rb:31 # NumbersController GET #index without enough > items to give more than one page should list all numbers in the response body > rspec './spec/rails_spec.rb[1:1:3:3:1:2]' # NumbersController GET #index with > enough items to paginate when somewhere comfortably in the middle behaves > like an endpoint with a middle page should give a Total header > rspec './spec/rails_spec.rb[1:1:3:3:1:1]' # NumbersController GET #index with > enough items to paginate when somewhere comfortably in the middle behaves > like an endpoint with a middle page should give all pagination links > rspec './spec/rails_spec.rb[1:1:3:3:1:3]' # NumbersController GET #index with > enough items to paginate when somewhere comfortably in the middle behaves > like an endpoint with a middle page should list a middle page of numbers in > the response body > rspec './spec/rails_spec.rb[1:1:3:2:1:5]' # NumbersController GET #index with > enough items to paginate when on the last page behaves like an endpoint with > a last page should give a Total header > rspec './spec/rails_spec.rb[1:1:3:2:1:2]' # NumbersController GET #index with > enough items to paginate when on the last page behaves like an endpoint with > a last page should not give a link with rel "next" > rspec './spec/rails_spec.rb[1:1:3:2:1:3]' # NumbersController GET #index with > enough items to paginate when on the last page behaves like an endpoint with > a last page should give a link with rel "first" > rspec './spec/rails_spec.rb[1:1:3:2:1:6]' # NumbersController GET #index with > enough items to paginate when on the last page behaves like an endpoint with > a last page should list the last page of numbers in the response body > rspec './spec/rails_spec.rb[1:1:3:2:1:1]' # NumbersController GET #index with > enough items to paginate when on the last page behaves like an endpoint with > a last page should not give a link with rel "last" > rspec './spec/rails_spec.rb[1:1:3:2:1:4]' # NumbersController GET #index with > enough items to paginate when on the last page behaves like an endpoint with > a last page should give a link with rel "prev" > rspec './spec/rails_spec.rb[1:1:3:1:1:1]' # NumbersController GET #index with > enough items to paginate when on the first page behaves like an endpoint with > a first page should not give a link with rel "first" > rspec './spec/rails_spec.rb[1:1:3:1:1:3]' # NumbersController GET #index with > enough items to paginate when on the first page behaves like an endpoint with > a first page should give a link with rel "last" > rspec './spec/rails_spec.rb[1:1:3:1:1:5]' # NumbersController GET #index with > enough items to paginate when on the first page behaves like an endpoint with > a first page should give a Total header > rspec './spec/rails_spec.rb[1:1:3:1:1:4]' # NumbersController GET #index with > enough items to paginate when on the first page behaves like an endpoint with > a first page should give a link with rel "next" > rspec './spec/rails_spec.rb[1:1:3:1:1:6]' # NumbersController GET #index with > enough items to paginate when on the first page behaves like an endpoint with > a first page should list the first page of numbers in the response body > rspec './spec/rails_spec.rb[1:1:3:1:1:2]' # NumbersController GET #index with > enough items to paginate when on the first page behaves like an endpoint with > a first page should not give a link with rel "prev" > rspec ./spec/api-pagination_spec.rb:12 # ApiPagination#paginate Using > kaminari .paginate should accept paginate_array_options option > rspec ./spec/api-pagination_spec.rb:30 # ApiPagination#paginate Using > kaminari .paginate configured not to include the total and paginating an > array should not call without_count on the collection > rspec ./spec/api-pagination_spec.rb:52 # ApiPagination#paginate Using > kaminari .pages_from on empty collection > rspec ./spec/grape_spec.rb:27 # NumbersAPI GET #index without enough items to > give more than one page should give a Per-Page header > rspec ./spec/grape_spec.rb:31 # NumbersAPI GET #index without enough items to > give more than one page should list all numbers in the response body > rspec ./spec/grape_spec.rb:23 # NumbersAPI GET #index without enough items to > give more than one page should give a Total header > rspec ./spec/grape_spec.rb:19 # NumbersAPI GET #index without enough items to > give more than one page should not paginate > rspec ./spec/grape_spec.rb:120 # NumbersAPI GET #index with custom response > headers should give a X-Per-Page header > rspec ./spec/grape_spec.rb:112 # NumbersAPI GET #index with custom response > headers should give a X-Total-Count header > rspec ./spec/grape_spec.rb:128 # NumbersAPI GET #index with custom response > headers should give a X-Page header > rspec ./spec/grape_spec.rb:159 # NumbersAPI GET #index with query string > including array parameter returns links with with same received parameters > rspec './spec/grape_spec.rb[1:2:3:1:1:4]' # NumbersAPI GET #index with enough > items to paginate when on the first page behaves like an endpoint with a > first page should give a link with rel "next" > rspec './spec/grape_spec.rb[1:2:3:1:1:6]' # NumbersAPI GET #index with enough > items to paginate when on the first page behaves like an endpoint with a > first page should list the first page of numbers in the response body > rspec './spec/grape_spec.rb[1:2:3:1:1:5]' # NumbersAPI GET #index with enough > items to paginate when on the first page behaves like an endpoint with a > first page should give a Total header > rspec './spec/grape_spec.rb[1:2:3:1:1:2]' # NumbersAPI GET #index with enough > items to paginate when on the first page behaves like an endpoint with a > first page should not give a link with rel "prev" > rspec './spec/grape_spec.rb[1:2:3:1:1:3]' # NumbersAPI GET #index with enough > items to paginate when on the first page behaves like an endpoint with a > first page should give a link with rel "last" > rspec './spec/grape_spec.rb[1:2:3:1:1:1]' # NumbersAPI GET #index with enough > items to paginate when on the first page behaves like an endpoint with a > first page should not give a link with rel "first" > rspec './spec/grape_spec.rb[1:2:3:2:1:2]' # NumbersAPI GET #index with enough > items to paginate when on the last page behaves like an endpoint with a last > page should not give a link with rel "next" > rspec './spec/grape_spec.rb[1:2:3:2:1:5]' # NumbersAPI GET #index with enough > items to paginate when on the last page behaves like an endpoint with a last > page should give a Total header > rspec './spec/grape_spec.rb[1:2:3:2:1:6]' # NumbersAPI GET #index with enough > items to paginate when on the last page behaves like an endpoint with a last > page should list the last page of numbers in the response body > rspec './spec/grape_spec.rb[1:2:3:2:1:4]' # NumbersAPI GET #index with enough > items to paginate when on the last page behaves like an endpoint with a last > page should give a link with rel "prev" > rspec './spec/grape_spec.rb[1:2:3:2:1:3]' # NumbersAPI GET #index with enough > items to paginate when on the last page behaves like an endpoint with a last > page should give a link with rel "first" > rspec './spec/grape_spec.rb[1:2:3:2:1:1]' # NumbersAPI GET #index with enough > items to paginate when on the last page behaves like an endpoint with a last > page should not give a link with rel "last" > rspec ./spec/grape_spec.rb:65 # NumbersAPI GET #index with enough items to > paginate without a max_per_page setting should list all numbers within per > page in the response body > rspec './spec/grape_spec.rb[1:2:3:3:1:1]' # NumbersAPI GET #index with enough > items to paginate when somewhere comfortably in the middle behaves like an > endpoint with a middle page should give all pagination links > rspec './spec/grape_spec.rb[1:2:3:3:1:2]' # NumbersAPI GET #index with enough > items to paginate when somewhere comfortably in the middle behaves like an > endpoint with a middle page should give a Total header > rspec './spec/grape_spec.rb[1:2:3:3:1:3]' # NumbersAPI GET #index with enough > items to paginate when somewhere comfortably in the middle behaves like an > endpoint with a middle page should list a middle page of numbers in the > response body > rspec ./spec/grape_spec.rb:75 # NumbersAPI GET #index with enough items to > paginate with a max_per_page setting not enforced should not go above the > max_per_page_limit > rspec ./spec/grape_spec.rb:139 # NumbersAPI GET #index configured not to > include the total should not include a Total header > rspec ./spec/grape_spec.rb:145 # NumbersAPI GET #index configured not to > include the total should not include a link with rel "last" > rspec './spec/grape_spec.rb[1:2:2:1:1]' # NumbersAPI GET #index with existing > Link headers behaves like an endpoint with existing Link headers should keep > existing Links > rspec './spec/grape_spec.rb[1:2:2:1:3]' # NumbersAPI GET #index with existing > Link headers behaves like an endpoint with existing Link headers should give > a Total header > rspec './spec/grape_spec.rb[1:2:2:1:2]' # NumbersAPI GET #index with existing > Link headers behaves like an endpoint with existing Link headers should > contain pagination Links > > Randomized with seed 43573 > > /usr/bin/ruby3.0 > -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib > /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec > --pattern ./spec/\*\*/\*_spec.rb --format documentation failed > ERROR: Test "ruby3.0" failed: The full build log is available at https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-api-pagination/ruby-api-pagination_4.8.2-1+rebuild1633375241_amd64.build.txt
signature.asc
Description: PGP signature

