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

tests: clean snaps.sh helper #10343

Merged

Conversation

sergiocazzolato
Copy link
Collaborator

The change includes:
. Start using the tool snaps-state
. Remove includes for snaps.sh
. Cleanup snaps.sh helper
. Update snaps-state too to include repack with target dir

…ps.sh

The change includes:
. Start using the tool snaps-state
. Remove includes for snaps.sh
. Cleanup snaps.sh helper
. Update snaps-state too to include repack with target dir
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Looks fine, just one (nitpicky) question inline

@@ -88,7 +85,7 @@ execute: |
if [ "$NESTED_BUILD_SNAPD_FROM_CURRENT" = "false" ]; then
if os.query is-xenial; then
# build the core snap for this run
repack_snapd_deb_into_core_snap "$PWD"
"$TESTSTOOLS"/snaps-state repack_snapd_deb_into_snap core "$PWD"
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we could remove "$PWD" here as it's the default?

@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2021

Codecov Report

Merging #10343 (5a42034) into master (8170654) will decrease coverage by 2.39%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10343      +/-   ##
==========================================
- Coverage   80.71%   78.31%   -2.40%     
==========================================
  Files         727      882     +155     
  Lines       58158    99308   +41150     
==========================================
+ Hits        46940    77777   +30837     
- Misses       7544    16638    +9094     
- Partials     3674     4893    +1219     
Flag Coverage Δ
unittests 78.31% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
overlord/backend.go
cmd/snap-update-ns/utils.go
osutil/synctree.go
interfaces/builtin/network_setup_observe.go
overlord/unknowntask.go
spdx/parser.go
overlord/snapstate/policy/kernel.go
cmd/snap/cmd_snapshot.go
interfaces/mount/ns.go
overlord/hookstate/ctlcmd/stop.go
... and 1521 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 395495f...5a42034. Read the comment docs.

@sergiocazzolato sergiocazzolato merged commit f7c66ac into snapcore:master Aug 21, 2021
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