interfaces: update base declaration documentation and policy for on-classic and snap-type #2269

Merged
merged 10 commits into from Nov 21, 2016

Conversation

Projects
None yet
3 participants
Contributor

jdstrand commented Nov 8, 2016

  • Finalize the documentation for various patterns of base declaration entries.
  • Update bluez, fwupd, location-control, location-observe and udisks for previously documented manually-connected 'type: app' slots
  • Update modem-manager and network-manager for privileged classic implicit and privileged app slot pattern
  • Update pulseaudio for privileged classic implicit and privileged app slot pattern with unprivileged plugs
  • update testsuite for above
  • add tests for interfaces that deny-connection when not on-classic

jdstrand added some commits Nov 8, 2016

update base declaration documentation and policy for on-classic and s…
…nap-type

Finalize the documentation for various patterns of base declaration entries.

Update bluez, fwupd, location-control, location-observe and udisks for
previously documented manually-connected 'type: app' slots

Update modem-manager and network-manager for privileged classic implicit and
privileged app slot pattern.

Update pulseaudio for privileged classic implicit and privileged app slot
pattern with unprivileged plugs.
Contributor

jdstrand commented Nov 8, 2016

I'm not sure why this failed since it builds fine locally:

...
dh_auto_build: go generate -v github.com/snapcore/snapd/arch github.com/snapcore/snapd/asserts github.com/snapcore/snapd/asserts/assertstest github.com/snapcore/snapd/asserts/signtool github.com/snapcore/snapd/asserts/snapasserts github.com/snapcore/snapd/asserts/sysdb github.com/snapcore/snapd/asserts/systestkeys github.com/snapcore/snapd/boot github.com/snapcore/snapd/boot/boottest github.com/snapcore/snapd/client github.com/snapcore/snapd/cmd github.com/snapcore/snapd/cmd/snap github.com/snapcore/snapd/cmd/snap-exec github.com/snapcore/snapd/cmd/snapctl github.com/snapcore/snapd/cmd/snapd github.com/snapcore/snapd/daemon github.com/snapcore/snapd/dirs github.com/snapcore/snapd/i18n github.com/snapcore/snapd/i18n/xgettext-go github.com/snapcore/snapd/image github.com/snapcore/snapd/interfaces github.com/snapcore/snapd/interfaces/apparmor github.com/snapcore/snapd/interfaces/backends github.com/snapcore/snapd/interfaces/backendtest github.com/snapcore/snapd/interfaces/builtin github.com/snapcore/snapd/interfaces/dbus github.com/snapcore/snapd/interfaces/kmod github.com/snapcore/snapd/interfaces/mount github.com/snapcore/snapd/interfaces/policy github.com/snapcore/snapd/interfaces/seccomp github.com/snapcore/snapd/interfaces/systemd github.com/snapcore/snapd/interfaces/udev github.com/snapcore/snapd/logger github.com/snapcore/snapd/notifications github.com/snapcore/snapd/osutil github.com/snapcore/snapd/overlord github.com/snapcore/snapd/overlord/assertstate github.com/snapcore/snapd/overlord/auth github.com/snapcore/snapd/overlord/configstate github.com/snapcore/snapd/overlord/devicestate github.com/snapcore/snapd/overlord/hookstate github.com/snapcore/snapd/overlord/hookstate/ctlcmd github.com/snapcore/snapd/overlord/hookstate/hooktest github.com/snapcore/snapd/overlord/ifacestate github.com/snapcore/snapd/overlord/patch github.com/snapcore/snapd/overlord/snapstate github.com/snapcore/snapd/overlord/snapstate/backend github.com/snapcore/snapd/overlord/state github.com/snapcore/snapd/partition github.com/snapcore/snapd/progress github.com/snapcore/snapd/provisioning github.com/snapcore/snapd/release github.com/snapcore/snapd/snap github.com/snapcore/snapd/snap/snapdir github.com/snapcore/snapd/snap/snapenv github.com/snapcore/snapd/snap/snaptest github.com/snapcore/snapd/snap/squashfs github.com/snapcore/snapd/store github.com/snapcore/snapd/strutil github.com/snapcore/snapd/systemd github.com/snapcore/snapd/testutil github.com/snapcore/snapd/timeout github.com/snapcore/snapd/wrappers returned exit code 1
debian/rules:53: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/tmp/autopkgtest.Jbif8Y/build.AuY/snapd'
debian/rules:50: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
blame: https://github.com/snapcore/snapd.git#refs/pull/2269/head
badpkg: rules build failed with exit code 2
autopkgtest [19:53:56]: ERROR: erroneous package: rules build failed with exit code 2
Exit request sent.

@zyga zyga changed the title from update base declaration documentation and policy for on-classic and snap-type to interfaces: update base declaration documentation and policy for on-classic and snap-type Nov 15, 2016

zyga and others added some commits Nov 16, 2016

+ }
+
+ for _, onClassic := range []bool{true, false} {
+ release.OnClassic = onClassic
@mvo5

mvo5 Nov 17, 2016

Collaborator

(nitpick) You probably want to save/defer restore the original release.OnClassic value at the beginning of this test.

Collaborator

mvo5 commented Nov 17, 2016

Thanks, looks fine, one tiny comment about the test. Ignore the autopkgtest failure for now please, we are working towards fixing the flaky test(s) but its not fully done yet (master is better and has some useful debug though).

jdstrand added some commits Nov 17, 2016

@mvo5 mvo5 merged commit 7bd7380 into snapcore:master Nov 21, 2016

1 of 5 checks passed

xenial-amd64 autopkgtest finished (failure)
Details
xenial-i386 autopkgtest finished (failure)
Details
yakkety-amd64 autopkgtest finished (failure)
Details
zesty-amd64 autopkgtest finished (failure)
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Contributor

jdstrand commented Nov 21, 2016

Thanks for the merge! :)

@jdstrand jdstrand deleted the jdstrand:base-declaration-updates branch Jan 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment