[DRE-maint] Bug#951587: ruby-batch-loader: FTBFS against ruby2.7: cannot load such file -- irb/ruby-token

Daniel Leidert dleidert at debian.org
Thu Feb 27 19:50:16 GMT 2020


Package: src:ruby-batch-loader
Followup-For: Bug #951587

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

After fixing/updating ruby-graphql the build fails with:

Failures:

  1) BatchLoader#batch does not allow mutating a list of items
     Failure/Error: expect { batch_loader.to_s }.to raise_error(RuntimeError, "can't modify frozen Array")

       expected RuntimeError with "can't modify frozen Array", got #<FrozenError: can't modify frozen Array: [1]> with backtrace:
         # /<<PKGBUILDDIR>>/spec/batch_loader_spec.rb:299:in `map!'
         # /<<PKGBUILDDIR>>/spec/batch_loader_spec.rb:299:in `block (4 levels) in <top (required)>'
         # /<<PKGBUILDDIR>>/lib/batch_loader.rb:92:in `__ensure_batched'
         # /<<PKGBUILDDIR>>/lib/batch_loader.rb:53:in `__sync'
         # /<<PKGBUILDDIR>>/lib/batch_loader.rb:77:in `__sync!'
         # /<<PKGBUILDDIR>>/lib/batch_loader.rb:73:in `method_missing'
         # /<<PKGBUILDDIR>>/spec/batch_loader_spec.rb:302:in `block (4 levels) in <top (required)>'
         # /<<PKGBUILDDIR>>/spec/batch_loader_spec.rb:302:in `block (3 levels) in <top (required)>'
     # /<<PKGBUILDDIR>>/spec/batch_loader_spec.rb:302:in `block (3 levels) in <top (required)>'

Finished in 2.58 seconds (files took 0.39064 seconds to load)
30 examples, 1 failure

Failed examples:

rspec /<<PKGBUILDDIR>>/spec/batch_loader_spec.rb:297 # BatchLoader#batch does not allow mutating a list of items

Randomized with seed 3962

/usr/bin/ruby2.7 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.2/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby2.7" failed. Exiting.



The difference is that it throws a FrozenError instead of a RuntimeError. This
should be fairly easy to fix.

Regards, Daniel


- -- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAl5YHXgACgkQS80FZ8KW
0F3q1g//ZTcIPdhHJHLQr8HZVzcRM2WLqVaoyIGJsOlkp+2gxMFVTB/KxlMyAsxA
biPsjwucU8k3fSG9Kx2BdZ9OuNyeENp8S6HT/VMtHjuuLzyeS4/uo0KtVCDdFh9Y
9kyXCGPn57FJusvqMMIs3A6n6PQeZyYU7HTrSyKJAyhspMubESLeOZa4TG5Pq+W/
M+Ah28k7+Unxt4yuCjj+Vsjbf1r/koZJahR9EunpKc09aXD+/m4z9bQbnj9ArOaC
lhLVQ3LoOgbnj/olTUc3EYlSK6Uc7GT0X90TXdK0pe1JwwF09d0GAim4YwIuS82v
kIm3Uloeoi5A/PBFs7TRwswUmsyKdIuvxLb/w7JFRBxyy2Sz778SZb0p4UsQ+IAT
wzwlODOU90YISPXhJb7qI2WnW/l5bCiA8KEo52lfxy6tAhGUEK0i1Bz9cann6GuR
+Lh/ML7b4yfX75Qf0YmOutpz8TBt7EGC2waNG3RN/VzYl6lfZ6xnvgzFzTC1DN+M
Q2lkUUi11eO7iUhzkZXnzRw3o15jq/eHzropMUL3KLJbJSvGx4WoywCjgZmWmnqW
1//aMXw4VrPOJlI7WqKt6y5AK3CD/LHvnEaY/4LusGRopYraIC8Akbxr58vntiRK
EnEBPtxidctLqNcKX0CIDeeCo1Qsd2hKOKzCDpZgHYfQwpqoMu8=
=32kx
-----END PGP SIGNATURE-----



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