snap: use refresh hook to self-test on upgrade

Bug #1757007 reported by Nish Aravamudan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
Triaged
Medium
Unassigned

Bug Description

There are now refresh hooks in snaps, and since we have a well-defined self-test (git-ubuntu.self-test), we can ensure that no user is upgraded to a broken snap by leveraging it in a refresh hook.

Tags: snap
Nish Aravamudan (nacc)
tags: added: snap
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Specifically, what you probably want is the `post-refresh` hook (as of 2.29). Basic informational docs are here:

    https://forum.snapcraft.io/t/supported-snap-hooks/3795

A few tutorials for how to use hooks with Snapcraft can be found here (it links to a second one on the `configure` hook): https://kyrofa.com/posts/snap-install-time-setup-the-install-hook .

Robie Basak (racb)
Changed in usd-importer:
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.