jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • RVM
  • RVM-139

Update environment on regression machines

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Infrastructure
  • Labels:
    None

Description

Can we update the regression machines so that they all have ruby and rake (a ruby build tool) present and also if possible update ant to 1.7.0.

I would like to start experimenting and eventually move to rake as the mechanism for running and maintaining our tests. Ant is broken in so many ways and our build files are becoming very painful to maintain. Looking at jikesrvm.anu.edu.au it looks like the bundled packages are rake 0.7.1 and ruby 1.8.5 - both of which are modern enough for what we need to do.

Ant 1.7.0 has many features that would be "nice to have" but the only feature that is really of significant interest is the apt task which simplifies running apt over many many files and may recompile during that time (which would make RVM-39 much easier).

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
David Grove added a comment - 12/Jul/07 10:05 PM

I installed ant 1.7.0, ruby 1.8.6 and rake 0.7.3 on excalibur.

One observation was that installing rake was that for me at least (not ever having used ruby before), installing rake was not exactly idiot proof. It took about 15 minutes and several googles to figure out what other random pieces of ruby code I needed to install beyond just ruby and rake. I'm still not 100% sure the installation is correct (I ran the rake test suite and it didn't get a clean pass...results appended).

As long as we're just thinking about rake for using mainly on the regression machines and by core team members for doing heavy testing I think this is ok. We can afford the overhead of helping a few people install this stuff on their machines. f we're going to get to a point where we think "normal" users are going to need to have rake installed, then we're going to have to put some effort into documenting exactly what they need to install (in very precise detail).

rake test results:

[excalibur:/homes/excalibur/dgrove/rake-0.7.3] rake
(in /homes/excalibur/dgrove/rake-0.7.3)
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader
Started
..........E..................E.......................................................................................................................................................E......................................................................
Finished in 34.572741 seconds.

1) Error:
test_load_rakefile_from_subdir(TestApplication):
Errno::ENOENT: No such file or directory - test/data/unittest/subdir
./test/test_application.rb:68:in `chdir'
./test/test_application.rb:68:in `test_load_rakefile_from_subdir'

2) Error:
test_require(TestApplicationOptions):
LoadError: no such file to load – test/reqfile3
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
./lib/rake.rb:1864:in `do_option'
./lib/rake.rb:1900:in `handle_options'
/usr/local/lib/ruby/1.8/getoptlong.rb:613:in `each'
/usr/local/lib/ruby/1.8/getoptlong.rb:610:in `loop'
/usr/local/lib/ruby/1.8/getoptlong.rb:610:in `each'
./lib/rake.rb:1900:in `handle_options'
./test/test_application.rb:418:in `command_line'
./test/test_application.rb:417:in `instance_eval'
./test/test_application.rb:417:in `command_line'
./test/test_application.rb:405:in `flags'
./test/test_application.rb:405:in `catch'
./test/test_application.rb:405:in `flags'
./test/capture_stdout.rb:11:in `capture_stdout'
./test/test_application.rb:404:in `flags'
./test/test_application.rb:403:in `each'
./test/test_application.rb:403:in `flags'
./test/test_application.rb:319:in `test_require'

3) Error:
test_can_load_rake_library(TestRequire):
LoadError: Can't find test2
./lib/rake.rb:1926:in `rake_require'
./test/test_require.rb:12:in `test_can_load_rake_library'
./test/test_require.rb:11:in `instance_eval'
./test/test_require.rb:11:in `test_can_load_rake_library'

252 tests, 732 assertions, 0 failures, 3 errors

Show
David Grove added a comment - 12/Jul/07 10:05 PM I installed ant 1.7.0, ruby 1.8.6 and rake 0.7.3 on excalibur. One observation was that installing rake was that for me at least (not ever having used ruby before), installing rake was not exactly idiot proof. It took about 15 minutes and several googles to figure out what other random pieces of ruby code I needed to install beyond just ruby and rake. I'm still not 100% sure the installation is correct (I ran the rake test suite and it didn't get a clean pass...results appended). As long as we're just thinking about rake for using mainly on the regression machines and by core team members for doing heavy testing I think this is ok. We can afford the overhead of helping a few people install this stuff on their machines. f we're going to get to a point where we think "normal" users are going to need to have rake installed, then we're going to have to put some effort into documenting exactly what they need to install (in very precise detail). rake test results: [excalibur:/homes/excalibur/dgrove/rake-0.7.3] rake (in /homes/excalibur/dgrove/rake-0.7.3) UNABLE TO RUN FUNCTIONAL TESTS No Session Found Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader Started ..........E..................E.......................................................................................................................................................E...................................................................... Finished in 34.572741 seconds. 1) Error: test_load_rakefile_from_subdir(TestApplication): Errno::ENOENT: No such file or directory - test/data/unittest/subdir ./test/test_application.rb:68:in `chdir' ./test/test_application.rb:68:in `test_load_rakefile_from_subdir' 2) Error: test_require(TestApplicationOptions): LoadError: no such file to load – test/reqfile3 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' ./lib/rake.rb:1864:in `do_option' ./lib/rake.rb:1900:in `handle_options' /usr/local/lib/ruby/1.8/getoptlong.rb:613:in `each' /usr/local/lib/ruby/1.8/getoptlong.rb:610:in `loop' /usr/local/lib/ruby/1.8/getoptlong.rb:610:in `each' ./lib/rake.rb:1900:in `handle_options' ./test/test_application.rb:418:in `command_line' ./test/test_application.rb:417:in `instance_eval' ./test/test_application.rb:417:in `command_line' ./test/test_application.rb:405:in `flags' ./test/test_application.rb:405:in `catch' ./test/test_application.rb:405:in `flags' ./test/capture_stdout.rb:11:in `capture_stdout' ./test/test_application.rb:404:in `flags' ./test/test_application.rb:403:in `each' ./test/test_application.rb:403:in `flags' ./test/test_application.rb:319:in `test_require' 3) Error: test_can_load_rake_library(TestRequire): LoadError: Can't find test2 ./lib/rake.rb:1926:in `rake_require' ./test/test_require.rb:12:in `test_can_load_rake_library' ./test/test_require.rb:11:in `instance_eval' ./test/test_require.rb:11:in `test_can_load_rake_library' 252 tests, 732 assertions, 0 failures, 3 errors
Hide
Permalink
Peter Donald added a comment - 21/Jul/07 1:33 AM

The idea is to eventually require ruby/rake for all testing so may need to look at documenting/streamlining the install. However it should be relatively easy for most systems. Basically you need ruby+ruby gems installed which is something like "emerge dev-ruby/rubygems" gentoo systems. Ubuntu has a similar step and win32 and OSX have installers that you run (Sorry no idea about aix :]).

Then to install rake it is something like

gem install rake --include-dependencies --http-proxy=http://proxy.foo.com:8080

I will wiki it when the time comes.

Show
Peter Donald added a comment - 21/Jul/07 1:33 AM The idea is to eventually require ruby/rake for all testing so may need to look at documenting/streamlining the install. However it should be relatively easy for most systems. Basically you need ruby+ruby gems installed which is something like "emerge dev-ruby/rubygems" gentoo systems. Ubuntu has a similar step and win32 and OSX have installers that you run (Sorry no idea about aix :]). Then to install rake it is something like gem install rake --include-dependencies --http-proxy=http://proxy.foo.com:8080 I will wiki it when the time comes.
Hide
Permalink
David Grove added a comment - 19/Sep/07 9:26 AM

Dropping priority on this under the theory that it isn't really a blocker. If it is a blocker, then we should resolve by updating ANU machines.

Show
David Grove added a comment - 19/Sep/07 9:26 AM Dropping priority on this under the theory that it isn't really a blocker. If it is a blocker, then we should resolve by updating ANU machines.
Hide
Permalink
David Grove added a comment - 04/Jul/08 2:39 PM

I think this is out of date.

Show
David Grove added a comment - 04/Jul/08 2:39 PM I think this is out of date.

People

  • Assignee:
    Unassigned
    Reporter:
    Peter Donald
Vote (0)
Watch (0)

Dates

  • Created:
    11/Jul/07 2:40 AM
    Updated:
    04/Jul/08 2:39 PM
    Resolved:
    04/Jul/08 2:39 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.