Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
errtracker: report if snapd did re-execute itself #3423
Conversation
| @@ -91,6 +91,13 @@ func snapConfineProfileDigest(suffix string) string { | ||
| return fmt.Sprintf("%x", md5.Sum(profileText)) | ||
| } | ||
| +func detectReExec() string { |
pedronis
Jun 1, 2017
Contributor
not quite sure why the helper? wouldn't just returning true|false out of osutil.GetenvBool("SNAP_DID_REEXEC") be enough and change DidReExec => DidSnapdReExec ?
zyga
Jun 1, 2017
Contributor
The helper is just to match the return type so that it can be used below. I can rename the key in the map if that's what you want
codecov-io
commented
Jun 1, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3423 +/- ##
==========================================
- Coverage 77.53% 77.52% -0.01%
==========================================
Files 371 371
Lines 25544 25549 +5
==========================================
+ Hits 19805 19807 +2
- Misses 3985 3988 +3
Partials 1754 1754
Continue to review full report at Codecov.
|
mvo5
merged commit 01dc6a3
into
snapcore:master
Jun 1, 2017
7 checks passed
artful-amd64
autopkgtest finished (success)
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
xenial-amd64
autopkgtest finished (success)
Details
xenial-i386
autopkgtest finished (success)
Details
xenial-ppc64el
autopkgtest finished (success)
Details
yakkety-amd64
autopkgtest finished (success)
Details
zesty-amd64
autopkgtest finished (success)
Details
zyga
deleted the
zyga:feature/detect-re-exec
branch
Aug 22, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedJun 1, 2017
Re-execution affects which internal tools and which snapd is used.
while the current error report shows us hashes of both distribution
and core snapd we always need to guess which one is being used
by inspecting the version string. This makes it more obvious.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com