Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: new approach to run tests in ubuntu and debian using snapd deb from the repo #14496
base: master
Are you sure you want to change the base?
tests: new approach to run tests in ubuntu and debian using snapd deb from the repo #14496
Changes from 24 commits
bb15877
a2637fd
63b2c2f
d1f0f31
6d5d458
ab0b03f
3c76431
7d78737
87cbe02
1338735
b7d5efb
d9aa6db
3f2209b
5e50960
b0f4d8d
6cb8cb6
9ddfe30
06f3a15
c589280
73548a7
744c89a
2e32c65
514dbb8
ec96de4
e048240
cb9b585
463424e
5758688
cd751ac
8e5bfcb
d7f37b9
1624ebf
5e1e520
37487c1
c0ccc68
b14c80d
cde70a7
b50e533
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be called
is-snapd-deb-from-repo
since it only works for debs? or is there a missing TODO to make this work on other systems as well?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, if at some point the re-execution is implemented for rpms, then we could make other systems download the rpm as we do with the deb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the name is fine and should not include the word "deb" -- we will soon enable this for RPMs in tests. My only personal preference would be to call it "is-snapd-from-archive" as it reads better than abbreviated repository IMO. No need to change this though :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking if this is really the case. Snapd classic will re-exec into snapd snap that may be built with test keys. Does it really fail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are some scenarios where we don't have snapd snap installed, so it uses the keys from the deb.
I'll add a comment there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this sounds good. If We identify all the cases that don't have snapd snap installed then we can work on fixing them. I assume that the point of the test was not to test that specific behavior and that we can fix them over time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, my idea is to create a following pr to cleanup some scenarios and fix other tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get why there's no need to test this. Is the test failing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a bug in the deb which makes snapd fail to pack snaps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also I don't see any value running those tests with reexec=0 when we use snapd deb from the repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this todo cannot be removed because we will always have a distribution with old snapd.
I think the test needs more nuance to execute the SNAP_REEXEC=1 without other conditions.