Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(24)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 10871045: worker/deployer: Clarify imports

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by jameinel
Modified:
12 years, 6 months ago
Reviewers:
mue , dimitern , mp+173347, dave
Visibility:
Public.
worker/deployer: Clarify imports deployer_test imports a lot of 'testing' packages. This just changes it so all of them are prefixed to make it easier to figure out where each bit of code comes from. https://code.launchpad.net/~jameinel/juju-core/trivial-deployer/+merge/173347 (do not edit description out of merge proposal)

Patch Set 1 #

Created: 12 years, 6 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M worker/deployer/deployer_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
Total messages: 5
|
jameinel
Please take a look.
12 years, 6 months ago (2013年07月07日 09:44:09 UTC) #1
Please take a look.
Sign in to reply to this message.
dave_cheney.net
On 2013年07月07日 09:44:09, jameinel wrote: > Please take a look. not lgtm. I think there ...
12 years, 6 months ago (2013年07月08日 02:12:44 UTC) #2
On 2013年07月07日 09:44:09, jameinel wrote:
> Please take a look.
not lgtm. I think there was agreement a while back that when we glommed onto the
name space of an existing package we'd use 
import coretesting "testing"
I don't see a need to overspecify the import path of our testing package.
Sign in to reply to this message.
jameinel
On 2013年07月08日 02:12:44, dfc wrote: > On 2013年07月07日 09:44:09, jameinel wrote: > > Please take ...
12 years, 6 months ago (2013年07月08日 04:56:46 UTC) #3
On 2013年07月08日 02:12:44, dfc wrote:
> On 2013年07月07日 09:44:09, jameinel wrote:
> > Please take a look.
> 
> not lgtm. I think there was agreement a while back that when we glommed onto
the
> name space of an existing package we'd use 
> 
> import coretesting "testing"
> 
> I don't see a need to overspecify the import path of our testing package.
stdtesting "testing"
coretesting "launchpad.net/juju-core/testing"
jujutesting "launchpad.net/juju-core/juju/testing"
statetesting "launchpad.net/juju-core/state/testing"
Those are the ones I've seen. "std" for packages in the standard library, and
the other prefixes for ones in our files.
If you look in that file, it already has 'coretesting' imported, which is *not*
jujutesting.
import (
	"sort"
	"strings"
	stdtesting "testing"
	"time"
	. "launchpad.net/gocheck"
	"launchpad.net/juju-core/errors"
	"launchpad.net/juju-core/juju/testing"
	"launchpad.net/juju-core/state"
	"launchpad.net/juju-core/state/api/params"
	coretesting "launchpad.net/juju-core/testing"
	"launchpad.net/juju-core/worker/deployer"
)
The fact that you missed the fact it was 'juju-core/juju/testing' rather than
'juju-core/testing' is exactly why I was trying to give it a more descriptive
name.
Sign in to reply to this message.
dimitern
LGTM
12 years, 6 months ago (2013年07月08日 09:12:10 UTC) #4
LGTM
Sign in to reply to this message.
mue
LGTM, but I'm a bit torn. It's not very good to see so many "testing" ...
12 years, 6 months ago (2013年07月08日 09:39:53 UTC) #5
LGTM, but I'm a bit torn. It's not very good to see so many "testing" packages
distributed all over. Maybe it's time to think about the
advantages/disadvantages of having only one juju-core/testsupport (or similar)
package.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /