Merge lp://staging/~liuyq0307/linaro-android-build-tools/support-timeout into lp://staging/linaro-android-build-tools

Proposed by Yongqin Liu
Status: Superseded
Proposed branch: lp://staging/~liuyq0307/linaro-android-build-tools/support-timeout
Merge into: lp://staging/linaro-android-build-tools
Diff against target: 105 lines (+26/-9)
1 file modified
build-scripts/post-build-lava.py (+26/-9)
To merge this branch: bzr merge lp://staging/~liuyq0307/linaro-android-build-tools/support-timeout
Reviewer Review Type Date Requested Status
Milo Casagrande (community) Approve
Paul Sokolovsky Pending
Review via email: mp+109985@code.staging.launchpad.net

This proposal has been superseded by a proposal from 2012-06-18.

Description of the change

Add support for timeout option for each test actions.
And the wiki following has been updated about how to use the timeout support:
https://wiki.linaro.org/Platform/Android/AndroidBuild-LavaIntegration#preview

To post a comment you must log in.
Revision history for this message
Milo Casagrande (milo) wrote :

Hi Yongqin,

thanks for working on this. Overall the merge proposal looks good to me, just a couple of really small comments.

On Fri, Jun 15, 2012 at 10:44 AM, Paul Sokolovsky <email address hidden> wrote:
>
> +    # Set the default timeout for all test,
> +    # if this value it not set, then use the 3600 seconds as the default value
> +    default_timeout = os.environ.get("DEFAULT_TIMEOUT", 3600)

Just a small typo here: s/it not/is not

>     config_json = {"job_name": build_url,
>                    "image_type": 'android',
> -                   "timeout": 18000,
> +                   "timeout": int(default_timeout),
>                    "actions": actions
>                   }

The old timeout here was set to 18000 seconds, now you set a default value of 3600: has it been discussed somewhere to lower the timeout?

Also, even if not introduced by you, can you please fix these two errors from pep8:

post-build-lava.py:44:15: E203 whitespace before ':'
post-build-lava.py:185:80: E501 line too long (100 characters)

Thanks.

review: Needs Information
489. By Yongqin Liu

modify according to the review comment

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

> Hi Yongqin,
>
> thanks for working on this. Overall the merge proposal looks good to me, just
> a couple of really small comments.
>
> On Fri, Jun 15, 2012 at 10:44 AM, Paul Sokolovsky <email address hidden>
> wrote:
> >
> > +    # Set the default timeout for all test,
> > +    # if this value it not set, then use the 3600 seconds as the default
> value
> > +    default_timeout = os.environ.get("DEFAULT_TIMEOUT", 3600)

> Just a small typo here: s/it not/is not
> Also, even if not introduced by you, can you please fix these two errors from
> pep8:
>
> post-build-lava.py:44:15: E203 whitespace before ':'
> post-build-lava.py:185:80: E501 line too long (100 characters)

Thanks, the above typo and this two lines have been updated.

> >     config_json = {"job_name": build_url,
> >                    "image_type": 'android',
> > -                   "timeout": 18000,
> > +                   "timeout": int(default_timeout),
> >                    "actions": actions
> >                   }
>
> The old timeout here was set to 18000 seconds, now you set a default value of
> 3600: has it been discussed somewhere to lower the timeout?
For this, I have asked about it in lava team, the timeout is not used before.
This is the first time that it will be used.
And from the tests we have now, mainly less than 1 hour.
So I set it to 3600.

But it's seems set it to 18000 is more reasonable.
1. keep it as it was before, although not used before
2. only the CTS test need to be specifically set.
   **The CTS test will need more time, about 10H.

Now I changed it to 18000

490. By Yongqin Liu

change the default timeout to 18000 back

Revision history for this message
Milo Casagrande (milo) wrote :

Hello Yongqin,

looks good to me! Thanks for taking care of this!

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

Thanks, and also perhaps need you help me to merge this branch.
I should not have the permission to do that.

Thanks very much.

Yongqin Liu

Revision history for this message
Milo Casagrande (milo) wrote :

Hello Yongqin,

sorry for the delay, I thought you could merge by yourself.

Can you please re-align with trunk? I merged another request, and here we get a couple of conflicts. If you can do it by today, I'll merge everything ASAP.

Thanks.

491. By Yongqin Liu

merge with trunk

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