diff --git a/.github/workflows/spread.yml b/.github/workflows/spread.yml index 5accbef196..1e7da66ba1 100644 --- a/.github/workflows/spread.yml +++ b/.github/workflows/spread.yml @@ -47,6 +47,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + submodules: true - name: Download snapcraft snap uses: actions/download-artifact@v2 @@ -96,6 +97,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + submodules: true - if: steps.decisions.outputs.RUN == 'true' name: Download snapcraft snap diff --git a/.gitmodules b/.gitmodules index e357675a48..776cc5cd70 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "docs"] path = docs url = https://github.com/CanonicalLtd/snappy-docs.git +[submodule "tests/spread/tools/snapd-testing-tools"] + path = tests/spread/tools/snapd-testing-tools + url = https://github.com/snapcore/snapd-testing-tools.git diff --git a/spread.yaml b/spread.yaml index 5013dba2b3..4b425c3e33 100644 --- a/spread.yaml +++ b/spread.yaml @@ -27,6 +27,7 @@ environment: DEBIAN_PRIORITY: critical TOOLS_DIR: /snapcraft/tests/spread/tools + PATH: $PATH:$TOOLS_DIR/snapd-testing-tools/tools/ # Git environment for commits GIT_AUTHOR_NAME: "Test User" @@ -208,8 +209,9 @@ prepare: | # nicely handle the snap and deb being installed at the same time. apt-get remove --purge --yes lxd lxd-client fi - # Install and setup the lxd snap - snap install lxd + # install and setup the lxd snap - use 'retry' to workaround aa-exec issue + # see https://bugs.launchpad.net/snapd/+bug/1870201 + retry -n 5 --wait 5 sh -c 'snap install lxd' # Add the ubuntu user to the lxd group. adduser ubuntu lxd lxd init --auto diff --git a/tests/spread/tools/snapd-testing-tools b/tests/spread/tools/snapd-testing-tools new file mode 160000 index 0000000000..d5cb68cb95 --- /dev/null +++ b/tests/spread/tools/snapd-testing-tools @@ -0,0 +1 @@ +Subproject commit d5cb68cb9558f60b019bb8304f3e010d83425044