From: Eric Wong <normalperson@yhbt.net>
To: kgio@librelist.org
Subject: Re: Concurrency issue in TestKgioUnixConnect?
Date: Mon, 2 Sep 2013 21:24:29 +0000 [thread overview]
Message-ID: <20130902212429.GA18310@dcvr.yhbt.net> (raw)
In-Reply-To: CAAB-KckA9R_7ssHmDkoHqS1f1=FXqdY4giwN_jGEC5TxrvNz2Q@mail.gmail.com
Hleb Valoshka <375gnu@gmail.com> wrote:
> On 9/1/13, Eric Wong <normalperson@yhbt.net> wrote:
> >> http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-kgio.git;a=blob;f=debian/patches/0002-Change-prefix-of-temporary-sockets-to-prevent-races.patch
> > Btw, do you want me to take that patch into the upstream repo?
>
> As you wish, your tests are also affected by this issue, cause they
> run in parallel too.
I just signed-off and pushed the following out:
Hleb Valoshka (2):
Change prefix of temporary sockets to prevent races
Don't dump 20M in case of failure
I've never been hit by the issue even though I've always known it's a
potential issue on very busy systems. It looks like Tempfile embeds the
PID in the temporary name, so maybe the buildds are recycling PIDs very
quickly?
I haven't looked closely at your fakeroot workaround.
> > It could be improved, too, to use a tmpdir for each test invocation.
> > That would allow multiple instances of the kgio test to run safely at
> > once (e.g. for different versions of ruby/rubinius).
>
> Hmm, interesting idea, currently in Debian tests with different
> versions of ruby are run one-by-one, but who knows how such process
> may be implemented in other OSes.
I used to test some software in parallel under Ruby
1.8/Rubinius/1.9.1/1.9.2/1.9.3; but eventually stopped caring about
1.8, 1.9.{1,2} and Rubinius itself was taking too long to build.
next prev parent reply other threads:[~2013-09-02 21:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-01 14:03 Concurrency issue in TestKgioUnixConnect? Jérémy Bobbio
2013-09-01 16:57 ` Hleb Valoshka
2013-09-01 19:58 ` Eric Wong
2013-09-02 12:57 ` Hleb Valoshka
2013-09-02 21:24 ` Eric Wong [this message]
2013-09-03 8:50 ` Hleb Valoshka
2013-09-03 20:05 ` Eric Wong
2013-09-05 20:53 ` Hleb Valoshka
2013-09-05 23:11 ` Eric Wong
2013-09-06 8:56 ` Hleb Valoshka
2013-09-05 7:58 ` Hleb Valoshka
2013-09-05 8:14 ` Eric Wong
2013-09-05 12:35 ` Hleb Valoshka
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://yhbt.net/kgio/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130902212429.GA18310@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=kgio@librelist.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://yhbt.net/kgio.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).