Merge lp:~mvo/snappy/snappy-verify into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~mvo/snappy/snappy-verify |
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
| Diff against target: |
468 lines (+310/-45) 9 files modified
cmd/snappy/cmd_verify.go (+43/-0) helpers/helpers.go (+4/-0) snappy/build.go (+3/-37) snappy/build_test.go (+1/-3) snappy/hashes.go (+85/-0) snappy/hashes_test.go (+65/-0) snappy/snapp.go (+26/-5) snappy/verify.go (+48/-0) snappy/verify_test.go (+35/-0) |
| To merge this branch: | bzr merge lp:~mvo/snappy/snappy-verify |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Leo Arias | 2015-06-11 | Needs Fixing on 2015-08-24 | |
| Federico Gimenez (community) | continuous-integration | Needs Fixing on 2015-08-19 | |
| Snappy Tarmac | continuous-integration | Pending | |
|
Review via email:
|
|||
Description of the Change
Implement "snappy verify" that will ensure that all files are correct on
disk.
- 509. By Michael Vogt on 2015-06-17
-
merged lp:snappy
- 510. By Michael Vogt on 2015-06-17
-
snappy/parts.go: take the easy route and cast to SnapPart in VerifyInstalled
- 511. By Michael Vogt on 2015-06-17
-
snappy/snapp.go: remove RemoteSnapPart.
Verify, SystemImagePart .Verify - 512. By Michael Vogt on 2015-06-17
-
cmd/snappy/
cmd_verify. go: improve help message (thanks Leo!) - 513. By Michael Vogt on 2015-06-17
-
helpers/helpers.go: fix typo in comment (thanks Leo)
| Michael Vogt (mvo) wrote : | # |
| Leo Arias (elopio) wrote : | # |
When I run snappy verify I get this:
Error: panic: interface conversion: snappy.Part is *snappy.
goroutine 16 [running]:
runtime.
/usr/lib/
launchpad.
/home/
main.(*
/home/
github.
/home/
github.
/home/
main.main()
/home/
goroutine 19 [finalizer wait]:
runtime.
/usr/lib/
runtime.
/usr/lib/
runfinq()
/usr/lib/
runtime.goexit()
/usr/lib/
goroutine 20 [syscall]:
os/signal.loop()
/usr/lib/
created by os/signal.init·1
/usr/lib/
goroutine 21 [chan receive]:
launchpad.
/home/
created by launchpad.
/home/
goroutine 17 [syscall]:
runtime.goexit()
/usr/lib/
I don't fully understand the interface conversion error and I could be doing something wrong when setting this up, but in case of doubt, I'll leave a needs fixing.
| Sergio Schvezov (sergiusens) wrote : | # |
On Wed, Jun 24, 2015 at 11:54:14PM -0000, Leo Arias wrote:
> Review: Needs Fixing exploratory tests
>
> When I run snappy verify I get this:
>
> Error: panic: interface conversion: snappy.Part is *snappy.
before converting you need to do something like:
if part, ok := s.(*snappy.
// operate on part
}
>
> goroutine 16 [running]:
> runtime.
> /usr/lib/
> launchpad.
> /home/elopio/
> main.(*
> /home/elopio/
> github.
> /home/elopio/
> github.
> /home/elopio/
> main.main()
> /home/elopio/
>
> goroutine 19 [finalizer wait]:
> runtime.
> /usr/lib/
> runtime.
> /usr/lib/
> runfinq()
> /usr/lib/
> runtime.goexit()
> /usr/lib/
>
> goroutine 20 [syscall]:
> os/signal.loop()
> /usr/lib/
> created by os/signal.init·1
> /usr/lib/
>
> goroutine 21 [chan receive]:
> launchpad.
> /home/elopio/
> created by launchpad.
> /home/elopio/
>
> goroutine 17 [syscall]:
> runtime.goexit()
> /usr/lib/
>
> I don't fully understand the interface conversion error and I could be doing something wrong when setting this up, but in case of doubt, I'll leave a needs fixing.
> --
> https:/
> Your team Snappy Developers is subscribed to branch lp:snappy.
- 514. By Michael Vogt on 2015-06-25
-
fix crash when trying to verify a SystemImageSnap
| Michael Vogt (mvo) wrote : | # |
Thanks Leo and Sergio! Sorry for this issue, I fixed it now and added a proper test.
| Leo Arias (elopio) wrote : | # |
I was trying to add a test for the command, and it fails with:
Error: verify for hello-world failed: file mode mismatch for bin: 020000000775 != 020000000755
The MP with the test is here: https:/
| Federico Gimenez (fgimenez) wrote : | # |
FAILED: Continuous integration, rev:514
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http://
Executed test runs:
Click here to trigger a rebuild:
http://
Unmerged revisions
- 514. By Michael Vogt on 2015-06-25
-
fix crash when trying to verify a SystemImageSnap
- 513. By Michael Vogt on 2015-06-17
-
helpers/helpers.go: fix typo in comment (thanks Leo)
- 512. By Michael Vogt on 2015-06-17
-
cmd/snappy/
cmd_verify. go: improve help message (thanks Leo!) - 511. By Michael Vogt on 2015-06-17
-
snappy/snapp.go: remove RemoteSnapPart.
Verify, SystemImagePart .Verify - 510. By Michael Vogt on 2015-06-17
-
snappy/parts.go: take the easy route and cast to SnapPart in VerifyInstalled
- 509. By Michael Vogt on 2015-06-17
-
merged lp:snappy
- 508. By Michael Vogt on 2015-06-11
-
improve verify output
- 507. By Michael Vogt on 2015-06-11
-
ensure unpack is faithful to the permissiosn in the tar
- 506. By Michael Vogt on 2015-06-11
-
improve error message
- 505. By Michael Vogt on 2015-06-11
-
implement snappy verify


Thanks John and Leo for the review! I addressed the comments now. I will do a followup branch (or some) to address the interface problem, its too big but its hard to change unfortunately.