Opscode Open Source Ticket Tracking

  • 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)
  • Knife Plugins
  • KNIFE-169

Failing specs

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Unknown Unknown
  • Resolution: Fixed
  • Affects Version/s: ec2-0.5.10
  • Fix Version/s: ec2-0.5.12
  • Component/s: knife-ec2
  • Labels:
    • knife
    • rspec
    • spec
  • Environment:

    Ruby 1.8.7 on Ubuntu 10.04 (Travis)
    Ruby 1.9.3 on Mac OS X (development laptop)

Description

Full RSpec run available on http://travis-ci.org/#!/gkarekinian/knife-ec2/builds/270542
I've already fixed the Ec2ServerCreate specs and added specs for Ec2ServerList and Ec2ServerDelete.

A successful run is available at http://travis-ci.org/#!/greenalto/knife-ec2/builds/267403

The repository containing the fix and the new specs is at https://github.com/greenalto/knife-ec2/tree/KNIFE_EC2-39

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • Transitions Summary
Greg Karékinian made changes - 02/Nov/11 8:12 PM
Field Original Value New Value
Environment Ruby 1.8.7 on Ubuntu 10.04 ( Ruby 1.8.7 on Ubuntu 10.04 (Travis)
Ruby 1.9.3 on Mac OS X (development laptop)
Greg Karékinian made changes - 02/Nov/11 8:12 PM
Assignee Grégory Karékinian [ gkarekinian ]
Greg Karékinian made changes - 02/Nov/11 8:17 PM
Description Full RSpec run available on http://travis-ci.org/#!/gkarekinian/knife-ec2/builds/270542
I've already fixed the Ec2ServerCreate specs and added specs for Ec2ServerList and Ec2ServerDelete (going to rename the branch to the issue identifier)

A successful run is available at http://travis-ci.org/#!/greenalto/knife-ec2/builds/267403 and the current repository at https://github.com/greenalto/knife-ec2 (pending branch rename)
Full RSpec run available on http://travis-ci.org/#!/gkarekinian/knife-ec2/builds/270542
I've already fixed the Ec2ServerCreate specs and added specs for Ec2ServerList and Ec2ServerDelete.

A successful run is available at http://travis-ci.org/#!/greenalto/knife-ec2/builds/267403

The repository containing the fix and the new specs is at https://github.com/greenalto/knife-ec2/tree/KNIFE_EC2-39
Hide
Permalink
Greg Karékinian added a comment - 02/Nov/11 8:26 PM

Fixed at https://github.com/greenalto/knife-ec2/tree/KNIFE_EC2-39

Show
Greg Karékinian added a comment - 02/Nov/11 8:26 PM Fixed at https://github.com/greenalto/knife-ec2/tree/KNIFE_EC2-39
Greg Karékinian made changes - 02/Nov/11 8:26 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Hide
Permalink
Bryan McLellan [Opscode] added a comment - 04/Jan/12 8:24 PM

Hi! Thanks for this! We love tests!

There appears to be additional cruft in the branch, in addition to what this ticket aims to fix. We try to keep tickets, and the branches that go with them, topical. This way other developers in the community can use the tickets to understand what the problem or feature was that the branch or commit is solving or adding.

For instance, I see multiple references to the travis-ci [1] project. I'm not familiar with it, so I don't know if we would want to build in support into the project or not, but we should do so in another ticket at least.

You also bump the dependency for fog. We're really cautious about this sort of thing. First, we want to be sure that we're tested on those releases and we don't see any comments here about the possible repercussions of that move. That should also be another ticket. Sometimes requiring one gem of a newer version can pull in a number of dependencies. We also build our software out in other packaging systems, so we like to have it documented why we increased the dependency. Was there a feature or a fix that was needed?

If you could split unrelated commits into other tickets, we could review the spec tests more thoroughly and provide better advice to you.

Once again, thanks for contributing!
[1] http://about.travis-ci.org/

Show
Bryan McLellan [Opscode] added a comment - 04/Jan/12 8:24 PM Hi! Thanks for this! We love tests! There appears to be additional cruft in the branch, in addition to what this ticket aims to fix. We try to keep tickets, and the branches that go with them, topical. This way other developers in the community can use the tickets to understand what the problem or feature was that the branch or commit is solving or adding. For instance, I see multiple references to the travis-ci [1] project. I'm not familiar with it, so I don't know if we would want to build in support into the project or not, but we should do so in another ticket at least. You also bump the dependency for fog. We're really cautious about this sort of thing. First, we want to be sure that we're tested on those releases and we don't see any comments here about the possible repercussions of that move. That should also be another ticket. Sometimes requiring one gem of a newer version can pull in a number of dependencies. We also build our software out in other packaging systems, so we like to have it documented why we increased the dependency. Was there a feature or a fix that was needed? If you could split unrelated commits into other tickets, we could review the spec tests more thoroughly and provide better advice to you. Once again, thanks for contributing! [1] http://about.travis-ci.org/
Bryan McLellan [Opscode] made changes - 04/Jan/12 8:24 PM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Hide
Permalink
Greg Karékinian added a comment - 04/Jan/12 8:52 PM - edited

I'm going to delete the extra staff from this branch. The fog version bump was a mistake, I'll fix this as well.

I'll let you guys know when I'm done!

Show
Greg Karékinian added a comment - 04/Jan/12 8:52 PM - edited I'm going to delete the extra staff from this branch. The fog version bump was a mistake, I'll fix this as well. I'll let you guys know when I'm done!
Hide
Permalink
Greg Karékinian added a comment - 04/Jan/12 10:01 PM

I've fixed the currently failing spec (diff is here: https://github.com/greenalto/knife-ec2/commit/d4aeca1bbffdd341086e4064bd484be6485fae21) and changed just enough to make them pass (dependencies missing on chef, added rspec to the Gemfile). I've also added Gemfile.lock to the repo (it's recommended by the Bundler authors).

I couldn't find out which chef version is supported by the current version knife-ec2 so I've used '~> 0.10', I can change this if you know the answer.

Here is the branch: https://github.com/greenalto/knife-ec2/tree/KNIFE_EC2-39

There's been some commits recently so I'll have to work some more on specs for the other classes later. I'm also interested in improving the current one, but right now I need some sleep! I think adding your projects to Travis CI will benefit you, it's a community-backed Continuous Integration server with support for multiple Ruby versions.

Let me know when you guys have reviewed it, this has been tested on both Ruby 1.9.3-p0 and 1.8.7-p352.

-------------
By the way I've also found out there's a mixup in the gemspec (Rackspace instead of Amazon EC2). Should I create a ticket for this or will someone from Opscode change it ?
See https://rubygems.org/gems/knife-ec2 ("Rackspace Support for Chef's Knife Command")
https://github.com/greenalto/knife-ec2/commit/2854228947c2f59c287bc6ce161f34649cced355

Show
Greg Karékinian added a comment - 04/Jan/12 10:01 PM I've fixed the currently failing spec (diff is here: https://github.com/greenalto/knife-ec2/commit/d4aeca1bbffdd341086e4064bd484be6485fae21 ) and changed just enough to make them pass (dependencies missing on chef, added rspec to the Gemfile). I've also added Gemfile.lock to the repo (it's recommended by the Bundler authors). I couldn't find out which chef version is supported by the current version knife-ec2 so I've used '~> 0.10', I can change this if you know the answer. Here is the branch: https://github.com/greenalto/knife-ec2/tree/KNIFE_EC2-39 There's been some commits recently so I'll have to work some more on specs for the other classes later. I'm also interested in improving the current one, but right now I need some sleep! I think adding your projects to Travis CI will benefit you, it's a community-backed Continuous Integration server with support for multiple Ruby versions. Let me know when you guys have reviewed it, this has been tested on both Ruby 1.9.3-p0 and 1.8.7-p352. ------------- By the way I've also found out there's a mixup in the gemspec (Rackspace instead of Amazon EC2). Should I create a ticket for this or will someone from Opscode change it ? See https://rubygems.org/gems/knife-ec2 ("Rackspace Support for Chef's Knife Command") https://github.com/greenalto/knife-ec2/commit/2854228947c2f59c287bc6ce161f34649cced355
Greg Karékinian made changes - 11/Jan/12 2:59 PM
Status Reopened [ 4 ] In Progress [ 3 ]
Greg Karékinian made changes - 11/Jan/12 3:00 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Hide
Permalink
Bryan McLellan [Opscode] added a comment - 11/Jan/12 7:41 PM

Thanks. Marked to be merged.

We had a memory of a problem with depending on Chef in the gemspec, but we can't remember what it was. We thought it might have been that gem would pull in the latest version of dependencies, but we couldn't produce that. So that's okay unless we can figure out why.

We'll grab that rackspace text issue, thanks for catching that.

Show
Bryan McLellan [Opscode] added a comment - 11/Jan/12 7:41 PM Thanks. Marked to be merged. We had a memory of a problem with depending on Chef in the gemspec, but we can't remember what it was. We thought it might have been that gem would pull in the latest version of dependencies, but we couldn't produce that. So that's okay unless we can figure out why. We'll grab that rackspace text issue, thanks for catching that.
Bryan McLellan [Opscode] made changes - 11/Jan/12 7:41 PM
Triage Status [Triaged]
Hide
Permalink
Steven Danna added a comment - 06/Apr/12 4:55 PM

Merged! Thanks again! (https://github.com/opscode/knife-ec2/commit/6bce5d546dde37f9338a66876eb707bf6c71473c)

Show
Steven Danna added a comment - 06/Apr/12 4:55 PM Merged! Thanks again! ( https://github.com/opscode/knife-ec2/commit/6bce5d546dde37f9338a66876eb707bf6c71473c )
Steven Danna made changes - 06/Apr/12 4:55 PM
Status Resolved [ 5 ] Closed [ 6 ]
Fix Version/s 0.5.12 [ 10500 ]
Bryan McLellan [Opscode] made changes - 09/Nov/12 4:37 PM
Project Knife EC2 Plugin [ 10020 ] Knife Plugins [ 10228 ]
Key KNIFE_EC2-39 KNIFE-169
Workflow jira [ 14589 ] New OSS [ 22752 ]
Reporter Grégory Karékinian [ gkarekinian ] Bryan McLellan [ btm ]
Affects Version/s ec2-0.5.10 [ 11137 ]
Affects Version/s 0.5.10 [ 10407 ]
Component/s knife-ec2 [ 11093 ]
Fix Version/s ec2-0.5.12 [ 11138 ]
Fix Version/s 0.5.12 [ 10500 ]
Transition Time In Source Status Execution Times Last Executer Last Execution Date
Open Open Resolved Resolved
18m 42s 1 Greg Karékinian 02/Nov/11 8:26 PM
Resolved Resolved Reopened Reopened
62d 23h 58m 1 Bryan McLellan [Opscode] 04/Jan/12 8:24 PM
Reopened Reopened In Progress In Progress
6d 18h 35m 1 Greg Karékinian 11/Jan/12 2:59 PM
In Progress In Progress Resolved Resolved
12s 1 Greg Karékinian 11/Jan/12 3:00 PM
Resolved Resolved Closed Closed
86d 1h 55m 1 Steven Danna 06/Apr/12 4:55 PM

People

  • Assignee:
    Greg Karékinian
    Reporter:
    Bryan McLellan [Opscode]
Vote (0)
Watch (2)

Dates

  • Created:
    02/Nov/11 8:07 PM
    Updated:
    09/Nov/12 4:37 PM
    Resolved:
    11/Jan/12 3:00 PM
  • Atlassian JIRA (v5.1.5#784-sha1:6c72993)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Chef and Ohai. Try JIRA - bug tracking software for your team.