[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: Henry Wang <Henry.Wang@xxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Fri, 8 Dec 2023 10:11:42 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=v3546FDg0OybIYPKSTH+XvX3nSuAMux9QhzEIe4NfNU=; b=cJFORTYr+atSpB+bDMuPBDIN2Off/IRI7Y9xaHE5M1CyHmcMfDgfR/XMpBzks0aem1JUat0TovG6EajDRF5/4X2gUd6EdqUbu9+a/9Fl6WBSQwAQm703PFX6y9y2D1nUbCQPN+WuAokPz2gVnUHIrFDFXWsK1BcMr0UVxXnx86eL6FYzR4cnUxnQZ+gJ2W9uUtDwQhR5ybDBtGkEN5KjsB5pmDxnXFTvwkF+IhLN6iAJ8r9hBAB2vIS7vizKulds5rNXFjDioOpaQTD3rnYIt8BLLhOa9Lw7G0AUY1Lc99sZH8lhoYJFgSx8sCbQkWINOi2daDXKHqFrb33anYhozw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=khMC9aDOruLLa5F/IqaKKIfwX5s0+mUYi22s4z2TVoG0lB8kGBZAUXeEEuHAta8UsfmHxsu0dR55CAAwRjPnMjMfFXOcRk2NneZU8n2d8n8WULPT/4Yog/DYS5VLN+GWZsdTRjHmLmeLX56mzZlPLx9O6PTvAGlzeUbUzytuQBBFHGfzr4qnEA0yYX+psUC1yvZ4dMvy4729VnpTP89k+VwIauPsnf/UjRTMjC5k3J7K8H4xr1cLvdh8b8W8csVU5okIQC0veH6qyOg6Pg8UrwIt/cWKGILwkWPpOBHLm6qWbcTaskXMsHEGrqqln0Wlc1aK+wLCOcXY/2PstTveBA==
  • 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:11:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


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:
>>>
>>>
>>> To interact with the FVP (for example entering the U-Boot shell
>>> and transferring the files by TFTP), we need to connect the
>>> corresponding port by the telnet first. Use an expect script to
>>> simplify the automation of the whole "interacting with FVP" stuff.
>>>
>>> The expect script will firstly detect the IP of the host, then
>>> connect to the telnet port of the FVP, set the `serverip` and `ipaddr`
>>> for the TFTP service in the U-Boot shell, and finally boot Xen from
>>> U-Boot and wait for the expected results by Xen, Dom0 and DomU.
>>>
>>> Signed-off-by: Henry Wang <Henry.Wang@xxxxxxx>
>> Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
> 
> Thanks!
> 
>> with 1 question...
>>
>>> ---
>>> v2:
>>> - No change.
>>> ---
>>> .../expect/fvp-base-smoke-dom0-arm64.exp      | 73 +++++++++++++++++++
>>> 1 file changed, 73 insertions(+)
>>> create mode 100755 automation/scripts/expect/fvp-base-smoke-dom0-arm64.exp
>>>
>>> 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 use FVP quite rarely these days, so you should know better if this can be 
perceived as
usual/normal behavior.

~Michal




 


Rackspace

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