From: Cleber Rosa <crosa@redhat.com>
To: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"John Snow" <jsnow@redhat.com>,
"Willian Rampazzo" <wrampazz@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH] tests/acceptance: fix timeout for vm.wait
Date: Thu, 3 Dec 2020 11:56:29 -0500 [thread overview]
Message-ID: <20201203165629.GC2787993@localhost.localdomain> (raw)
In-Reply-To: <32d30a1d-51a5-b04e-19cb-e33e90b2d659@ispras.ru>
[-- Attachment #1: Type: text/plain, Size: 2394 bytes --]
On Thu, Dec 03, 2020 at 09:29:10AM +0300, Pavel Dovgalyuk wrote:
> On 02.12.2020 18:22, John Snow wrote:
> > On 12/2/20 1:31 AM, Pavel Dovgalyuk wrote:
> > > > > >
> > > > > > This patch adds timeout parameter to vm.wait() calls,
> > > > > > because the default
> > > > > > value is just 30 seconds, and tests may last for more time.
> > > > > >
> > > >
> > > > This doesn't sound right -- the timeout isn't meant to be for
> > > > the entire duration of the test, the timeout is from the time of
> > > > issuing a shutdown command until the time the VM actually shuts
> > > > down. Ideally, that should not take a particularly long time in
> > > > a well-behaved test.
> > > >
> > > > Why is it lasting longer than 30 seconds?
> > >
> > > These are complex Linux boot&execution tests.
> > > Such loading process could take more than 30 seconds.
> > > E.g., BootLinux tests have timeout of 900 seconds.
> >
> > This timeout should only count towards the time spent *shutting down*,
> > not the time to run the entire test. 30 seconds used to be enough time
> > for this to happen on gitlab, if it's taking longer than that I am
> > worried that something has gone wrong.
> >
> > Where were the failures observed, and on what tests? Are there logs I
> > can review?
>
> I've got your point. You were right.
> The problem was with new long-lasting record/replay tests:
>
Hi Pavel,
You mean a new test you're writing based on "boot_linux.py"?
> if record:
> cloudinit.wait_for_phone_home(('0.0.0.0', self.phone_home_port),
> self.name)
> vm.shutdown()
> logger.info('finished the recording with log size %s bytes'
> % os.path.getsize(replay_path))
> else:
> vm.wait(None)
> logger.info('successfully fihished the replay')
>
>
> Replay phase here waits for shutdown for the whole period of Linux boot and
> execution. We don't check any VM output and just wait for finishing
> the replay.
>
I'm missing why a replay be different when it comes to waiting for a
successfull "I'm finished booting" from the guest? Wouldn't the guest
during the replay act just the same?
> Smaller RR tests include "self.wait_for_console_pattern" during replay and
> therefore can't have problems with this timeout.
>
> Pavel Dovgalyuk
>
Right.
Thanks,
- Cleber.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-12-03 16:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-16 10:08 [PATCH] tests/acceptance: fix timeout for vm.wait Pavel Dovgalyuk
2020-11-16 11:13 ` Philippe Mathieu-Daudé
2020-12-01 19:15 ` John Snow
2020-12-02 6:31 ` Pavel Dovgalyuk
2020-12-02 15:22 ` John Snow
2020-12-03 6:29 ` Pavel Dovgalyuk
2020-12-03 16:56 ` Cleber Rosa [this message]
2020-12-04 6:38 ` Pavel Dovgalyuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201203165629.GC2787993@localhost.localdomain \
--to=crosa@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=jsnow@redhat.com \
--cc=pavel.dovgalyuk@ispras.ru \
--cc=pbonzini@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=wrampazz@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).