Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1445)

Issue 13242049: Fix cleanupOrphans to actually work

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by sidnei.da.silva
Modified:
10 years, 8 months ago
Reviewers:
mp+183878, fwereade
Visibility:
Public.

Description

Fix cleanupOrphans to actually work The main issue was an inverted check (err != nil instead of err == nil), but actually changed to use Glob() and only look at top-level dirs for removal, instead of recursing through all the files and folders deleting one by one. https://code.launchpad.net/~sidnei/juju-core/fix-cleanup-orphans/+merge/183878 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix cleanupOrphans to actually work #

Total comments: 2

Patch Set 3 : Fix cleanupOrphans to actually work #

Patch Set 4 : Fix cleanupOrphans to actually work #

Patch Set 5 : Fix cleanupOrphans to actually work #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -13 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M worker/uniter/charm/deployer.go View 4 chunks +23 lines, -7 lines 0 comments Download
M worker/uniter/charm/deployer_test.go View 1 2 3 12 chunks +35 lines, -6 lines 0 comments Download
A worker/uniter/charm/export_test.go View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 7
sidnei.da.silva
Please take a look.
10 years, 8 months ago (2013-09-04 13:44:15 UTC) #1
fwereade
Grudging LGTM as is, enthusiastic one if you make the testing backdoors explicit. https://codereview.appspot.com/13242049/diff/1/worker/uniter/charm/deployer_test.go File ...
10 years, 8 months ago (2013-09-04 13:57:53 UTC) #2
sidnei.da.silva
Please take a look.
10 years, 8 months ago (2013-09-04 14:41:49 UTC) #3
sidnei.da.silva
https://codereview.appspot.com/13242049/diff/1/worker/uniter/charm/deployer_test.go File worker/uniter/charm/deployer_test.go (right): https://codereview.appspot.com/13242049/diff/1/worker/uniter/charm/deployer_test.go#newcode4 worker/uniter/charm/deployer_test.go:4: package charm On 2013/09/04 13:57:53, fwereade wrote: > I'm ...
10 years, 8 months ago (2013-09-04 14:42:31 UTC) #4
fwereade
LGTM with one tweak https://codereview.appspot.com/13242049/diff/6001/worker/uniter/charm/deployer_test.go File worker/uniter/charm/deployer_test.go (right): https://codereview.appspot.com/13242049/diff/6001/worker/uniter/charm/deployer_test.go#newcode214 worker/uniter/charm/deployer_test.go:214: c.Assert(updateDirs[0], gc.Equals, current) This is ...
10 years, 8 months ago (2013-09-04 14:46:23 UTC) #5
sidnei.da.silva
Please take a look. https://codereview.appspot.com/13242049/diff/6001/worker/uniter/charm/deployer_test.go File worker/uniter/charm/deployer_test.go (right): https://codereview.appspot.com/13242049/diff/6001/worker/uniter/charm/deployer_test.go#newcode214 worker/uniter/charm/deployer_test.go:214: c.Assert(updateDirs[0], gc.Equals, current) On 2013/09/04 ...
10 years, 8 months ago (2013-09-04 14:56:24 UTC) #6
sidnei.da.silva
10 years, 8 months ago (2013-09-04 15:39:37 UTC) #7
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b