Run the tests in a xenial LXC. #202

Merged
merged 1 commit into from Jan 26, 2016

Conversation

Projects
None yet
3 participants
Member

elopio commented Jan 6, 2016

Fixes LP: #1532213

@elopio elopio changed the title from Run the tests in a xenail LXC. to Run the tests in a xenial LXC. Jan 6, 2016

Member

elopio commented Jan 22, 2016

The examples tests are failing because of https://bugs.launchpad.net/ubuntu/+source/make-dfsg/+bug/1536727.
Our idea has been always to run them in Jenkins because there we can access the daily snappy installed on a cloud instance and run also the internal and external commands. The job for that is ready, but pending a Jenkins redeploy. In the meantime if needed, I will be running the example suite locally.

- sudo apt-get update -qq
- - sudo apt-get install -qq build-essential squashfs-tools dpkg-dev plainbox pyflakes python3-apt python3-docopt python3-coverage python3-fixtures python3-jsonschema python3-mccabe python3-pep8 python3-requests python3-testscenarios python3-testtools python3-yaml python3-lxml
+ - sudo apt-get -o Dpkg::Options::="--force-confnew" -y dist-upgrade || true
@elopio

elopio Jan 22, 2016

Member

indeed. Most of the ugliness comes from travis preinstalling a lot of stuff in the trusty vms. The problem now is with postgresql, but could happen with many of the other things if they fail to upgrade or start. We need none of them, so it's generally safe to ignore the errors. And if there's an error that affects us, the test will fail below.

Member

kyrofa commented Jan 22, 2016

Looks good to me.

Member

elopio commented Jan 25, 2016

@sergiusens waiting for you +0.02 here.

@@ -1,6 +1,6 @@
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
-# Copyright © 2015 Canonical Ltd
+# Copyright (C) 2015, 2016 Canonical Ltd
@sergiusens

sergiusens Jan 26, 2016

Collaborator

Are you afraid of utf-8? 😄

@elopio

elopio Jan 26, 2016

Member

of course :)

+ - sudo apt-get install -qq lxd lxcfs || true
+before_script:
+ - sudo lxd-images import ubuntu xenial --stream daily --alias ubuntu
+ - sudo lxc launch ubuntu xenial -c security.privileged=true
@sergiusens

sergiusens Jan 26, 2016

Collaborator

aha! privileged

@elopio

elopio Jan 26, 2016

Member

yup, but it didn't make any difference in the end. I was trying to use it to get rid of the chmod 777.
I still want to get rid of it, but I prefer to keep trying in a different PR.

Collaborator

sergiusens commented Jan 26, 2016

👍

sergiusens added a commit that referenced this pull request Jan 26, 2016

Merge pull request #202 from elopio/lxd
Run the tests in a xenial LXC.

@sergiusens sergiusens merged commit 4e8829d into snapcore:master Jan 26, 2016

1 of 2 checks passed

coverage/coveralls Coverage decreased (-0.0%) to 90.522%
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@elopio elopio deleted the elopio:lxd branch Jan 26, 2016

Member

elopio commented Jan 26, 2016

I'm so very happy that it finally landed. 🍻

Member

kyrofa commented Jan 26, 2016

Hey! Congratulations @elopio!

smoser pushed a commit to smoser/snapcraft that referenced this pull request Sep 14, 2016

Merge pull request #202 from brendandixon/feature/self-update
This commit separates the provisioning and guest agent processing, plus moves distribution specific code into osutil.

kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017

Merge pull request #202 from elopio/lxd
Run the tests in a xenial LXC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment