[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 3/5] automation: Add the expect script with test case for FVP


  • To: Michal Orzel <michal.orzel@xxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Fri, 8 Dec 2023 09:56:30 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HIQ6AVcEwHFVid0mEKgi2jeR1mP+K9tXRGAbuuK8amw=; b=irurMWgLTdRtPpwOdkTgyhU06LadjJqONkbn4gKapwmQD1uInII4yrsO96X06FuomG8ZmmslY1+vEufNx4nUwZRMlBQZYg1nGmW9INYb1HFDefLWsbnbKce02utJww/pNuxnW9qHOMD6ErDhJdZhko2SAbjgh9JY2u/1xGy+iVYj7fvMBupRWRUQ6o/Ff8RRofLKRCh9oFyZhR8in5eaTS/7npsxTyNhciqclyixa3n+3sEjHPG0hKaUq8mJ+LFwqFgPciqRK+GpFm90KQyjig+ixcFv4cqLjIo/gSzdsTvbkp/FKCckYub+rAGgT+DlDC9PATjN7cIOG+ha2Foyuw==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HIQ6AVcEwHFVid0mEKgi2jeR1mP+K9tXRGAbuuK8amw=; b=ByHGyEsf7KY7cuKtWvBCPMYdn9cEBXbv0qfPd8estTAuWtmsvxUA7QlaFXjK9EfxpGtiu7SQ8mERjncmLgwRV5Vj5M6PqQA4ZAYwaH/jZczxX9+MdfZ3CX4NU5bkIE7q4sFR4XLZEi84VSj1tC6jQSDSAWhleqIOYdNYQyxQqf6eCHhh9eJxh83AVij2Hg4QC+iJ/l/40apUVuTEf7+LVUaB76GgqfLh+ywxJmmkfWg7lGScF61AVWGEA5AP2IvmQ+N4yy7PEB18iVTDoch9dOkiiZp1S6boyz3jFwAhUgvfMPUGTeAfwCzVunDSc2oX2eXC7h9jIRhKjti220K/6w==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=SMWYkGD7iC8W6MMhaH93mFggg4icm5+8RGuiMBk0PFeSwMRHhQ0zNy1JjFzfL3ewslYHJVAh0LdTxscnI/38Gl2cO6uTugyVjkOZv7sTfoTZVWpTfzFRgy1RIROrhN1siuUI4+2lVC1MwtjBtKugddpn+t4xMfsyYzH5h2VLNkNaWyq/GwgyexyahewauKsXheJrIEi5aPL8A+EUhgELUkd9vu4/QaMPNBypHdrx8Aa0p0tSfM/2SwyH+76WKuHXxRhi5MytPJaKWo3Ydib5WscFtAc+vuonMBrPlW619Wb8KTh0WSJS9487HJm+n+4vWTThs6IML8AGREemz3buPw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RezEQK0jlo6828WeomUTgseK/zKPr7s4737GzloUPiKLRdXQAAxjKUOUZrPf43AADw843YauEh2Rn0srfhydcU5M/+tOq3f0Ck1+RGt4AU3y2Ynv0C9SWWG+DN2pi5rwirolKlQrQ06ZCs3VJVohzxyZcsNMMQ/vHat49k1Z7d+Wxlrwgbh/Lay6CowHkCZOjbvTVl3B8EiYlcTaj9WSv7kLBRw4saAdE8ExMV6KhQLTmAHLXUVyAVaM39gYX7JKbW+QMw8pSRFb4biSx77dfnKBYkJI8i8lbHwEcwHkA7j0Q2H35GytUbpamxCMQBANAbE5rL5lGXj5PnQk6TYoMw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>
  • Delivery-date: Fri, 08 Dec 2023 09:56:54 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHaKZoAVIHO2rCYDECWUL8sUR2sfLCfFe6AgAACFwCAAAHkAIAAAsIAgAAIGgCAAAGZgA==
  • Thread-topic: [PATCH v2 3/5] automation: Add the expect script with test case for FVP

Hi Michal,

> On Dec 8, 2023, at 17:50, Michal Orzel <michal.orzel@xxxxxxx> wrote:
> On 08/12/2023 10:21, Henry Wang wrote:
>> 
>> 
>> Hi Michal,
>> 
>>> On Dec 8, 2023, at 17:11, Michal Orzel <michal.orzel@xxxxxxx> wrote:
>>> On 08/12/2023 10:05, Henry Wang wrote:
>>>> 
>>>> Hi Michal,
>>>> 
>>>>> On Dec 8, 2023, at 16:57, Michal Orzel <michal.orzel@xxxxxxx> wrote:
>>>>> 
>>>>> Hi Henry,
>>>>> 
>>>>> On 08/12/2023 06:46, Henry Wang wrote:
>>>>>> diff --git a/automation/scripts/expect/fvp-base-smoke-dom0-arm64.exp 
>>>>>> b/automation/scripts/expect/fvp-base-smoke-dom0-arm64.exp
>>>>>> new file mode 100755
>>>>>> index 0000000000..25d9a5f81c
>>>>>> --- /dev/null
>>>>>> +++ b/automation/scripts/expect/fvp-base-smoke-dom0-arm64.exp
>>>>>> @@ -0,0 +1,73 @@
>>>>>> +#!/usr/bin/expect
>>>>>> +
>>>>>> +set timeout 2000
>>>>> Do we really need such a big timeout (~30 min)?
>>>>> Looking at your test job, it took 16 mins (quite a lot but I know FVP is 
>>>>> slow
>>>>> + send_slow slows things down)
>>>> 
>>>> This is a really good question. I did have the same question while working 
>>>> on
>>>> the negative test today. The timeout 2000 indeed will fail the job at 
>>>> about 30min,
>>>> and waiting for it is indeed not really pleasant.
>>>> 
>>>> But my second thought would be - from my observation, the overall time now
>>>> would vary between 15min ~ 20min, and having a 10min margin is not that 
>>>> crazy
>>>> given that we probably will do more testing from the job in the future, 
>>>> and if the
>>>> GitLab Arm worker is high loaded, FVP will probably become slower. And 
>>>> normally
>>>> we don’t even trigger the timeout as the job will normally pass. So I 
>>>> decided
>>>> to keep this.
>>>> 
>>>> Mind sharing your thoughts about the better value of the timeout? Probably 
>>>> 25min?
>>> From what you said that the average is 15-20, I think we can leave it set 
>>> to 30.
>>> But I wonder if we can do something to decrease the average time. ~20 min 
>>> is a lot
>>> even for FVP :) Have you tried setting send_slow to something lower than 
>>> 100ms?
>>> That said, we don't send too many chars to FVP, so I doubt it would play a 
>>> major role
>>> in the overall time.
>> 
>> I agree with the send_slow part. Actually I do have the same concern, here 
>> are my current
>> understanding and I think you will definitely help with your knowledge:
>> If you check the full log of Dom0 booting, for example [1], you will find 
>> that we wasted so
>> much time in starting the services of the OS (modloop, udev-settle, etc). 
>> All of these services
>> are retried many times but in the end they are still not up, and from my 
>> understanding they
>> won’t affect the actual test(?) If we can somehow get rid of these services 
>> from rootfs, I think
>> we can save a lot of time.
>> 
>> And honestly, I noticed that qemu-alpine-arm64-gcc suffers from the same 
>> problem and it also
>> takes around 15min to finish. So if we managed to tailor the services from 
>> the filesystem, we
>> can save a lot of time.
> That is not true. Qemu runs the tests relatively fast within few minutes. The 
> reason you see e.g. 12 mins
> for some Qemu jobs comes from the timeout we set in Qemu scripts. We don't 
> have yet the solution (we could
> do the same as Qubes script) to detect the test success early and exit before 
> timeout. That is why currently
> the only way for Qemu tests to finish is by reaching the timeout.
> 
> So the problem is not with the rootfs and services (the improvement would not 
> be significant) but with
> the simulation being slow. That said, this is something we all know and I 
> expect FVP to only be used in scenarios
> which cannot be tested using Qemu or real HW.

Ok, you made a point. Let me do some experiments to see if I can improve. 
Otherwise maybe
we can live with this until a better solution.

Kind regards,
Henry

> 
> ~Michal


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.