ACK/cmnt: [kteam-tools][PATCH] wfl/bug.py: change the way to detect when to use esm ppa

Po-Hsu Lin (Sam) po-hsu.lin at canonical.com
Tue Sep 19 07:55:47 UTC 2017


On Fri, Sep 15, 2017 at 8:16 PM, Stefan Bader
<stefan.bader at canonical.com> wrote:
> On 15.09.2017 12:23, Po-Hsu Lin (Sam) wrote:
>> On Fri, Sep 15, 2017 at 6:15 PM, Stefan Bader
>> <stefan.bader at canonical.com> wrote:
>>> On 15.09.2017 11:37, Po-Hsu Lin wrote:
>>>> Both Precise and Trusty HWE kernel are running on series Precise.
>>>> Use this as a better criteria, since the old if statement does not
>>>> work for Precise kernel, there is no package called precise.
>>>>
>>>> Signed-off-by: Po-Hsu Lin <po-hsu.lin at canonical.com>
>>> Acked-by: Stefan Bader <stefan.bader at canonical.com>
>>>
>>>> ---
>>>
>>> It sounds sensible. Personally it would help me to have a quick explanation
>>> about how this breaks things.
>>
>> For T-hwe, the old method is good as the package name is
>> 'linux-lts-trusty', but for Precise, the package name is 'linux'.
>> So I guess it's a typo for s.pkg_name in ['precise'] here, which
>> should be s.series in ['precise']
>>
>> And this can be trimmed down to just check the series. As they both
>> run on Precise.
>
> Sorry I was not very clear here. I understand the fix within the range that the
> patch shows. What I am not understanding because I did not yet look more deeply
> into all of the connections is what the high level effect would be. Its wfl, so
> I assume something that shankbot does. Though I believe the parts which move
> status after upload and to ask for copies were ok. So maybe handling some of the
> testing states? All?
>
> So just to help me (or any other person that looks at a patch but maybe is not
> to deep into the background story) I think it help to know what was the reason
> to start looking for a fix in the first place.
>
> -Stefan
Discussed with Stefan on the IRC, but just in case someone else is
curious about it:

The reason why we need this is because we have updated the Precise ESM
kernel in the last SRU cycle due to the embargoed CVE. And this bug is
preventing our SUTs in Precise test pool to get the correct kernel to
test from the ppa. This patch is expected to fix this issue.

Thanks!
Sam

>>
>>>
>>> Thanks,
>>> Stefan
>>>
>>>>  stable/wfl/bug.py | 4 ++--
>>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/stable/wfl/bug.py b/stable/wfl/bug.py
>>>> index 632cbc05..f897a139 100644
>>>> --- a/stable/wfl/bug.py
>>>> +++ b/stable/wfl/bug.py
>>>> @@ -847,12 +847,12 @@ class WorkflowBug():
>>>>
>>>>          if ppa:
>>>>              msg['pocket'] = 'ppa'
>>>> -            if s.pkg_name in ['linux-lts-trusty'] or s.pkg_name in ['precise']:
>>>> +            if s.series in ['precise']:
>>>>                  msg['ppa'] = 'ppa:canonical-kernel-esm/ppa'
>>>>              else:
>>>>                  msg['ppa'] = 'ppa:canonical-kernel-team/ppa'
>>>>              msg['key']    = 'kernel.published.ppa.%s' % s.series
>>>> -        elif s.pkg_name in ['linux-lts-trusty'] or s.pkg_name in ['precise']:
>>>> +        elif s.series in ['precise']:
>>>>              msg['pocket'] = 'ppa'
>>>>              msg['ppa']    = 'ppa:canonical-kernel-esm/proposed'
>>>>              msg['key']    = 'kernel.published.ppa.%s' % s.series
>>>>
>>>
>>>
>>>
>>> --
>>> kernel-team mailing list
>>> kernel-team at lists.ubuntu.com
>>> https://lists.ubuntu.com/mailman/listinfo/kernel-team
>>>
>
>




More information about the kernel-team mailing list