Merge lp:~stylesen/lava-dispatcher/fix-bug-1224260 into lp:lava-dispatcher

Proposed by Senthil Kumaran S
Status: Merged
Approved by: Senthil Kumaran S
Approved revision: 682
Merged at revision: 682
Proposed branch: lp:~stylesen/lava-dispatcher/fix-bug-1224260
Merge into: lp:lava-dispatcher
Diff against target: 14 lines (+3/-1)
1 file modified
lava_dispatcher/actions/lava_test_shell.py (+3/-1)
To merge this branch: bzr merge lp:~stylesen/lava-dispatcher/fix-bug-1224260
Reviewer Review Type Date Requested Status
Neil Williams Approve
Review via email: mp+185210@code.launchpad.net

Description of the change

Fix bug #1224260 - split_multi_job makes assumptions about the job JSON that are not enforced by the schema.

Always do not assume we have logging_level specified in the job JSON.

To post a comment you must log in.
Revision history for this message
Neil Williams (codehelp) wrote :

This change doesn't cover the second part of the bug which is the presence or lack of tags in the original submission which needs a change in scheduler.

I'll sort out the schema validation for this and #1224033 and to prevent similar bugs in the future.

Let's merge this part because it is still necessary.

review: Approve
Revision history for this message
Senthil Kumaran S (stylesen) wrote :

Hi Neil,

On Thursday 12 September 2013 01:17 PM, Neil Williams wrote:
> This change doesn't cover the second part of the bug which is the presence or lack of tags in the original submission which needs a change in scheduler.
>
> I'll sort out the schema validation for this and #1224033 and to prevent similar bugs in the future.
>
> Let's merge this part because it is still necessary.

I request you to check the following MP for scheduler related changes:

https://code.launchpad.net/~stylesen/lava-scheduler/fix-bug-1224260/+merge/185211

Thank You.
--
Senthil Kumaran
http://www.stylesen.org/
http://www.sasenthilkumaran.com/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lava_dispatcher/actions/lava_test_shell.py'
--- lava_dispatcher/actions/lava_test_shell.py 2013-08-28 14:55:50 +0000
+++ lava_dispatcher/actions/lava_test_shell.py 2013-09-12 07:12:28 +0000
@@ -648,7 +648,9 @@
648 else:648 else:
649 fout.write("LAVA_TEST_BIN='%s/bin'\n" % target.deployment_data['lava_test_dir'])649 fout.write("LAVA_TEST_BIN='%s/bin'\n" % target.deployment_data['lava_test_dir'])
650 fout.write("LAVA_MULTI_NODE_CACHE='%s'\n" % LAVA_MULTI_NODE_CACHE_FILE)650 fout.write("LAVA_MULTI_NODE_CACHE='%s'\n" % LAVA_MULTI_NODE_CACHE_FILE)
651 if self.context.test_data.metadata['logging_level'] == 'DEBUG':651 logging_level = self.context.test_data.metadata.get(\
652 'logging_level', None)
653 if logging_level and logging_level == 'DEBUG':
652 fout.write("LAVA_MULTI_NODE_DEBUG='yes'\n")654 fout.write("LAVA_MULTI_NODE_DEBUG='yes'\n")
653 fout.write(fin.read())655 fout.write(fin.read())
654 os.fchmod(fout.fileno(), XMOD)656 os.fchmod(fout.fileno(), XMOD)

Subscribers

People subscribed via source and target branches