[BuildMonitor] add the defensive code to update the img info on OBS desc properly 12/120812/1
authorSungHun Hwang <sh0924.hwang@samsung.com>
Thu, 23 Mar 2017 06:41:17 +0000 (15:41 +0900)
committerSungHun Hwang <sh0924.hwang@samsung.com>
Fri, 24 Mar 2017 08:35:06 +0000 (17:35 +0900)
commit09f0bdac17cee89ed07e8331ac7c2be85e197cd3
treee21472bee9871be072fcdc1c4e889c45270203c1
parentc025104ccaf06a33b7cf9b73c54de989f9930336
[BuildMonitor] add the defensive code to update the img info on OBS desc properly

PROBLEM:
  Occasionally, at the step of 'post-image-creation'
    1. [Tizen:Wearable]
       If the exist image name on the OBS desc and the new image name are same
       then the old one is removed. In this case, BUILD-MONITOR(Post-image) is
       not triggered bcz the total image count is insufficient.

    2. [Tizen:Common]
       When using the OBS API to update the created image information simultaneously
       it does not work properly something like that among 19 images,
       only one image is missing on OBS desc.
       Same as above, the total iamge count is insufficient.

  These problems caused that the status stays 'Imaging' not to turn 'Succeeded'

SOLUTION:
1. add the 'repo' data to check not only the device name but also the image repo
2. add the polling count to retry the routine if failed to update_info

Change-Id: I8478af2a74b67fb3b7bb534bff70a4f6fe025fcb
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
common/buildservice.py
job_imager.py
job_post_image.py