Commit graph

30431 commits

Author SHA1 Message Date
Joey Hess
8526cd7c92
test: Avoid most situations involving failure to delete test directories
By forking a worker process and only deleting the test directory once it exits.

This way, if a test leaves files open, they'll get closed when the worker
exits, so avoiding failure to delete open files on Windows, and failure to
delete directories due to NFS lock files.

If a test leaves a git worker process running, the closed pipes should
cause the worker to exit too, also avoiding the problem there. The 10
second sleep ought to give plenty of time for such worker processes to
exit, although this is of course a race.

Finally, even if test directory fails to be deleted still,
it won't appear as if the last test in the test suite failed; the error
will be displayed at the very end.

This commit was supported by the NSF-funded DataLad project.
2017-08-14 16:29:47 -04:00
Joey Hess
af6068525a
Fix a git-annex test failure when run on NFS due to NFS lock files preventing directory removal.
Should fix this:

    lock (v6 --force):                                    FAIL
      Exception: .git/annex/keys: removeDirectoryRecursive: unsatisfied constraints (Directory not empty)

Verified that the test case still catches the regression it's meant to.

This commit was supported by the NSF-funded DataLad project.
2017-08-14 15:11:42 -04:00
Joey Hess
0b307f43e1
avoid accidental Show of VectorClock
Removed its Show instance.
2017-08-14 14:51:54 -04:00
Joey Hess
2cecc8d2a3
Added GIT_ANNEX_VECTOR_CLOCK environment variable
Can be used to override the default timestamps used in log files in the
git-annex branch. This is a dangerous environment variable; use with
caution.

Note that this only affects writing to the logs on the git-annex branch.
It is not used for metadata in git commits (other env vars can be set for
that).

There are many other places where timestamps are still used, that don't
get committed to git, but do touch disk. Including regular timestamps
of files, and timestamps embedded in some files in .git/annex/, including
the last fsck timestamp and timestamps in transfer log files.

A good way to find such things in git-annex is to get for getPOSIXTime and
getCurrentTime, although some of the results are of course false positives
that never hit disk (unless git-annex gets swapped out..)

So this commit does NOT necessarily make git-annex comply with some HIPPA
privacy regulations; it's up to the user to determine if they can use it in
a way compliant with such regulations.

Benchmarking: It takes 0.00114 milliseconds to call getEnv
"GIT_ANNEX_VECTOR_CLOCK" when that env var is not set. So, 100 thousand log
files can be written with an added overhead of only 0.114 seconds. That
should be by far swamped by the actual overhead of writing the log files
and making the commit containing them.

This commit was supported by the NSF-funded DataLad project.
2017-08-14 14:19:58 -04:00
pitsa@5f5d24a1fb7ba0d050ae7cf95b4c3032002e8e38
f071d1382e 2017-08-13 08:38:17 +00:00
https://launchpad.net/~liori
91dc11933e Added a comment 2017-08-12 15:31:24 +00:00
yarikoptic
8427c44e11 Added a comment 2017-08-12 04:08:04 +00:00
yarikoptic
3c2aa54f21 initial whining about 2 ssh prompts 2017-08-12 04:06:19 +00:00
xloem
ff6f9e203e Added a comment: Git History 2017-08-10 00:25:27 +00:00
yarikoptic
0eff80b493 Added a comment: relates to being on NFS 2017-08-09 17:26:40 +00:00
yarikoptic
9844556d13 Added a comment: comes and goes! 2017-08-09 17:11:37 +00:00
yarikoptic
33884c2a6d Added a comment: "reproduces" in a complete git installation 2017-08-09 17:07:17 +00:00
Tafnzart
062e446791 2017-08-09 13:21:02 +00:00
aer1PheiZa
7d2520eea0 Added a comment: 6.20170101 - still unable. 2017-08-07 11:58:06 +00:00
https://openid.stackexchange.com/user/26f3c692-0460-4cbc-8712-e9bfb5889fb2
4df21b511c Added a comment: "WSL adds inotify & filesystem change notification support" 2017-08-07 06:22:07 +00:00
Joey Hess
7f13d61359
update 2017-08-06 08:30:19 -04:00
https://launchpad.net/~liori
12a1b2a0af Added a comment 2017-08-04 22:13:44 +00:00
jakemagee
2e2549ae5a Added a comment 2017-08-02 15:34:19 +00:00
yarikoptic
e7e665b1fa 2017-08-02 14:58:28 +00:00
Joey Hess
718080d8b1
Merge branch 'master' of ssh://git-annex.branchable.com 2017-08-01 12:19:44 -04:00
Joey Hess
b2eaca4104
comment 2017-08-01 12:19:03 -04:00
yarikoptic
de1a9d7cab removed 2017-08-01 03:02:24 +00:00
yarikoptic
8c91646219 Added a comment 2017-08-01 02:59:30 +00:00
yarikoptic
01958bb318 Added a comment 2017-08-01 02:58:33 +00:00
jakemagee
c5617016f8 2017-07-31 20:21:24 +00:00
yarikoptic
e199817b88 Added a comment 2017-07-31 19:05:04 +00:00
Joey Hess
139ad3ee5b
response 2017-07-31 14:46:20 -04:00
Joey Hess
aaa59cce8c
Merge branch 'master' of ssh://git-annex.branchable.com 2017-07-31 14:45:46 -04:00
Joey Hess
6895c0da3f
comment 2017-07-31 14:45:15 -04:00
yarikoptic
1055b969dc Added a comment: issue seems to be out there 2017-07-31 15:03:41 +00:00
lykos
05692017e6 2017-07-30 16:48:50 +00:00
lykos
388f80933b 2017-07-30 16:47:01 +00:00
lykos
7aeac437a6 2017-07-30 16:46:38 +00:00
lykos
9d614da3df 2017-07-30 16:45:34 +00:00
ilovezfs
4378d0ba13 Added a comment: pipe: resource exhausted (Too many open files) 2017-07-30 16:05:10 +00:00
yarikoptic
d05acc772d initial bug report 2017-07-30 13:39:34 +00:00
Joey Hess
41f521d6c6
comment 2017-07-28 09:07:30 -04:00
https://launchpad.net/~stephane-gourichon-lpad
14b40c79c7 Added a comment: Indeed git annex fsck can take into account objects manually placed into .git/annex/objects 2017-07-28 05:03:30 +00:00
https://launchpad.net/~stephane-gourichon-lpad
48c98fbe93 Added a comment: Experiment to run git-annex-repair as fast as possible. 2017-07-28 04:27:06 +00:00
https://launchpad.net/~stephane-gourichon-lpad
4eab06bf75 2017-07-28 03:39:56 +00:00
ilovezfs
3154230b4e 2017-07-27 06:26:03 +00:00
yarikoptic
a983877279 initial whining 2017-07-26 19:10:11 +00:00
lykos@d125a37d89b1cfac20829f12911656c40cb70018
193d907c2a Added a comment: Move from A to B 2017-07-26 19:08:07 +00:00
Joey Hess
626204483e
arm autobuilder moved to my house 2017-07-26 10:31:52 -04:00
Joey Hess
c9e1ecfdc8
fix link 2017-07-25 18:13:51 -04:00
https://launchpad.net/~stephane-gourichon-lpad
f76690687c Added a comment: User expectations and what git annex unannex does. 2017-07-24 08:06:55 +00:00
lykos@d125a37d89b1cfac20829f12911656c40cb70018
eab12ffbf7 Added a comment 2017-07-21 23:56:12 +00:00
lykos@d125a37d89b1cfac20829f12911656c40cb70018
18694b84e9 2017-07-21 18:44:06 +00:00
tom.prince@6bf26c878bf6103667f28d70cf49d4fb74d33df7
701ce95d9b Added a comment 2017-07-21 18:22:29 +00:00
yarikoptic
6adbb5a727 initial whining 2017-07-21 16:37:03 +00:00