[DRE-maint] Bug#952022: ruby-puppet-syntax: FTBFS: ERROR: Test "ruby2.7" failed: LoadError:
Daniel Leidert
dleidert at debian.org
Wed Mar 4 18:30:18 GMT 2020
Package: src:ruby-puppet-syntax
Followup-For: Bug #952022
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
facter has been binNMUed. The Ruby2.7 tests then failed because sync was
missing (has been soplit out of Ruby). So I added ruby-sync. But the build
still fails:
Failures:
1) PuppetSyntax::Templates on Puppet >= 3.7 should return nothing from a valid file
Failure/Error: expect(res).to match([])
expected ["/usr/lib/ruby/vendor_ruby/puppet/file_system/file_impl.rb:80: warning: Using the last argument as keyword parameters is deprecated\n"] to match []
Diff:
@@ -1 +1,2 @@
+/usr/lib/ruby/vendor_ruby/puppet/file_system/file_impl.rb:80: warning: Using the last argument as keyword parameters is deprecated\n
# ./spec/puppet-syntax/templates_spec.rb:103:in `block (3 levels) in <top (required)>'
2) PuppetSyntax::Templates on Puppet >= 3.7 should catch SyntaxError
Failure/Error: expect(res.size).to eq(1)
expected: 1
got: 2
(compared using ==)
# ./spec/puppet-syntax/templates_spec.rb:110:in `block (3 levels) in <top (required)>'
3) PuppetSyntax::Templates on Puppet >= 3.7 should read more than one valid file
Failure/Error: expect(res).to match([])
expected ["/usr/lib/ruby/vendor_ruby/puppet/file_system/file_impl.rb:80: warning: Using the last argument as k...ile_system/file_impl.rb:80: warning: Using the last argument as keyword parameters is deprecated\n"] to match []
Diff:
@@ -1 +1,2 @@
+/usr/lib/ruby/vendor_ruby/puppet/file_system/file_impl.rb:80: warning: Using the last argument as keyword parameters is deprecated\n/usr/lib/ruby/vendor_ruby/puppet/file_system/file_impl.rb:80: warning: Using the last argument as keyword parameters is deprecated\n
# ./spec/puppet-syntax/templates_spec.rb:118:in `block (3 levels) in <top (required)>'
4) PuppetSyntax::Templates on Puppet >= 3.7 should continue after finding an error in the first file
Failure/Error: expect(res.size).to eq(2)
expected: 2
got: 3
(compared using ==)
# ./spec/puppet-syntax/templates_spec.rb:125:in `block (3 levels) in <top (required)>'
5) PuppetSyntax::Templates on Puppet >= 3.7 when the 'epp_only' options is set should process an ERB as EPP and find an error
Failure/Error: expect(res.size).to eq(1)
expected: 1
got: 2
(compared using ==)
# ./spec/puppet-syntax/templates_spec.rb:139:in `block (4 levels) in <top (required)>'
Finished in 0.09464 seconds (files took 0.70415 seconds to load)
43 examples, 5 failures
Failed examples:
rspec ./spec/puppet-syntax/templates_spec.rb:99 # PuppetSyntax::Templates on Puppet >= 3.7 should return nothing from a valid file
rspec ./spec/puppet-syntax/templates_spec.rb:106 # PuppetSyntax::Templates on Puppet >= 3.7 should catch SyntaxError
rspec ./spec/puppet-syntax/templates_spec.rb:114 # PuppetSyntax::Templates on Puppet >= 3.7 should read more than one valid file
rspec ./spec/puppet-syntax/templates_spec.rb:121 # PuppetSyntax::Templates on Puppet >= 3.7 should continue after finding an error in the first file
rspec ./spec/puppet-syntax/templates_spec.rb:135 # PuppetSyntax::Templates on Puppet >= 3.7 when the 'epp_only' options is set should process an ERB as EPP and find an error
/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 issue probably is the new warning thrown by Ruby. I guess that's the reason
why all those tests fail. Upstream maybe already fixed it but did not yet
release a new version.
I pushed my work to the repository.
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)
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAl5f87oACgkQS80FZ8KW
0F37/hAA2L6KoVI3ZnxYb0+XChM9xBUop07oHbYh+McgfwTwKXTpJJFPpa+jmnwQ
qUJVV7JJB0E//2oCOR2kN+NWLrdpSJHvpjYYy3nnfLR6rUjWxZ+vEJVIc/hfWOo+
Egg/o88uxzp8io8JXKRUrU3PHPIo1F+tL7SWhjDmlxzCTEtnpLQzYfLr3edVUFQb
zyfUZDcTLz7zIR0khe+EQEV6MTWanVD8XwrjhP1SBVrV6ZKmM+CkPbgcThk/JU0F
8rfVlS2DjQUPrzaAx+No1sEt1pr/NzXaRVUL07t9IQUGJ+L43owzrgviNsghW2Y+
Z/VnrZznXKxFGCYb9FiRAqxMr+bDnPn6FKeb+Hn34QBh6aW4GZ4vp/b5FWzT0hDS
lK+fK7ouLvD/jfHcAWsBc4C3KX88HW+hmlQR1Lke4L2qgvpljkUgYYmoBTXCe6CU
Y8iXeDe/tH4V3UVIlcKmCKBC+Jle30qrev+B5yBE/K2ap7SCyPXBLCRg7C4llWAz
RVmxccsx7k9NBgawWclUMl5AQYTCezmOZwNUR2g+MZlBrxkvOfhtYIVguSAvhYYM
l+qm9R/59Pm3A4xTuFYoox167r+1NhBksv/yEIXpm54HI14qJ0PFPTTCVoHFBW/a
a+paMQ+QPj7y9v35oQbnTgS9N7H2P61aif/PDLfrA14ZnG+ZxC4=
=erYH
-----END PGP SIGNATURE-----
More information about the Pkg-ruby-extras-maintainers
mailing list