Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674106 - >=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
Summary: >=dev-ruby/activestorage-5.2.0: fails RepresentationTest#test_representing_an...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-12-30 17:35 UTC by ernsteiswuerfel
Modified: 2019-07-26 09:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (activestorage-5.2.0:20181230-155400.log,6.99 KB, text/plain)
2018-12-30 17:35 UTC, ernsteiswuerfel
Details
emerge --info (file_674106.txt,5.91 KB, text/plain)
2018-12-30 17:36 UTC, ernsteiswuerfel
Details
build.log (5.2.2) (activestorage-5.2.2:20190102-182520.log,7.07 KB, text/plain)
2019-01-02 18:51 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
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 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 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?