FSTests Archive mirror
 help / color / mirror / Atom feed
From: Zorro Lang <zlang@redhat.com>
To: Martin Jansa <martin.jansa@gmail.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH] tests/*/Makefile: make sure group.list DIRT exists before install
Date: Tue, 27 Feb 2024 11:05:41 +0800	[thread overview]
Message-ID: <20240227030541.z7bweuyamwwubkmt@dell-per750-06-vm-08.rhts.eng.pek2.redhat.com> (raw)
In-Reply-To: <CA+chaQfpUUBqP_ai_4UPWYBztGvdxAU+V0OfmTKG9t7_nrb1rw@mail.gmail.com>

On Mon, Feb 26, 2024 at 06:31:04PM +0100, Martin Jansa wrote:
> On Mon, Feb 26, 2024 at 5:57 PM Darrick J. Wong <djwong@kernel.org> wrote:
> >
> > On Sun, Feb 25, 2024 at 07:01:48PM +0100, Martin Jansa wrote:
> > > On Sun, Feb 25, 2024 at 5:35 PM Zorro Lang <zlang@redhat.com> wrote:
> > > >
> > > > On Thu, Feb 08, 2024 at 11:52:41PM +0100, Martin Jansa wrote:
> > > > > * sometimes make install was failing with:
> > > > >   cp: cannot stat 'group.list': No such file or directory
> > > > >   and bunch of non-fatal messages:
> > > > >   mv: failed to preserve ownership for 'group.list': Invalid argument
> > > >
> > > > I'm wondering ... isn't that expected?
> > > >
> > > > Why not let "make install" fail directly, if there's not a completed "make" ?
> > > > Isn't that more familiar?
> > >
> > > It might if it fails reliably, but in OpenEmbedded builds where I was
> > > seeing this in some CI builds it failed in about 1% of the builds, which is
> > > enough to make the failure annoying and if this is meant to be expected
> > > behavior than not failing reliably, for context see:
> > > https://git.openembedded.org/meta-openembedded/commit/?id=e8a1c9823b7e55dd2ca7f19a3fd3a05ae676bfe2
> >
> > Aha, that explains the weird language in the commit message about
> > "removing tests/*/group.list" and "adding some sleep" even though the
> > patch doesn't actually do that.
> 
> That's what I was using to reliably trigger the "make install" failure as in:
> https://git.openembedded.org/meta-openembedded-contrib/commit/?h=jansa/master-xfstests-debug&id=d3fecf856850645762a9dcad5160686b2445729d
> 
> > > so here it calls make in do_compile task (defined in autotools-brokensep),
> > > then make install in do_install task and do_install was failing
> > > _sometimes_, and I haven't seen single failure since this change was
> > > applied.
> > >
> > > I'm not very familiar with xfstests, I wasn't even building it
> > > intentionally (it's just part of one CI job which builds everything
> > > available), so I might be missing something.
> >
> > Huh, that looks like the result of make trying to run the 'default' and
> > 'install' targets in parallel because there's no "install: default"
> > clause in the Makefile.
> >
> > Soooo... are you folks using 'make -jXX default install' in your CI
> > system?
> 
> -jXX is used in 2 separate steps (bitbake tasks) which don't run in parallel.
> 
> do_compile tasks runs:
> do_compile() {
>     make -j 70 -l 140
> }
> 
> and only after do_compile is finished do_install task runs:
> do_install() {
>     # otherwise install-sh duplicates DESTDIR prefix
>     export DIST_ROOT="/" DIST_MANIFEST=""
> DESTDIR="/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/image"
>     make -j 70 -l 140 install
> 
>     unionmount_target_dir=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/image/usr/xfstests/unionmount-testsuite
>     install -d $unionmount_target_dir/tests
>     install /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/unionmount-testsuite/tests/*
> -t $unionmount_target_dir/tests
>     install /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/unionmount-testsuite/*.py
> -t $unionmount_target_dir
>     install /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/unionmount-testsuite/run
> -t $unionmount_target_dir
>     install /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/unionmount-testsuite/README
> -t $unionmount_target_dir
> }
> 
> And with this I see 15 calls to buildgrouplist in do_compile and then
> the 2 calls for each of these 15 group.list files again in do_install
> 
> grep GROUP temp/log.do_install temp/log.do_compile | sort | uniq -c
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/btrfs/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/ceph/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/cifs/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/ext4/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/f2fs/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/generic/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/nfs/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/ocfs2/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/overlay/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/perf/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/selftest/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/shared/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/tmpfs/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/udf/group.list
>       1 temp/log.do_compile: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/xfs/group.list
> 
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/btrfs/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/ceph/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/cifs/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/ext4/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/f2fs/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/generic/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/nfs/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/ocfs2/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/overlay/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/perf/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/selftest/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/shared/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/tmpfs/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/udf/group.list
>       2 temp/log.do_install: [GROUP]
> /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/xfstests/2024.01.14/git/tests/xfs/group.list
> 
> I guess for you it doesn't run buildgrouplist again if you run "make
> && make install"?

Thanks for this explanation, this example makes more sense for me.

Reviewed-by: Zorro Lang <zlang@redhat.com>

> 
> Regards,
> 


      parent reply	other threads:[~2024-02-27  3:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-08 22:52 [PATCH] tests/*/Makefile: make sure group.list DIRT exists before install Martin Jansa
2024-02-25 16:30 ` Zorro Lang
2024-02-25 18:01   ` Martin Jansa
2024-02-26 16:57     ` Darrick J. Wong
2024-02-26 17:31       ` Martin Jansa
2024-02-26 19:12         ` Darrick J. Wong
2024-02-27  3:05         ` Zorro Lang [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=20240227030541.z7bweuyamwwubkmt@dell-per750-06-vm-08.rhts.eng.pek2.redhat.com \
    --to=zlang@redhat.com \
    --cc=fstests@vger.kernel.org \
    --cc=martin.jansa@gmail.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 read-only IMAP folder(s) and NNTP newsgroup(s).