Merge lp:~nuclearbob/utah/deprecate-runscripts into lp:utah

Proposed by Max Brustkern
Status: Merged
Merged at revision: 857
Proposed branch: lp:~nuclearbob/utah/deprecate-runscripts
Merge into: lp:utah
Diff against target: 76 lines (+25/-0)
5 files modified
debian/changelog (+6/-0)
examples/run_install_test.py (+5/-0)
examples/run_test_bamboo_feeder.py (+3/-0)
examples/run_test_cobbler.py (+6/-0)
examples/run_test_vm.py (+5/-0)
To merge this branch: bzr merge lp:~nuclearbob/utah/deprecate-runscripts
Reviewer Review Type Date Requested Status
Javier Collado (community) Approve
Max Brustkern (community) Needs Resubmitting
Andy Doan (community) Approve
Review via email: mp+158118@code.launchpad.net

Description of the change

I'd like to get rid of the other runscripts so we don't keep having to change them. I don't think they're currently in use, but I'd like to do a release with a deprecation warning before actually dropping them.

To post a comment you must log in.
Revision history for this message
Javier Collado (javier.collado) wrote :

I think this is a good idea.

In case someone relies on any of the scripts, it would be nice to have an
example about how to translate the call to a given script to run_utah_tests.py.

Revision history for this message
Andy Doan (doanac) wrote :

I like Javier's idea, not sure how easy that would be to do. Also - most of these jobs are run by a machine, so I'm not sure how much attention human's will pay to this warning?

review: Approve
856. By Max Brustkern

Updated run scripts with individual transition plans

857. By Max Brustkern

Updated changelog

Revision history for this message
Max Brustkern (nuclearbob) wrote :

I added stuff specific to each script and updated the changelog.

review: Needs Resubmitting
Revision history for this message
Javier Collado (javier.collado) wrote :

Looks good to me now. Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-04-04 14:58:12 +0000
3+++ debian/changelog 2013-04-10 15:14:20 +0000
4@@ -1,3 +1,9 @@
5+utah (0.10ubuntu2) quantal; urgency=low
6+
7+ * Deprecated run scripts
8+
9+ -- Max Brustkern <max@canonical.com> Wed, 10 Apr 2013 11:06:41 -0400
10+
11 utah (0.10ubuntu1) UNRELEASED; urgency=low
12
13 * Return error code on unhandled error (LP: #1160857)
14
15=== modified file 'examples/run_install_test.py'
16--- examples/run_install_test.py 2013-04-03 14:25:21 +0000
17+++ examples/run_install_test.py 2013-04-10 15:14:20 +0000
18@@ -107,6 +107,11 @@
19
20
21 if __name__ == '__main__':
22+ logging.warning('This script is deprecated; please use run_utah_tests.py')
23+ logging.warning('The same command line arguments should work there, i.e.:')
24+ argv = list(sys.argv)
25+ argv[0] = 'run_utah_tests.py'
26+ logging.warning(' '.join(argv))
27 try:
28 run_install_test()
29 finally:
30
31=== modified file 'examples/run_test_bamboo_feeder.py'
32--- examples/run_test_bamboo_feeder.py 2013-04-03 14:25:21 +0000
33+++ examples/run_test_bamboo_feeder.py 2013-04-10 15:14:20 +0000
34@@ -107,6 +107,9 @@
35
36
37 if __name__ == '__main__':
38+ logging.warning('This script is thought to be broken')
39+ logging.warning('If it is working, please report it to the UTAH team via '
40+ 'ubuntu-utah-devel@lists.ubuntu.com')
41 try:
42 run_test_bamboo_feeder()
43 finally:
44
45=== modified file 'examples/run_test_cobbler.py'
46--- examples/run_test_cobbler.py 2013-04-03 14:25:21 +0000
47+++ examples/run_test_cobbler.py 2013-04-10 15:14:20 +0000
48@@ -112,6 +112,12 @@
49
50
51 if __name__ == '__main__':
52+ logging.warning('This script is deprecated; please use run_utah_tests.py')
53+ logging.warning('Add the -m physical argument to your existing list, i.e.:')
54+ argv = list(sys.argv)
55+ argv[0] = 'run_utah_tests.py'
56+ argv.extend(['-m', 'physical'])
57+ logging.warning(' '.join(argv))
58 try:
59 run_test_cobbler()
60 finally:
61
62=== modified file 'examples/run_test_vm.py'
63--- examples/run_test_vm.py 2013-04-03 14:25:21 +0000
64+++ examples/run_test_vm.py 2013-04-10 15:14:20 +0000
65@@ -101,6 +101,11 @@
66
67
68 if __name__ == '__main__':
69+ logging.warning('This script is deprecated; please use run_utah_tests.py')
70+ logging.warning('The same command line arguments should work there, i.e.:')
71+ argv = list(sys.argv)
72+ argv[0] = 'run_utah_tests.py'
73+ logging.warning(' '.join(argv))
74 try:
75 run_test_vm()
76 finally:

Subscribers

People subscribed via source and target branches