Merge lp://staging/~liuyq0307/linaro-android-build-tools/add-monkey-l-a-t into lp://staging/linaro-android-build-tools

Proposed by Yongqin Liu
Status: Superseded
Proposed branch: lp://staging/~liuyq0307/linaro-android-build-tools/add-monkey-l-a-t
Merge into: lp://staging/linaro-android-build-tools
Diff against target: 103 lines (+50/-16)
1 file modified
build-scripts/post-build-lava.py (+50/-16)
To merge this branch: bzr merge lp://staging/~liuyq0307/linaro-android-build-tools/add-monkey-l-a-t
Reviewer Review Type Date Requested Status
Paul Sokolovsky Approve
James Westby (community) Approve
Review via email: mp+76697@code.staging.launchpad.net

This proposal has been superseded by a proposal from 2011-09-26.

Description of the change

modify for adding monkey test to android build
BP:
    https://blueprints.launchpad.net/linaro-android/+spec/linaro-android-run-monkey-in-lava

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Hi,

This looks great, thanks, and there are some good cleanups
here too.

Is the new linaro_android_test_run action available on validation.linaro.org
and able to run both monkey and 0xbench?

If not then we will have to hold off on deploying this until it is.

54 + # Board-specific parameters

Extra space included in the indentation on that line.

122 + submin_results_command = "submit_results"
123 + if image_type == 'android':
124 + submin_results_command = "submit_results_on_host"

Typo in variable name, it should be "submit_results_command"

Thanks,

James

review: Approve
Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

+ image_type = os.environ.get("IMAGE_TYPE")

What's being done here? If it calls for adding another build config variable, it's likely superfluous (unless there're reasons why it's not).

Also, braces placement needs fixing, it for sure worse than was before. Rule of thumb is to just follow style of the existing code (and minimize any whitespace changes).

And can you please look thru associated blueprint's whiteboard, it seems to have typos which make it a bit unclear ("Acceptance: Monkey for as long as it can", "Update the meeting to a weekly")

review: Needs Fixing
333. By Yongqin Liu

modify according review comments:
1. typo of submin_results_command
2. delete of IMAGE_TYPE revelant process
3. fix braces style

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

thanks for review
> Is the new linaro_android_test_run action available on validation.linaro.org
> and able to run both monkey and 0xbench?
yes, linaro_android_test_run is available on validation.linaro.org, and can run both monkey and 0xbench

> If not then we will have to hold off on deploying this until it is.
>
> 54 + # Board-specific parameters
>
> Extra space included in the indentation on that line.
sorry, delete the extra space

> 122 + submin_results_command = "submit_results"
> 123 + if image_type == 'android':
> 124 + submin_results_command = "submit_results_on_host"
>
> Typo in variable name, it should be "submit_results_command"
sorry, I will fixing it.

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

> + image_type = os.environ.get("IMAGE_TYPE")
>
> What's being done here? If it calls for adding another build config variable,
> it's likely superfluous (unless there're reasons why it's not).
sorry, I didn't recognize that this file only be used for android-build.
I will delete the relevant source.

> Also, braces placement needs fixing, it for sure worse than was before. Rule
> of thumb is to just follow style of the existing code (and minimize any
> whitespace changes).
I have modify the braces placement according the policy that minimize any whitespace changes.
BTW, is there any coding style for braces?

> And can you please look thru associated blueprint's whiteboard, it seems to
> have typos which make it a bit unclear ("Acceptance: Monkey for as long as it
> can", "Update the meeting to a weekly")
I have updated the bp, is it ok now.

And is there any environment that I can test this file?
I want to see after the execution of this file, is the result displayed ok.

334. By Yongqin Liu

modify for undefined error

335. By Yongqin Liu

delete parameter result_disk for command "submit_results_on_host"

336. By Yongqin Liu

use the latest url for submit_results_on_host

337. By Yongqin Liu

make android.build a string instead of integer for lava-dashboard display

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

On Mon, 26 Sep 2011 08:07:25 -0000
Yongqin Liu <email address hidden> wrote:

> > + image_type = os.environ.get("IMAGE_TYPE")
> >
> > What's being done here? If it calls for adding another build config
> > variable, it's likely superfluous (unless there're reasons why it's
> > not).
> sorry, I didn't recognize that this file only be used for
> android-build. I will delete the relevant source.

Thanks.

>
> > Also, braces placement needs fixing, it for sure worse than was
> > before. Rule of thumb is to just follow style of the existing code
> > (and minimize any whitespace changes).
> I have modify the braces placement according the policy that minimize
> any whitespace changes. BTW, is there any coding style for braces?

Well, we generally follow PEP8, though some grounded deviation may be
used. By general rule is the same as for C: everyone places braces in
different way, but when you submit patch for some code, you're expected
to follow the style of surrounding code. If you really think that
formatting should be changed, it should be separate commit - just
change formatting, no semantic changes.

> > And can you please look thru associated blueprint's whiteboard, it
> > seems to have typos which make it a bit unclear ("Acceptance:
> > Monkey for as long as it can", "Update the meeting to a weekly")
> I have updated the bp, is it ok now.
>
> And is there any environment that I can test this file?
> I want to see after the execution of this file, is the result
> displayed ok.

Thanks for bringing that up, that's how we'd like to handle such
changes for sure - test them on a sandbox before deploying on
production. I've created one at
https://ec2-75-101-195-88.compute-1.amazonaws.com/

Reviewing changes once again:

97 - "server": "http://validation.linaro.org/lava-server/dashboard",
98 + "server": "http://validation.linaro.org/lava-server/RPC2/",

Are you sure this is right? Why exactly such change is needed?

--
Best Regards,
Paul

Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

thanks for review.

Thanks for bringing that up, that's how we'd like to handle such
> changes for sure - test them on a sandbox before deploying on
> production. I've created one at
> https://ec2-75-101-195-88.compute-1.amazonaws.com/
>
Thanks, but until now there hasn't been one build:(
How can i make a build there?

> Reviewing changes once again:
>
> 97 - "server": "http://validation.linaro.org/lava-server/dashboard",
> 98 + "server": "http://validation.linaro.org/lava-server/RPC2/",
>
> Are you sure this is right? Why exactly such change is needed?
>

yes, this is right. the dashoard one is deprecated.
and in the future we will use the new url, see the hlep of api about
lava-server.
http://validation.linaro.org/lava-server/api/help/

Thanks,
Yongqin Liu

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Thanks for clarification and checking that the sandbox now works. So, please test that it works as expected, and I'll merge it then.

review: Approve

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches