Bug 1413934 - rubygem-railties: FTBFS test_simple_failed_test
Summary: rubygem-railties: FTBFS test_simple_failed_test
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygem-railties
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Valena
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-17 11:09 UTC by Jun Aruga
Modified: 2017-01-23 13:07 UTC (History)
4 users (show)

Fixed In Version: rubygem-railties-5.0.1-2.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-23 13:07:01 UTC
Type: Bug


Attachments (Terms of Use)

Description Jun Aruga 2017-01-17 11:09:27 UTC
Description of problem:

FTBFS

Version-Release number of selected component (if applicable):
rubygem-railties-5.0.1-1.fc26

How reproducible:

Steps to Reproduce:
1. $ fedpkg scratch-build --srpm
2.
3.

Actual results:

https://koji.fedoraproject.org/koji/taskinfo?taskID=17310823
https://kojipkgs.fedoraproject.org//work/tasks/823/17310823/build.log

* Test file: test/application/test_test.rb
...
Finished in 217.756894s, 0.0459 runs/s, 0.1607 assertions/s.
  1) Failure:
ApplicationTests::TestTest#test_simple_failed_test [test/application/test_test.rb:59]:
Expected false to be truthy.
10 runs, 35 assertions, 1 failures, 0 errors, 0 skips
xargs: sh: exited with status 255; aborting
error: Bad exit status from /var/tmp/rpm-tmp.galqc0 (%check)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.galqc0 (%check)
Child return code was: 1


Expected results:

The tests are succeeded.

Additional info:

1. Need this patch to fix it?
https://github.com/rails/rails/commit/29f0fbd5db643b885665e4a14c7de3bf6c0d9c96


2. 

On Rails upstream, master branch(146e9288001986cd3cfb2513ba8a606e00aeb61a), the tests are succeeded.

```
$ git checkout master
$ bundle install --path vendor/bundle
$ bundle exec ruby -Irailties/test railties/test/application/test_test.rb 
Run options: --seed 32919

# Running:

..........

Finished in 64.581322s, 0.1548 runs/s, 0.6503 assertions/s.

10 runs, 42 assertions, 0 failures, 0 errors, 0 skips
```

Comment 1 Pavel Valena 2017-01-19 16:32:23 UTC
Hello Jun,

this Failure is solved by https://github.com/rails/rails/pull/27739

I will soon build a new release with the remaining tests enabled.

Thanks!


Note You need to log in before you can comment on or make changes to this bug.