Revert move of code from uniter to common #8155

Merged
merged 3 commits into from Nov 30, 2017

Conversation

Projects
None yet
3 participants
Owner

wallyworld commented Nov 30, 2017

Description of change

A previous PR extracted some hook command code from uniter and put it in a common package to share between the operator and uniter. However, it didn't work out because the Context objects used with the commands are different and can't easily be consolidated.

The PR reverts that change and also:

  • renames jujuc/testing to jujuc/jujuctesting
  • deletes some unused code from the uniter

QA steps

bootstrap and deploy and relate some charms

cmd/juju/commands/debughooks.go
@@ -18,7 +18,7 @@ import (
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/cmd/modelcmd"
"github.com/juju/juju/network/ssh"
- unitdebug "github.com/juju/juju/worker/uniter/runner/debug"
+ unitdebug "github.com/juju/juju/worker/common/runner/debug"
@axw

axw Nov 30, 2017

Member

as discussed, please revert this and we can move it if we implement debug-hooks for CAAS charms

worker/common/runner/logger.go
-type hookLogger struct {
+var logger = loggo.GetLogger("juju.worker.common.runner")
+
+// MewHookLogger creates a new hook logger.
@axw

axw Nov 30, 2017

Member

s/Mew/New/

worker/meterstatus/isolated.go
"gopkg.in/tomb.v1"
- "github.com/juju/juju/worker/uniter/runner/context"
+ "github.com/juju/juju/worker/common/runner"
@axw

axw Nov 30, 2017

Member

"runner" is far too generic without the context of uniter in the path. Maybe "charmrunner"?

@wallyworld wallyworld changed the title from Move some shared files and errors etc from worker uniter to worker common to Revert move of code from uniter to common Nov 30, 2017

axw approved these changes Nov 30, 2017

Owner

wallyworld commented Nov 30, 2017

$$merge$$

Contributor

jujubot commented Nov 30, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

Contributor

jujubot commented Nov 30, 2017

Build failed: Tests failed
build url: http://ci.jujucharms.com/job/github-merge-juju/620

Owner

wallyworld commented Nov 30, 2017

$$merge$$

Contributor

jujubot commented Nov 30, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

@jujubot jujubot merged commit c98b8c2 into juju:develop Nov 30, 2017

1 check failed

continuous-integration/jenkins/pr-merge This commit cannot be built
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment