unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH] test: aggregate-results updates
Date: Tue, 03 Aug 2021 22:39:06 +0300	[thread overview]
Message-ID: <m21r7al3mt.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <874kc814q8.fsf@tethera.net>

On Mon, Aug 02 2021, David Bremner wrote:

> Tomi Ollila <tomi.ollila@iki.fi> writes:
>
>> -	mkdir -p "$test_results_dir"
>> +	test -d "$test_results_dir" || mkdir "$test_results_dir"
>
> Lately I've notice some complaints during parallel test running
>
> 	mkdir: cannot create directory '/home/bremner/software/upstream/notmuch/test/test-results': File exists
>
> It seems like this change might be the culprit. Can you explain why it
> was needed?

ah, parallel test non-atomicity is the problem; fix would be to restore -p to mkdir
(so it does not fail when another program executed mkdir between that test
check and mkdir execution)

i.e.

test -d "$test_results_dir" || mkdir -p "$test_results_dir"


Checking the dir with shell builtin drops need to execute mkdir in external
process, which makes the tests run a bit snappier (in small increments).


Tomi

  reply	other threads:[~2021-08-03 19:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-17  8:11 [PATCH] test: aggregate-results updates Tomi Ollila
2021-06-05 11:12 ` David Bremner
2021-06-07 15:13   ` Tomi Ollila
2021-06-07 23:35     ` David Bremner
2021-08-02 11:11 ` David Bremner
2021-08-03 19:39   ` Tomi Ollila [this message]
2021-08-04  1:46     ` David Bremner

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

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m21r7al3mt.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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).