From: Peter Xu <peterx@redhat.com>
To: Fabiano Rosas <farosas@suse.de>
Cc: qemu-devel@nongnu.org, Thomas Huth <thuth@redhat.com>,
Laurent Vivier <lvivier@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v1] tests/qtest/migration: Fix slow test dirty_limit
Date: Fri, 27 Mar 2026 17:20:09 -0400 [thread overview]
Message-ID: <acb0iV_GGevQW4uo@x1.local> (raw)
In-Reply-To: <877bqyjnv9.fsf@suse.de>
On Thu, Mar 26, 2026 at 06:13:14PM -0300, Fabiano Rosas wrote:
> Peter Xu <peterx@redhat.com> writes:
>
> > On Thu, Mar 26, 2026 at 01:44:05PM -0300, Fabiano Rosas wrote:
> >> After the referenced commit, the incoming side doesn't exit
> >> automatically after a failure. Tests that expect the destination to
> >> fail should use -incoming defer, issue QMP migrate-incoming, wait for
> >> the failure event and issue QMP quit.
> >>
> >> Fix the dirty_limit test which wasn't updated properly.
> >>
> >> Fixes: 4e8c4dda97 ("tests/qtest/migration: Force exit-on-error=false")
> >> Reported-by: Thomas Huth <thuth@redhat.com>
> >> Signed-off-by: Fabiano Rosas <farosas@suse.de>
> >
> > Highly likely I missed something, but could you remind me what is the
> > problem before the change, and why "defer" fixes it?
> >
>
> The original issue was that on failure the incoming side exits abruptly
> and leaves resources in the io/channel.c and io/task.c without freeing
> and that triggers ASAN (when in use). The fix was to set
> exit-on-error=false always. -incoming defer is needed because -incoming
> uri has no means of setting the exit-on-error flag, we need an explicit
> call to migrate-incoming to be able to set the flag.
>
> The dirty_limit test was not updated properly because it's under g_slow
> and I forgot to test it. I removed the qtest_set_expected_status(to,
> EXIT_FAILURE) line, but didn't make sure exit-on-error is set to false
> for this test. So it's now aborting with "expected 0, got 1".
Mistery resolved after I git pull looking at the new code..
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
prev parent reply other threads:[~2026-03-27 21:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-26 16:44 [PATCH v1] tests/qtest/migration: Fix slow test dirty_limit Fabiano Rosas
2026-03-26 18:17 ` Peter Xu
2026-03-26 21:13 ` Fabiano Rosas
2026-03-27 21:20 ` Peter Xu [this message]
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=acb0iV_GGevQW4uo@x1.local \
--to=peterx@redhat.com \
--cc=farosas@suse.de \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.