darcs

Patch 1770 fix in darcs check: withTempDir -> withDelayedDir

Title fix in darcs check: withTempDir -> withDelayedDir
Superseder Nosy List bfrk, ganesh
Related Issues
Status accepted Assigned To ganesh
Milestone

Created on 2018-12-03.12:01:24 by bfrk, last changed 2019-06-14.13:34:37 by ganesh.

Files
File name Status Uploaded Type Edit Remove
add-comment-to-explain-use-of-withdelayeddir.dpatch bfrk, 2019-06-14.11:59:15 application/x-darcs-patch
fix-in-darcs-check_-withtempdir-__-withdelayeddir.dpatch bfrk, 2018-12-03.12:01:23 application/x-darcs-patch
patch-preview.txt bfrk, 2018-12-03.12:01:23 text/x-darcs-patch
patch-preview.txt bfrk, 2019-06-14.11:59:15 text/x-darcs-patch
unnamed bfrk, 2018-12-03.12:01:23 text/plain
unnamed bfrk, 2019-06-14.11:59:15 text/plain
See mailing list archives for discussion on individual patches.
Messages
msg20563 (view) Author: bfrk Date: 2018-12-03.12:01:23
Sorry, no issue, no test script to reproduce. Still think this is correct fix.

1 patch for repository http://darcs.net/screened:

patch 87d44f25f7c4c78c36832cdab55ecc2bd47c1bbf
Author: Ben Franksen <benjamin.franksen@helmholtz-berlin.de>
Date:   Wed Nov 21 18:45:41 CET 2018
  * fix in darcs check: withTempDir -> withDelayedDir
  
  Every now and again darcs check fails for me because it tries to read a
  patch from the temporary directory which doesn't exist any more.
Attachments
msg20668 (view) Author: ganesh Date: 2019-06-02.18:06:10
Is this working for you in practice? It seems a bit strange because 
from the code all the work should be done inside the "withTempDir"
call. But happy to apply if it does make a difference (perhaps
with a comment in the code explaining why it's that way).
msg20708 (view) Author: bfrk Date: 2019-06-11.13:49:50
> Is this working for you in practice? It seems a bit strange because 
> from the code all the work should be done inside the "withTempDir"
> call. But happy to apply if it does make a difference (perhaps
> with a comment in the code explaining why it's that way).

It does and I never again had the problem I mentioned. I guess the
reason this failed occasionally may be because of laziness somewhere
inside the action?
msg20757 (view) Author: bfrk Date: 2019-06-12.15:13:16
So replayRepository' may return a new pristine that is read from the 
temporary location and reading a Tree is done using lazy ByteStrings 
(for file contents). Then we check if there is a difference to our 
stored pristine, but when there are differences the check may 
terminate early and not all of the new pristine was read/evaluated.
msg20778 (view) Author: ganesh Date: 2019-06-14.10:05:41
I see, thanks. Could you add a comment to that effect?
msg20790 (view) Author: bfrk Date: 2019-06-14.11:59:15
Following up on review.

1 patch for repository http://darcs.net/screened:

patch 3efbb66b2a35f29cc384613017f625ee9eab0a54
Author: Ben Franksen <ben.franksen@online.de>
Date:   Fri Jun 14 13:58:01 CEST 2019
  * add comment to explain use of withDelayedDir
Attachments
History
Date User Action Args
2018-12-03 12:01:24bfrkcreate
2018-12-03 12:07:16bfrksetstatus: needs-screening -> needs-review
2019-06-02 18:06:11ganeshsetstatus: needs-review -> review-in-progress
messages: + msg20668
2019-06-11 13:49:50bfrksetmessages: + msg20708
2019-06-12 15:13:16bfrksetmessages: + msg20757
2019-06-14 10:05:41ganeshsetstatus: review-in-progress -> followup-requested
assignedto: ganesh
messages: + msg20778
nosy: + ganesh
2019-06-14 11:59:16bfrksetfiles: + patch-preview.txt, add-comment-to-explain-use-of-withdelayeddir.dpatch, unnamed
messages: + msg20790
2019-06-14 12:13:51ganeshsetstatus: followup-requested -> accepted-pending-tests
2019-06-14 13:34:37ganeshsetstatus: accepted-pending-tests -> accepted