Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
tests: enable regression, upgrade and completion test suites for fedora #3622
Conversation
and others
added some commits
Jun 8, 2017
| @@ -426,6 +426,8 @@ install -m 644 -D data/info %{buildroot}%{_libexecdir}/snapd/info | ||
| # Install bash completion for "snap" | ||
| install -m 644 -D data/completion/snap %{buildroot}%{_datadir}/bash-completion/completions/snap | ||
| +install -m 644 -D data/completion/complete.sh %{buildroot}%{_libexecdir}/snapd | ||
| +install -m 644 -D data/completion/etelpmoc.sh %{buildroot}%{_libexecdir}/snapd |
Conan-Kudo
Jul 26, 2017
Contributor
Why are completion files being installed into %{_libexecdir}/snapd?
sergiocazzolato
Jul 26, 2017
Contributor
Thanks for reviewing
It is where other scripts are looking for to make snap-completion.
Any suggestion about how to improve it?
zyga
Jul 27, 2017
Contributor
@Conan-Kudo Note that those are special files that make snapd implement completion internally. The things you are thinking about about are in the usual location.
| @@ -315,6 +315,16 @@ distro_install_build_snapd(){ | ||
| fi | ||
| } | ||
| +distro_get_package_extention() { |
| @@ -39,7 +40,8 @@ execute: | | ||
| echo Do upgrade | ||
| # allow-downgrades prevents errors when new versions hit the archive, for instance, | ||
| # trying to install 2.11ubuntu1 over 2.11+0.16.04 | ||
| - distro_install_local_package --allow-downgrades "$GOHOME"/snapd*.deb | ||
| + pkg_extention="$(distro_get_package_extention)" |
sergiocazzolato
added some commits
Jul 26, 2017
codecov-io
commented
Aug 1, 2017
Codecov Report
@@ Coverage Diff @@
## master #3622 +/- ##
=========================================
- Coverage 75.21% 75.2% -0.01%
=========================================
Files 384 387 +3
Lines 33538 33452 -86
=========================================
- Hits 25226 25159 -67
+ Misses 6491 6481 -10
+ Partials 1821 1812 -9
Continue to review full report at Codecov.
|
zyga
approved these changes
Aug 4, 2017
LGTM with the comment on classic confinement checks. I think this could be done via snapd's API query.
| @@ -43,3 +43,23 @@ install_generic_consumer() { | ||
| snap install --dangerous generic-consumer/*.snap | ||
| rm -rf generic-consumer | ||
| } | ||
| + | ||
| +is_classic_confinement_supported() { |
zyga
Aug 4, 2017
Contributor
I think it'd be better to ask snapd about it, so that we have to maintain less tables. Also this is likely to change a little (in what it really mans to support it) so this may (hopefully) go away.
morphis
Aug 4, 2017
Contributor
We already ask snapd if strict confinement is supported or not. Asking for classic confinement would be just another option.
| @@ -61,7 +61,7 @@ backends: | ||
| kernel: GRUB 2 | ||
| workers: 4 | ||
| - fedora-25-64: | ||
| - workers: 1 | ||
| + workers: 2 |
morphis
Aug 4, 2017
Contributor
Why do we bump the number of workers to two? @niemeyer requested this to be a single one for the time being. Anything has changed since then?
| @@ -43,3 +43,23 @@ install_generic_consumer() { | ||
| snap install --dangerous generic-consumer/*.snap | ||
| rm -rf generic-consumer | ||
| } | ||
| + | ||
| +is_classic_confinement_supported() { |
zyga
Aug 4, 2017
Contributor
I think it'd be better to ask snapd about it, so that we have to maintain less tables. Also this is likely to change a little (in what it really mans to support it) so this may (hopefully) go away.
morphis
Aug 4, 2017
Contributor
We already ask snapd if strict confinement is supported or not. Asking for classic confinement would be just another option.
|
I'm not a fan of commits that just say "WIP". Can we get some descriptive commit messages for the two "WIP" commits? |
sergiocazzolato commentedJul 26, 2017
Enable 3 test suites for fedora.