Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 10 commits into from Nov 21, 2016

Conversation

jdstrand
Copy link

@jdstrand 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

Jamie Strandboge added 3 commits November 8, 2016 18:50
…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.
@jdstrand
Copy link
Author

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 update base declaration documentation and policy for on-classic and snap-type interfaces: update base declaration documentation and policy for on-classic and snap-type Nov 15, 2016
}

for _, onClassic := range []bool{true, false} {
release.OnClassic = onClassic
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@mvo5
Copy link
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).

@mvo5 mvo5 merged commit 7bd7380 into snapcore:master Nov 21, 2016
@jdstrand
Copy link
Author

Thanks for the merge! :)

@jdstrand jdstrand deleted the base-declaration-updates branch January 9, 2017 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants