Merge lp:~stevenwilkin/snapweb/add-remove-snaps-via-api into lp:~snappy-dev/snapweb/trunk
| Status: | Merged |
|---|---|
| Approved by: | Federico Gimenez on 2016-04-22 |
| Approved revision: | 180 |
| Merged at revision: | 178 |
| Proposed branch: | lp:~stevenwilkin/snapweb/add-remove-snaps-via-api |
| Merge into: | lp:~snappy-dev/snapweb/trunk |
| Diff against target: |
823 lines (+302/-310) 10 files modified
snappy/common_test.go (+8/-0) snappy/converge.go (+23/-56) snappy/converge_test.go (+11/-11) snappy/handlers.go (+3/-10) snappy/handlers_test.go (+0/-2) snappy/snapd_client.go (+2/-0) statustracker/statustracker.go (+134/-0) statustracker/statustracker_test.go (+121/-0) webprogress/meter.go (+0/-159) webprogress/progress.go (+0/-72) |
| To merge this branch: | bzr merge lp:~stevenwilkin/snapweb/add-remove-snaps-via-api |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Albisetti (community) | 2016-03-08 | Approve on 2016-04-20 | |
|
Review via email:
|
|||
Commit Message
Add and remove snaps via the snapd API
Description of the Change
Add and remove snaps via the snapd API.
Includes a workaround to keep track of which snaps are being added/removed which will be excised when progress of background operations can be communicated via the API.
| Snappy Tarmac (snappydevtarmac) wrote : | # |
| Steven Wilkin (stevenwilkin) wrote : | # |
retest this please
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update golang.org/x/crypto failed; trying to fetch newer version
golang.org/x/crypto now at 60052bd85f2d912
update github.
github.
update gopkg.in/check.v1 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/yaml.v2 now at 49c95bdc2184325
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
Building
Running tests from /tmp/tmp.
=== RUN Test
OK: 4 passed
--- PASS: Test (0.01s)
PASS
coverage: 60.0% of statements
ok launchpad.
? launchpad.
=== RUN Test
WARNING: cannot create /tmp/check-
OK: 17 passed
--- PASS: Test (0.01s)
PASS
coverage: 46.8% of statements
ok launchpad.
=== RUN Test
-------
FAIL: statustracker_
statustracker_
c.Assert(
... obtained string = "installing"
... expected string = "uninstalled"
OOPS: 7 passed, 1 FAILED
--- FAIL: Test (0.51s)
FAIL
coverage: 100.0% of statements
FAIL launchpad.
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update gopkg.in/check.v1 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5
update github.
github.
update golang.org/x/crypto failed; trying to fetch newer version
golang.org/x/crypto now at 60052bd85f2d912
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/yaml.v2 now at 49c95bdc2184325
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
Building
Running tests from /tmp/tmp.
=== RUN Test
OK: 4 passed
--- PASS: Test (0.01s)
PASS
coverage: 60.0% of statements
ok launchpad.
? launchpad.
=== RUN Test
WARNING: cannot create /tmp/check-
OK: 17 passed
--- PASS: Test (0.01s)
PASS
coverage: 46.8% of statements
ok launchpad.
=== RUN Test
-------
FAIL: statustracker_
statustracker_
c.Assert(
... obtained string = "installing"
... expected string = "uninstalled"
OOPS: 7 passed, 1 FAILED
--- FAIL: Test (0.51s)
FAIL
coverage: 100.0% of statements
FAIL launchpad.
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update github.
github.
update github.
update github.
update github.
update github.
update github.
update github.
update gopkg.in/check.v1 failed; trying to fetch newer version
update golang.org/x/crypto failed; trying to fetch newer version
update github.
update github.
update github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
1 repositories updated; 12 failed
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks
godeps: cannot update "/tmp/tmp.
error: unable to create file interfaces/
error: unable to create file interfaces/
error: unable to create file interfaces/
error: unable to create file interfaces/
error: unable to create file interfaces/
error: unable to create file interfaces/
error: unable to create file interfaces/
error: unable to create file interfaces/
error: unable to create file interfaces/
error: unable to create file interfaces/core.go (No space left on device)
error: unable to create file interfaces/
fatal: cannot create directory at 'interfaces/dbus': No space left on device
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update github.
github.
update github.
update github.
update github.
update github.
update golang.org/x/crypto failed; trying to fetch newer version
update gopkg.in/check.v1 failed; trying to fetch newer version
update github.
update github.
update github.
update github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
update github.
1 repositories updated; 12 failed
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks
godeps: cannot update "/tmp/tmp.
error: unable to create file integration-
fatal: cannot create directory at 'integration-
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update golang.org/x/crypto failed; trying to fetch newer version
golang.org/x/crypto now at 60052bd85f2d912
update github.
github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/yaml.v2 now at 49c95bdc2184325
update github.
github.
update github.
update github.
update github.
update github.
update github.
update gopkg.in/check.v1 failed; trying to fetch newer version
update github.
update github.
update github.
4 repositories updated; 9 failed
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks
godeps: cannot update "/tmp/tmp.
/tmp/tmp.
godeps: cannot update "/tmp/tmp.
/tmp/tmp.
godeps: cannot update "/tmp/tmp.
error: could not lock config file /tmp/tmp.
error: could not lock config file /tmp/tmp.
error: could not lock config file /tmp/tmp.
fatal: Unable to create temporary file '/tmp/tmp.
godeps: cannot update "/tmp/tmp.
error: could not lock config file /tmp/tmp.
error: could not lock config file /tmp/tmp.
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update gopkg.in/check.v1 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
update github.
github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/yaml.v2 now at 49c95bdc2184325
update github.
update github.
update github.
update github.
update golang.org/x/crypto failed; trying to fetch newer version
7 repositories updated; 6 failed
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks
godeps: cannot update "/tmp/tmp.
error: unable to create temporary file: No space left on device
fatal: failed to write object
fatal: unpack-objects failed
godeps: cannot update "/tmp/tmp.
error: unable to create directory for /tmp/tmp.
fatal: Cannot update the ref 'HEAD'.
Unexpected end of command stream
godeps: cannot update "/tmp/tmp.
error: Unable to open /tmp/tmp.
fatal: Unable to create '/tmp/tmp.
Unexpected end of command stream
godeps: cannot update "/tmp/tmp.
error: Unable to append to /tmp/tmp.JIqQJ...
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
update gopkg.in/check.v1 failed; trying to fetch newer version
update github.
update github.
update github.
update golang.org/x/crypto failed; trying to fetch newer version
update github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
5 repositories updated; 8 failed
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks
godeps: cannot update "/tmp/tmp.
error: unable to create file gen-coverage.sh (No space left on device)
error: unable to create file get-deps.sh (No space left on device)
fatal: cannot create directory at 'i18n': No space left on device
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
godeps: cannot update "/tmp/tmp.
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update github.
github.
update gopkg.in/check.v1 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update golang.org/x/crypto failed; trying to fetch newer version
golang.org/x/crypto now at 60052bd85f2d912
update github.
github.
update github.
update github.
github.
github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/yaml.v2 now at 49c95bdc2184325
update github.
github.
update github.
github.
Building
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks
github.
github.
github.
github.
github.
github.
github.
golang.
golang.
golang.
golang.
golang.
github.
github.
launchpad.
github.
gopkg.in/yaml.v2
github.
github.
github.
github.
github.
github.
github.
github.
github.
github.
github.
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The `tree_dir` option for the target branch is not a lightweight checkout. Please ask a project administrator to resolve the issue, and try again.
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
sed: -e expression #1, char 52: unknown option to `s'
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update github.
github.
update github.
github.
update github.
github.
update golang.org/x/crypto failed; trying to fetch newer version
golang.org/x/crypto now at 60052bd85f2d912
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/yaml.v2 now at 49c95bdc2184325
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update gopkg.in/check.v1 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5
update github.
github.
update github.
github.
Building
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d -p /mnt/tarmac/tmp)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks
github.
github.
github.
github.
github.
github.
github.
# github.
Assembler messages:
Fatal error: can't create $WORK/github.
golang.
go build golang.
golang.
go build golang.
golang.
go build golang.
gopkg.in/yaml.v2
go build gopkg....
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update github.
github.
update golang.org/x/crypto failed; trying to fetch newer version
golang.org/x/crypto now at 60052bd85f2d912
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/yaml.v2 now at 49c95bdc2184325
update gopkg.in/check.v1 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5
update github.
github.
update github.
github.
update github.
github.
update github.
github.
Building
Running tests from /mnt/tarmac/
=== RUN Test
OK: 4 passed
--- PASS: Test (0.00s)
PASS
coverage: 60.0% of statements
ok launchpad.
? launchpad.
=== RUN Test
WARNING: cannot create /mnt/tarmac/
OK: 17 passed
--- PASS: Test (0.02s)
PASS
coverage: 46.8% of statements
ok launchpad.
=== RUN Test
OK: 8 passed
--- PASS: Test (0.41s)
PASS
coverage: 100.0% of statements
ok launchpad.
Running vet
Running lint
Obtaining npm dependencies
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d -p /mnt/tarmac/tmp); export TMPDIR=
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks
github.
github.
github.


The attempt to merge lp:~stevenwilkin/webdm/add-remove-snaps-via-api into lp:webdm failed. Below is the output from the failed tests.
Checking formatting com/davecheney/ mdns failed; trying to fetch newer version com/davecheney/ mdns now at de174d86a3d3e87 bfad9cb66cedd04 33380b67b0 com/mvo5/ uboot-go failed; trying to fetch newer version com/mvo5/ uboot-go now at 69978a3e4b05cca 9d7cfee489b3453 dfed45e72c com/gosexy/ gettext failed; trying to fetch newer version com/gosexy/ gettext now at 98b7b91596d20b9 6909e6b60d57411 547dd9959c com/ubuntu- core/snappy failed; trying to fetch newer version com/ubuntu- core/snappy now at 5bcb20229bb884b 85144eab0fe5db7 aa05a27ebf 93457e8811b0cf2 6b773de469 bcc6bd5a76287eb 75ea96c673 com/davecheney/ gmx failed; trying to fetch newer version com/davecheney/ gmx now at d765420e7fbacce cb2a38cf2a02701 fe3e0888a3 com/gorilla/ context failed; trying to fetch newer version com/gorilla/ context now at 50c25fb3b2b3b3c c724e9b6ac75fb4 4b3bccd0da com/gorilla/ mux failed; trying to fetch newer version com/gorilla/ mux now at e444e69cbd2e2e3 e0749a2f3c717ce c491552bbf com/miekg/ dns failed; trying to fetch newer version com/miekg/ dns now at 5a357a6fc5e8526 8b929350aa6423e 2d56dcc4ff com/mvo5/ goconfigparser failed; trying to fetch newer version com/mvo5/ goconfigparser now at 26426272dda20cc 76aa1fa44286dc7 43d2972fe8 6fb6c4e0d370a05 f24a0bf213 com/cheggaaa/ pb failed; trying to fetch newer version com/cheggaaa/ pb now at e8c7cc515bfde3e 267957a3b110080 ceed51354e
Installing godeps
Install golint
Obtaining dependencies
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update golang.org/x/crypto failed; trying to fetch newer version
golang.org/x/crypto now at 60052bd85f2d912
update gopkg.in/check.v1 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update github.
github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/yaml.v2 now at 49c95bdc2184325
update github.
github.
Building
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly src/launchpad. net/webdm src/launchpad. net/webdm/ src/launchpad. net/webdm
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
./run-checks com/davecheney/ gmx com/miekg/ dns com/gorilla/ context com/gorilla/ mux com/ubuntu- core/snappy/ dirs com/ubuntu- core/snappy/ logger com/ubuntu- core/snappy/ helpers com/davecheney/ mdns net/webdm/ avahi org/x/crypto/ cast5 org/x/crypto/ openpgp/ elgamal org/x/crypto/ openpgp/ errors org/x/crypto/ openpgp/ s2k org/x/crypto/ openpgp/ packet com/ubuntu- core/snappy/ asserts com/ubuntu- core/snappy/ snap com/ubuntu- core/snappy/ arch com/ubuntu- core/snappy/ systemd com/ubuntu- core/snappy/ client com/ubuntu- core/snappy/ coreconfig com/gosexy/ gettext com/ubuntu- core/snappy/ oauth com/mvo5/ goconfigparser com/mvo5/ uboot-go/ uenv com/ubuntu- core/snappy/ partition com/ubuntu- core/snap. ..
github.
github.
github.
github.
github.
github.
github.
github.
launchpad.
golang.
golang.
golang.
golang.
gopkg.in/yaml.v2
golang.
github.
github.
github.
github.
github.
github.
github.
github.
github.
github.
github.
github.