You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Antoine Toulme (JIRA)" <ji...@apache.org> on 2010/05/21 02:34:15 UTC

[jira] Created: (BUILDR-443) Spec failures while running

Spec failures while running 
----------------------------

                 Key: BUILDR-443
                 URL: https://issues.apache.org/jira/browse/BUILDR-443
             Project: Buildr
          Issue Type: Bug
            Reporter: Antoine Toulme




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-443) Spec failures while running with JRuby 1.4 on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme updated BUILDR-443:
----------------------------------

    Attachment: failures.txt

The failures as a text file.

> Spec failures while running with JRuby 1.4 on Windows 7
> -------------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870768#action_12870768 ] 

Antoine Toulme commented on BUILDR-443:
---------------------------------------

I got this piece of code:
p File.mtime(@file)
p File.mtime(artifact(@spec).to_s)
p File.mtime(@file).to_s == File.mtime(artifact(@spec).to_s).to_s
p File.mtime(@file) == File.mtime(artifact(@spec).to_s)

It returns this:
Mon May 24 11:35:11 -0700 2010
Mon May 24 11:35:11 -0700 2010
true
false

Any reason why comparing mtimes on Windows return false, while they look pretty much the same to the naked eye ?

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt, failures_1.5.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (BUILDR-443) Spec failures while running with JRuby 1.4 on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme reassigned BUILDR-443:
-------------------------------------

    Assignee: Antoine Toulme

> Spec failures while running with JRuby 1.4 on Windows 7
> -------------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870716#action_12870716 ] 

Antoine Toulme commented on BUILDR-443:
---------------------------------------

Alex worked over this this week-end, added a few close statements for file manipulations and changed how we deal with mtime for transports.rb.

I still have 16 failures. I will attempt to fix more today.

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt, failures_1.5.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870830#action_12870830 ] 

Antoine Toulme commented on BUILDR-443:
---------------------------------------

OK. Strong objections to use to_s for now ?

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt, failures_1.5.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme updated BUILDR-443:
----------------------------------

    Attachment: failures_1.5.txt

The 29 failures as reported earlier, over jruby 1.5.

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt, failures_1.5.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-443) Spec failures while running with JRuby 1.4 on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme updated BUILDR-443:
----------------------------------

              Summary: Spec failures while running with JRuby 1.4 on Windows 7  (was: Spec failures while running )
        Fix Version/s: 1.4
    Affects Version/s: 1.4
             Priority: Blocker  (was: Major)

40 spec failures are detected while running with Windows 7.

> Spec failures while running with JRuby 1.4 on Windows 7
> -------------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870776#action_12870776 ] 

Alex Boisvert commented on BUILDR-443:
--------------------------------------

Because their resolution is finer than second.  (And to_s only shows up to seconds, which a good default for most cases)

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt, failures_1.5.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870858#action_12870858 ] 

Alex Boisvert commented on BUILDR-443:
--------------------------------------

Which test specifically?  I don't see why we would check for equality unless we set the mtime to a specific value.

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt, failures_1.5.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme updated BUILDR-443:
----------------------------------

    Summary: Spec failures while running with JRuby on Windows 7  (was: Spec failures while running with JRuby 1.4 on Windows 7)

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-443) Spec failures while running with JRuby 1.4 on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870119#action_12870119 ] 

Antoine Toulme commented on BUILDR-443:
---------------------------------------

Editing the bug as we now target compatibility with jruby 1.5.

Got this while running the specs:
C:/buildr/lib/buildr/java/test_result.rb:34:in `dump_yaml': uninitialized consta
nt Buildr::TestFramework::TestResult::Error::YAML (NameError)
        from C:/buildr/lib/buildr/java/test_result.rb:34:in `open'
        from C:/buildr/lib/buildr/java/test_result.rb:34:in `dump_yaml'
        from C:/buildr/lib/buildr/java/test_result.rb:41:in `guard'
        from C:/buildr/tmp/target/spec/runner.rb:35

Still got 29 failures. Will attach test results.

> Spec failures while running with JRuby 1.4 on Windows 7
> -------------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871962#action_12871962 ] 

Antoine Toulme commented on BUILDR-443:
---------------------------------------

We followed up on IRC and I fixed that particular issue with this commit: r947835.

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt, failures_1.5.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-443) Spec failures while running with JRuby 1.4 on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869820#action_12869820 ] 

Antoine Toulme commented on BUILDR-443:
---------------------------------------

I'm babbling with the command line on Windows... need to copy/paste the list of failures. They boil down to a few problems.

> Spec failures while running with JRuby 1.4 on Windows 7
> -------------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme resolved BUILDR-443.
-----------------------------------

    Resolution: Fixed

Marking as fixed for 1.4. We don't have a CI build on Win7 yet, so we will need to keep an eye out for this kind of OS related problem going forward.

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt, failures_1.5.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-443) Spec failures while running with JRuby on Windows 7

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870301#action_12870301 ] 

Antoine Toulme commented on BUILDR-443:
---------------------------------------

Charles, the relevant part of the log is at the bottom. You can skip to it, it starts with this block:
1)
'Buildr::Filter should not touch target directory unless running' FAILED
expected Wed May 19 20:03:25 -0700 2010 +/- (< 10), got Wed May 19 20:20:05 -0700 2010
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/expectations/fail_with.rb:41:in `fail_with'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/expectations/handler.rb:21:in `handle_matcher'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/expectations/extensions/kernel.rb:27:in `should'
./spec/core/common_spec.rb:504:
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in `instance_eval'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in `execute'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:37:in `execute'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:214:in `run_examples'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in `each'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in `run_examples'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:103:in `run'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:23:in `run'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in `each'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in `run'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/options.rb:151:in `run_examples'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9:in `run'
C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec:5

And most of the issues have to do with mtime. It triggered me to try running rake's specs themselves with jruby, but rake uses fork to run its specs.
JRuby crashes with the experimental fork support over it.

> Spec failures while running with JRuby on Windows 7
> ---------------------------------------------------
>
>                 Key: BUILDR-443
>                 URL: https://issues.apache.org/jira/browse/BUILDR-443
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: failures.txt, failures_1.5.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.