Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 674106

Summary: >=dev-ruby/activestorage-5.2.0: fails RepresentationTest#test_representing_an_MP4_video, PreviewTest#test_previewing_an_MP4_video, Previewer::VideoPreviewerTest#test_previewing_an_MP4_video tests
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED TEST-REQUEST    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
build.log (5.2.2)

Description ernsteiswuerfel archtester 2018-12-30 17:35:39 UTC
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
Comment 1 ernsteiswuerfel archtester 2018-12-30 17:36:15 UTC
Created attachment 559024 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-12-30 18:50:40 UTC
I wonder how 5.2.0 was selected while three newer versions are available.
Comment 3 ernsteiswuerfel archtester 2018-12-30 19:52:37 UTC
I ran tests on this version because of bug #654790.
Comment 4 ernsteiswuerfel archtester 2019-01-02 18:51:17 UTC
Tried the more recent versions now, but each one fails with these 3 errors.
Comment 5 ernsteiswuerfel archtester 2019-01-02 18:51:43 UTC
Created attachment 559570 [details]
build.log (5.2.2)
Comment 6 Hans de Graaff gentoo-dev Security 2019-05-30 18:20:11 UTC
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?
Comment 7 ernsteiswuerfel archtester 2019-06-04 18:11:57 UTC
(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.
Comment 8 Hans de Graaff gentoo-dev Security 2019-07-19 07:00:58 UTC
(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?
Comment 9 ernsteiswuerfel archtester 2019-07-26 09:31:17 UTC
(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?
Comment 10 Hans de Graaff gentoo-dev Security 2023-06-18 07:35:49 UTC
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.