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

o/snapstate: respect validation sets when refreshing and installing components with snaps #14783

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

andrewphelpsj
Copy link
Member

This change makes it so that we respect validation sets when installing/refreshing components alongside snaps.

Note that the store doesn't yet fully support introspecting the validation sets that are sent during a refresh, so they cannot yet change which component revisions are actually returned with the actions. We double check the actions that are returned from the store to ensure that we always follow the correct constraints.

Based on #14769 for now.

@github-actions github-actions bot added the Needs Documentation -auto- Label automatically added which indicates the change needs documentation label Dec 2, 2024
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 75.17483% with 71 lines in your changes missing coverage. Please review.

Project coverage is 79.01%. Comparing base (96ea7b0) to head (905260a).
Report is 124 commits behind head on master.

Files with missing lines Patch % Lines
overlord/snapstate/target.go 76.43% 31 Missing and 10 partials ⚠️
overlord/snapstate/snapstate.go 65.38% 6 Missing and 3 partials ⚠️
overlord/snapstate/storehelpers.go 79.41% 3 Missing and 4 partials ⚠️
overlord/snapstate/snapmgr.go 50.00% 4 Missing and 2 partials ⚠️
overlord/snapstate/component.go 73.68% 3 Missing and 2 partials ⚠️
overlord/snapstate/handlers.go 62.50% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #14783      +/-   ##
==========================================
+ Coverage   78.95%   79.01%   +0.06%     
==========================================
  Files        1084     1087       +3     
  Lines      146638   148025    +1387     
==========================================
+ Hits       115773   116965    +1192     
- Misses      23667    23807     +140     
- Partials     7198     7253      +55     
Flag Coverage Δ
unittests 79.01% <75.17%> (+0.06%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Documentation -auto- Label automatically added which indicates the change needs documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant