Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-04 Thread Christian Couder
On Mon, Jun 5, 2017 at 4:02 AM, Junio C Hamano wrote: > Christian Couder writes: > >> On Sun, Jun 4, 2017 at 2:00 AM, Junio C Hamano wrote: >>> Ævar Arnfjörð Bjarmason writes: >>> > My feeling exactly. Diagnosing and failing upfront saying "well you > made a copy but it is not suitable

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-04 Thread Junio C Hamano
Jeff King writes: > I don't really mind addressing this one case that much. I'm not sure > that we want to accrue a pile of band-aids here that causes a > maintenance burden and doesn't really solve the problem completely. One > way to do that is to say no to the first band-aid. Yup, that was w

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-04 Thread Junio C Hamano
Christian Couder writes: > On Sun, Jun 4, 2017 at 2:00 AM, Junio C Hamano wrote: >> Ævar Arnfjörð Bjarmason writes: >> My feeling exactly. Diagnosing and failing upfront saying "well you made a copy but it is not suitable for testing" sounds more sensible at lesat to me. >>> >>>

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-04 Thread Jeff King
On Sun, Jun 04, 2017 at 11:04:50AM +0900, Junio C Hamano wrote: > Jeff King writes: > > > But I think a more compelling case is that there may be an ongoing > > operation in the original repo (e.g., say you are in the middle of > > writing a commit message) when we do a blind copy of the filesys

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-04 Thread Jeff King
On Sun, Jun 04, 2017 at 09:00:28AM +0900, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > > >> My feeling exactly. Diagnosing and failing upfront saying "well you > >> made a copy but it is not suitable for testing" sounds more sensible > >> at lesat to me. > > > > This change makes t

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-04 Thread Jeff King
On Sun, Jun 04, 2017 at 09:55:15AM +0200, Ævar Arnfjörð Bjarmason wrote: > > Is a local clone really much slower these days? Wouldn't it is use > > hard links too? > > By the way the many properties that are preserved might not be worth > > preserving as they could make results depend a lot on the

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-04 Thread Ævar Arnfjörð Bjarmason
On Sun, Jun 4, 2017 at 9:37 AM, Christian Couder wrote: > On Sun, Jun 4, 2017 at 2:00 AM, Junio C Hamano wrote: >> Ævar Arnfjörð Bjarmason writes: >> My feeling exactly. Diagnosing and failing upfront saying "well you made a copy but it is not suitable for testing" sounds more sensibl

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-04 Thread Christian Couder
On Sun, Jun 4, 2017 at 2:00 AM, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >>> My feeling exactly. Diagnosing and failing upfront saying "well you >>> made a copy but it is not suitable for testing" sounds more sensible >>> at lesat to me. >> >> This change makes the repo suitable

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-03 Thread Junio C Hamano
Jeff King writes: > But I think a more compelling case is that there may be an ongoing > operation in the original repo (e.g., say you are in the middle of > writing a commit message) when we do a blind copy of the filesystem > contents. You might racily pick up a lockfile. > > Should we find and

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-03 Thread Junio C Hamano
Junio C Hamano writes: > Perhaps run "fsck" and "status" immediately after copying to make > sure they succeed, or something like that? Hmph, this is me half-being silly, as this "copying an existing one" is meant for testing Git with a large repository, and having to run fsck may add meaningful

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-03 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: >> My feeling exactly. Diagnosing and failing upfront saying "well you >> made a copy but it is not suitable for testing" sounds more sensible >> at lesat to me. > > This change makes the repo suitable for testing when it wasn't before. Perhaps "not suitable" was

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-03 Thread Ævar Arnfjörð Bjarmason
On Sat, Jun 3, 2017 at 1:52 AM, Junio C Hamano wrote: > Jeff King writes: > >> But I think a more compelling case is that there may be an ongoing >> operation in the original repo (e.g., say you are in the middle of >> writing a commit message) when we do a blind copy of the filesystem >> content

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-02 Thread Junio C Hamano
Jeff King writes: > But I think a more compelling case is that there may be an ongoing > operation in the original repo (e.g., say you are in the middle of > writing a commit message) when we do a blind copy of the filesystem > contents. You might racily pick up a lockfile. > > Should we find and

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-02 Thread Ævar Arnfjörð Bjarmason
On Fri, Jun 2, 2017 at 8:45 PM, Jeff King wrote: > On Fri, Jun 02, 2017 at 10:33:30AM +, Ævar Arnfjörð Bjarmason wrote: > >> When the tested repo has an index.lock file it should be removed. This >> file may be present if e.g. git-status previously crashed in that >> repo, and it will make a l

Re: [PATCH] perf: work around the tested repo having an index.lock

2017-06-02 Thread Jeff King
On Fri, Jun 02, 2017 at 10:33:30AM +, Ævar Arnfjörð Bjarmason wrote: > When the tested repo has an index.lock file it should be removed. This > file may be present if e.g. git-status previously crashed in that > repo, and it will make a lot of git commands fail. Let's try harder > and remove t