Created attachment 559022 [details] build.log [...] # Running: ......................................................................E Error: ActiveStorage::RepresentationTest#test_representing_an_MP4_video: MiniMagick::Invalid: `identify /var/tmp/portage/dev-ruby/activestorage-5.2.0/temp/mini_magick20181230-9213-1le0q2w` failed with error: identify: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556. bin/rails test /var/tmp/portage/dev-ruby/activestorage-5.2.0/work/ruby23/rails-5.2.0/activestorage/test/models/representation_test.rb:25 ............E Error: ActiveStorage::PreviewTest#test_previewing_an_MP4_video: MiniMagick::Invalid: `identify /var/tmp/portage/dev-ruby/activestorage-5.2.0/temp/mini_magick20181230-9213-362vkb` failed with error: identify: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556. bin/rails test /var/tmp/portage/dev-ruby/activestorage-5.2.0/work/ruby23/rails-5.2.0/activestorage/test/models/preview_test.rb:20 ...E Error: ActiveStorage::Previewer::VideoPreviewerTest#test_previewing_an_MP4_video: MiniMagick::Invalid: `identify /var/tmp/portage/dev-ruby/activestorage-5.2.0/temp/mini_magick20181230-9213-s8a73r` failed with error: identify: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556. bin/rails test /var/tmp/portage/dev-ruby/activestorage-5.2.0/work/ruby23/rails-5.2.0/activestorage/test/previewer/video_previewer_test.rb:13 ............................................. Finished in 21.447684s, 6.2011 runs/s, 15.8059 assertions/s. 133 runs, 339 assertions, 0 failures, 3 errors, 0 skips
Created attachment 559024 [details] emerge --info
I wonder how 5.2.0 was selected while three newer versions are available.
I ran tests on this version because of bug #654790.
Tried the more recent versions now, but each one fails with these 3 errors.
Created attachment 559570 [details] build.log (5.2.2)
I think what is going on here is that these tests require ffmpeg to be installed (with mp4 support) as this is setup up as a delegate for imagemagick. Can you confirm that they pass with ffmpeg installed?
(In reply to Hans de Graaff from comment #6) > Can you confirm that they pass with ffmpeg installed? Unfortunately I don't get that far with activestorage-5.2.3 and ruby24 tests. Tests fail due to missing deps in the first place. After manually emerging dev-ruby/bundler-1.16.1 and the other ruby gems it mentions in the various test failures I get to this point: [...] * Running test phase for ruby24 ... File does not exist: json/pure rake aborted! Command failed with status (1) Tasks: TOP => test (See full trace by running task with --trace) * ERROR: dev-ruby/activestorage-5.2.3::gentoo failed (test phase): * tests failed * * Call stack: * ebuild.sh, line 124: Called src_test * environment, line 4580: Called ruby-ng_src_test * environment, line 4292: Called _ruby_each_implementation 'each_ruby_test' * environment, line 525: Called _ruby_invoke_environment 'ruby24' 'each_ruby_test' * environment, line 654: Called each_ruby_test * environment, line 970: Called each_fakegem_test * environment, line 948: Called die I emerged dev-ruby/json-2.2.0 which does not solve the error and additionally did an gem install json_pure which does not help either.
(In reply to ernsteiswuerfel from comment #7) > File does not exist: json/pure This is provided by dev-ruby/json. > I emerged dev-ruby/json-2.2.0 which does not solve the error and > additionally did an gem install json_pure which does not help either. So the fact that emerging dev-ruby/json did not help leads me to believe something else is going on. Perhaps some ruby targets / eselect mismatch?
(In reply to Hans de Graaff from comment #8) > So the fact that emerging dev-ruby/json did not help leads me to believe > something else is going on. Perhaps some ruby targets / eselect mismatch? Does not look too suspicious: # eselect ruby list Available Ruby profiles: [1] ruby24 (with Rubygems) * # eselect ruby show Current Ruby version: ruby24 Current Rubygems version: gem24 In /etc/portage/make.conf RUBY_TARGETS="ruby24" is set. Is there something else I should check?
I'm closing this bug as the rails and ruby versions are old and no longer available. Please reopen if this is still an issue with current versions.