From: Greg Kurz <groug@kaod.org>
To: Christian Schoenebeck <qemu_oss@crudebyte.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH v3 2/2] tests/9pfs: fix test dir for parallel tests
Date: Sun, 1 Nov 2020 20:31:28 +0100 [thread overview]
Message-ID: <20201101203128.40a013ad@bahia.lan> (raw)
In-Reply-To: <2531717.KjLcWJ8QnQ@silver>
On Sun, 01 Nov 2020 20:14:16 +0100
Christian Schoenebeck <qemu_oss@crudebyte.com> wrote:
> On Sonntag, 1. November 2020 18:44:44 CET Greg Kurz wrote:
> > On Sun, 1 Nov 2020 15:37:12 +0100
> >
> > Christian Schoenebeck <qemu_oss@crudebyte.com> wrote:
> > > Use mkdtemp() to generate a unique directory for the 9p 'local' tests.
> > >
> > > This fixes occasional 9p test failures when running 'make check -jN' if
> > > QEMU was compiled for multiple target architectures, because the
> > > individual
> > > architecture's test suites would run in parallel and interfere with each
> > > other's data as the test directory was previously hard coded and hence the
> > > same directory was used by all of them simultaniously.
> > >
> > > This also requires a change how the test directory is created and deleted:
> > > As the test path is now randomized and virtio_9p_register_nodes() being
> > > called in a somewhat undeterministic way, that's no longer an appropriate
> > > place to create and remove the test directory. Use a constructor and
> > > destructor function for creating and removing the test directory instead.
> > > Unfortunately libqos currently does not support setup/teardown callbacks
> > > to handle this more cleanly.
> > >
> > > The constructor functions needs to be in virtio-9p-test.c, not in
> > > virtio-9p.c, because in the latter location it would cause all apps that
> > > link to libqos (i.e. entirely unrelated test suites) to create a 9pfs
> > > test directory as well, which would even break other test suites.
> > >
> > > Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
> > > ---
> >
> > Reviewed-by: Greg Kurz <groug@kaod.org>
>
> Thanks for the overtime, on a Sunday!
>
> Queued on 9p.next:
> https://github.com/cschoenebeck/qemu/commits/9p.next
>
> And this one with Peter Xu's patches on top, just for testing:
> https://github.com/cschoenebeck/qemu/commits/9p.experimental.2
>
> > I could run 'make check -j' with 4 archs (ppc64, x86_64, aarch64, s390x)
> > on a POWER9 system with 128 cpus, for ~1 hour without seeing any failure.
> >
> > Tested-by: Greg Kurz <groug@kaod.org>
>
> OO Sounds like having advantages working for IBM. Respect. I start to get envy
> as these beasts are running towards PCIe 6, while we regular x86 users would
> already be glad having PCIe 4.
>
I work for Red Hat now but yes, this allows easier access to bigger systems.
> I give it some more spinning hours this time, just to be sure, before sending
> the PR tomorrow morning. But I think it's all right now.
>
Cool ! :)
> Thanks!
>
> Best regards,
> Christian Schoenebeck
>
>
next prev parent reply other threads:[~2020-11-01 19:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-01 15:12 [PATCH v3 0/2] 9pfs: test suite fixes Christian Schoenebeck
2020-11-01 14:25 ` [PATCH v3 1/2] tests/9pfs: make create/remove test dir public Christian Schoenebeck
2020-11-01 17:03 ` Greg Kurz
2020-11-01 14:37 ` [PATCH v3 2/2] tests/9pfs: fix test dir for parallel tests Christian Schoenebeck
2020-11-01 17:44 ` Greg Kurz
2020-11-01 19:14 ` Christian Schoenebeck
2020-11-01 19:31 ` Greg Kurz [this message]
2020-11-01 18:02 ` [PATCH v3 0/2] 9pfs: test suite fixes Mark Cave-Ayland
2020-11-01 19:17 ` Christian Schoenebeck
2020-11-01 19:35 ` Mark Cave-Ayland
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=20201101203128.40a013ad@bahia.lan \
--to=groug@kaod.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu_oss@crudebyte.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.