Merge lp:~mwhudson/ubuntu-test-cases/live-server-testing into lp:ubuntu-test-cases/live-server
Status: | Merged |
---|---|
Approved by: | Joshua Powers |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13 |
Proposed branch: | lp:~mwhudson/ubuntu-test-cases/live-server-testing |
Merge into: | lp:ubuntu-test-cases/live-server |
Diff against target: |
154 lines (+118/-0) 7 files modified
preseeds/reuse-existing-partitions-simple.preseed (+41/-0) runlists/reuse-existing-partitions-simple.run (+4/-0) scripts/reuse-existing-partitions-simple.sh (+24/-0) testsuites/reuse-existing-partitions-simple/test_reuse_existing_partitions_simple/tc_control (+10/-0) testsuites/reuse-existing-partitions-simple/test_reuse_existing_partitions_simple/test.py (+36/-0) testsuites/reuse-existing-partitions-simple/ts_control (+1/-0) testsuites/reuse-existing-partitions-simple/tslist.run (+2/-0) |
To merge this branch: | bzr merge lp:~mwhudson/ubuntu-test-cases/live-server-testing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Subiquity | Pending | ||
Review via email: mp+369982@code.launchpad.net |
Commit message
simple test of reusing existing partition
Description of the change
So this works if I run it by hand locally and so might work in automation too :)
There are a couple of things that need to be cleared up before we start running this for real though:
0) it depends on changes I made to utah yesterday, so utah needs to be updated on venonat.
1) the "script" reuse.sh that constructs the image needs to run as root. I don't know if the scripts are run as root by default or if we need to do something different or if it's just a matter of putting "sudo sh -c" in the right place.
2) the image that it creates will (I think) end up in the workspace and so waste heaps of disk. This could be fixed by agreeing a location in the workspace that run-iso-test.sh in qa-jenkins-jobs should clear out after utah has run.
Hi Michael,
0) Done, I merged your changes, the packages have been rebuilt and I updated utah on venonat.
1) The jobs do not normally run as root, but sudo can be used when needed.
2) The best way to handle this is via the "Workspace Cleanup" Jenkins plugin, which is currently not installed in the platform- qa-jenkins, but we can request it. In the meantime I don't think this is a blocker: venonat has quite a lot of disk space, if we keep an eye on it I think we can manage without the cleanup for the moment. Workspace are re-used in each job run, so the number of images won't grow indefinitely.
In general the test looks good. A couple of ideas/questions:
0) reuse.sh creates an image which is identical every time. We could avoid running commands as root by shipping root.img with the test, or making downloading it from somewhere. The image file looks 10G big, but du(1) reveals the actual disk usage is of just 17MB, and the file is 10MB gzipped.
1) Can we call the test 'reuse- existing- partitions' instead of 'reuse'? This whole thing is already convoluted enough :-)
Paride