Joey Hess [Mon, 21 Mar 2022 17:29:56 +0000 (13:29 -0400)]
comment
Joey Hess [Mon, 21 Mar 2022 17:24:04 +0000 (13:24 -0400)]
diagnose user error
Joey Hess [Mon, 21 Mar 2022 17:12:40 +0000 (13:12 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 21 Mar 2022 17:12:02 +0000 (13:12 -0400)]
add back inode to directory special remote ContentIdentifier
Directory special remotes with importtree=yes have changed to once more
take inodes into account. This will cause extra work when importing from a
directory on a FAT filesystem that changes inodes on every mount.
To avoid that extra work, set ignoreinodes=yes when initializing a new
directory special remote, or change the configuration of your existing
remote: git-annex enableremote foo ignoreinodes=yes
This will mean a one-time re-import of all contents from every directory
special remote due to the changed setting.
73df633a6215faa093e4a7524c6d328aa988aed1 thought
it was too unlikely that there would be modifications that the inode number
was needed to notice. That was probably right; it's very unlikely that a
file will get modified and end up with the same size and mtime as before.
But, what was not considered is that a program like NextCloud might write
two files with different content so closely together that they share the
mtime. The inode is necessary to detect that situation.
Sponsored-by: Max Thoursie on Patreon
Lukey [Mon, 21 Mar 2022 17:00:33 +0000 (17:00 +0000)]
removed
bz4 [Mon, 21 Mar 2022 12:43:08 +0000 (12:43 +0000)]
Jamie [Mon, 21 Mar 2022 10:34:07 +0000 (10:34 +0000)]
Added a comment: Site Migration Issue Faced
michael@ff03af62c7fd492c75066bda2fbf02370f5431f4 [Sun, 20 Mar 2022 15:30:31 +0000 (15:30 +0000)]
Created
Added a comment
rafd [Thu, 17 Mar 2022 16:09:38 +0000 (16:09 +0000)]
Added a comment
tag@e36c1c00f7653e4441059bbc5b3405e961379108 [Thu, 17 Mar 2022 14:13:58 +0000 (14:13 +0000)]
tag@e36c1c00f7653e4441059bbc5b3405e961379108 [Thu, 17 Mar 2022 14:13:16 +0000 (14:13 +0000)]
yarikoptic [Wed, 16 Mar 2022 20:32:57 +0000 (20:32 +0000)]
Added a comment
Joey Hess [Wed, 16 Mar 2022 19:18:24 +0000 (15:18 -0400)]
comment
Joey Hess [Wed, 16 Mar 2022 19:07:38 +0000 (15:07 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 16 Mar 2022 18:42:07 +0000 (14:42 -0400)]
test: Added --jobs option
Default to the number of CPU cores, which seems about optimal
on my laptop. Using one more saves me 2 seconds actually.
Better packing of workers improves speed significantly.
In 2 tests runs, I saw segfaulting workers despite my attempt
to work around that issue. So detect when a worker does, and re-run it.
Removed installSignalHandlers again, because I was seeing an
error "lost signal due to full pipe", which I guess was somehow caused
by using it.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Wed, 16 Mar 2022 16:53:08 +0000 (12:53 -0400)]
cleaner test dependencies
This improves the display of tests.
tasty-1.2 is in debian stable.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Wed, 16 Mar 2022 16:37:09 +0000 (12:37 -0400)]
clean up concurrent output of tests
Using concurrent-output this is easy. Just have to check if tasty has
color enabled, and propagate it into the worker processes, some of which
will be run without a controlling console.
Also added a call to installSignalHandlers; I noticed that interrupting
the test suite could leave the console in a bad state and this fixes
that.
The ansi-terminal dependency is free, since tasty also depends on it.
Sponsored-by: Dartmouth College's Datalad project
Gus [Wed, 16 Mar 2022 16:10:52 +0000 (16:10 +0000)]
Added a comment: I have seen this
yarikoptic [Wed, 16 Mar 2022 14:38:45 +0000 (14:38 +0000)]
Added a comment: FWIW a detail
bpoldrack [Wed, 16 Mar 2022 10:22:34 +0000 (10:22 +0000)]
bpoldrack [Wed, 16 Mar 2022 10:04:39 +0000 (10:04 +0000)]
Joey Hess [Tue, 15 Mar 2022 23:30:57 +0000 (19:30 -0400)]
link to issue for tasty segfault
rafd [Tue, 15 Mar 2022 16:57:04 +0000 (16:57 +0000)]
Joey Hess [Mon, 14 Mar 2022 21:23:52 +0000 (17:23 -0400)]
allow tests to be split for more granularity
Unit tests are the main bulk of runtime, so splitting them into 2 or 3
parts should help.
For now, the number of parts is still 1, because on my 4 core laptop,
2 was a little bit slower, and 3 slower yet. However, this probably does
vary based on the number of cores, so needs to be revisited, and perhaps
made dynamic.
Since each test mode gets split into the specified number of parts,
plus property and remote tests, 2 gives 8 parts, and 3 gives 11 parts.
Load went to maybe 18, so there was probably contention slowing things
down.
So probably it needs to start N workers with some parts, and when a
worker finishes, run it with the next part, until all parts are
processed.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Mon, 14 Mar 2022 19:24:37 +0000 (15:24 -0400)]
parallelize git-annex test for 25% speedup
Note the very weird workaround for what appears to be some kind of tasty
bug, which causes a segfault. This is not new to this modification,
I was seeing a segfault before at least intermittently when limiting
git-annex test -p to only run a single test group.
Also, the path from one test repo to a remote test repo used to be
"../../foo", which somehow broke when moving the test repos from .t to
.t/N. I don't actually quite understand how it used to work, but
"../foo" seems correct and works in the new situation.
Test output from the concurrent processes is not yet serialized.
Should be easy to do using concurrent-output.
More test groups will probably make the speedup larger. It would
probably be best to have a larger number of test groups and divvy them
amoung subprocesses numbered based on the number of CPU cores, perhaps
times 2 or 3.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Mon, 14 Mar 2022 17:10:37 +0000 (13:10 -0400)]
fix accidental change to Test.hs while making comment
Joey Hess [Mon, 14 Mar 2022 16:30:27 +0000 (12:30 -0400)]
indentation
Added a comment
ErrGe [Fri, 11 Mar 2022 02:26:56 +0000 (02:26 +0000)]
Added a comment
ErrGe [Fri, 11 Mar 2022 02:23:20 +0000 (02:23 +0000)]
Added a comment
Joey Hess [Thu, 10 Mar 2022 20:10:46 +0000 (16:10 -0400)]
comment
Joey Hess [Thu, 10 Mar 2022 17:22:32 +0000 (13:22 -0400)]
comment
Joey Hess [Thu, 10 Mar 2022 17:10:39 +0000 (13:10 -0400)]
comment
Atemu [Wed, 9 Mar 2022 12:07:45 +0000 (12:07 +0000)]
Added a comment
Atemu [Wed, 9 Mar 2022 11:40:28 +0000 (11:40 +0000)]
Added a comment
Added a comment
ErrGe [Wed, 9 Mar 2022 01:08:23 +0000 (01:08 +0000)]
Joey Hess [Tue, 8 Mar 2022 19:50:31 +0000 (15:50 -0400)]
comment
Joey Hess [Tue, 8 Mar 2022 19:46:24 +0000 (15:46 -0400)]
comment
Joey Hess [Tue, 8 Mar 2022 18:51:01 +0000 (14:51 -0400)]
comment
Joey Hess [Tue, 8 Mar 2022 18:08:27 +0000 (14:08 -0400)]
reopen
Joey Hess [Tue, 8 Mar 2022 18:07:24 +0000 (14:07 -0400)]
comment
Joey Hess [Tue, 8 Mar 2022 17:54:07 +0000 (13:54 -0400)]
comment
Joey Hess [Tue, 8 Mar 2022 17:47:06 +0000 (13:47 -0400)]
comment
Joey Hess [Tue, 8 Mar 2022 17:08:16 +0000 (13:08 -0400)]
comment
Atemu [Tue, 8 Mar 2022 13:24:21 +0000 (13:24 +0000)]
Added a comment
Atemu [Tue, 8 Mar 2022 13:21:03 +0000 (13:21 +0000)]
Added a comment
Atemu [Tue, 8 Mar 2022 11:56:42 +0000 (11:56 +0000)]
Added a comment
anamyk [Tue, 8 Mar 2022 08:11:17 +0000 (08:11 +0000)]
Added a comment
anamyk [Tue, 8 Mar 2022 07:49:38 +0000 (07:49 +0000)]
Added a comment
yarikoptic [Tue, 8 Mar 2022 00:28:00 +0000 (00:28 +0000)]
Added a comment: still slow
Added a comment
Joey Hess [Mon, 7 Mar 2022 19:30:16 +0000 (15:30 -0400)]
comment
Joey Hess [Mon, 7 Mar 2022 19:25:57 +0000 (15:25 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 7 Mar 2022 19:25:32 +0000 (15:25 -0400)]
comment
Added a comment
Joey Hess [Mon, 7 Mar 2022 19:20:00 +0000 (15:20 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 7 Mar 2022 19:18:30 +0000 (15:18 -0400)]
comment
tomdhunt [Mon, 7 Mar 2022 18:27:38 +0000 (18:27 +0000)]
Added a comment
Joey Hess [Mon, 7 Mar 2022 18:12:11 +0000 (14:12 -0400)]
close
Joey Hess [Mon, 7 Mar 2022 18:01:45 +0000 (14:01 -0400)]
hard link git-annex to fix ./git-annex test
2fc46e1871e2f793689cc98523744040c9010bdc broke running ./git-annex test
when git-annex-shell is not in PATH from another install, and also
caused the wrong git-annex-shell to be tested.
Using a symlink made programPath return the .cabal/ directory where the
git-annex binary is, but git-annex-shell is not in that directory.
Changing to a hard link avoids that problem.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Mon, 7 Mar 2022 17:29:24 +0000 (13:29 -0400)]
fix build warning with old aeson
Joey Hess [Mon, 7 Mar 2022 17:23:19 +0000 (13:23 -0400)]
close
Joey Hess [Mon, 7 Mar 2022 16:57:16 +0000 (12:57 -0400)]
document nix-on-droid as an alternative to termux
Sponsored-by: Graham Spencer on Patreon
Joey Hess [Mon, 7 Mar 2022 16:11:18 +0000 (12:11 -0400)]
comment
Joey Hess [Mon, 7 Mar 2022 16:03:11 +0000 (12:03 -0400)]
comment; close
Joey Hess [Mon, 7 Mar 2022 16:00:14 +0000 (12:00 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
nowkixide [Mon, 7 Mar 2022 12:07:54 +0000 (12:07 +0000)]
Added a comment: Works fine
Added a comment
Atemu [Sat, 5 Mar 2022 21:46:23 +0000 (21:46 +0000)]
Added a comment
Atemu [Sat, 5 Mar 2022 18:47:10 +0000 (18:47 +0000)]
Added a comment
Joey Hess [Sat, 5 Mar 2022 14:22:39 +0000 (10:22 -0400)]
update
Atemu [Fri, 4 Mar 2022 20:27:31 +0000 (20:27 +0000)]
Added a comment
mih [Fri, 4 Mar 2022 16:23:16 +0000 (16:23 +0000)]
Added a comment: Thanks!
Atemu [Fri, 4 Mar 2022 14:44:29 +0000 (14:44 +0000)]
Added a comment
Atemu [Fri, 4 Mar 2022 14:16:54 +0000 (14:16 +0000)]
Added a comment
Atemu [Thu, 3 Mar 2022 08:40:47 +0000 (08:40 +0000)]
rename bugs/git-annex_is_slow_at_reading_files.mdwn to bugs/git-annex_is_slow_at_reading_file_content.mdwn
Joey Hess [Wed, 2 Mar 2022 22:27:20 +0000 (18:27 -0400)]
changelog
Joey Hess [Wed, 2 Mar 2022 22:24:06 +0000 (18:24 -0400)]
factor out Utility.Aeson.textKey
Joey Hess [Wed, 2 Mar 2022 22:22:38 +0000 (18:22 -0400)]
add back lost packString
The patch that removed it did not break anything, since the strings it's
used on are all ASCII not unicode. But I like making sure to use
packString everywhere just in case the code later changes in a way that
needs it.
sternenseemann [Wed, 2 Mar 2022 20:16:10 +0000 (21:16 +0100)]
allow building with aeson >= 2.0
In aeson 2.0, Text has been replaced by the Key type and HashMap by the
KeyMap interface. Accomodating this required adding some CPP in order to
still be able to compile with aeson < 2.0. The required changes were:
* Prevent Key from being re-exported by Utilities.Aeson, as it clashes
with git-annex's own Key type.
* Fix up convertion from String/Text to Key (or Text in aeson 1.*) in a
couple of places
* Import Data.Aeson.KeyMap instead of Data.HashMap.Strict, as they are
mostly API-compatible. insertWith needs to be replaced by unionWith,
however, as KeyMap lacks the former function.
Joey Hess [Wed, 2 Mar 2022 14:57:41 +0000 (10:57 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 2 Mar 2022 14:44:49 +0000 (10:44 -0400)]
add
Atemu [Wed, 2 Mar 2022 13:18:42 +0000 (13:18 +0000)]
Atemu [Wed, 2 Mar 2022 13:16:36 +0000 (13:16 +0000)]
Atemu [Wed, 2 Mar 2022 13:15:26 +0000 (13:15 +0000)]
anamyk [Tue, 1 Mar 2022 22:52:51 +0000 (22:52 +0000)]
Added a comment
Joey Hess [Tue, 1 Mar 2022 20:08:55 +0000 (16:08 -0400)]
git-annex test from standalone speedup
Avoid git-annex test being very slow when run from within the standalone
linux tarball or OSX app.
It may not really be necessary to add to PATH the directory where the
git-annex binary resides, but it can't hurt. Most places where the test
suite or git-annex run git-annex, they use programPath, so won't need
a modified PATH. But I'm not sure if that's always the case.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Tue, 1 Mar 2022 19:57:13 +0000 (15:57 -0400)]
update comment
Joey Hess [Tue, 1 Mar 2022 19:50:44 +0000 (15:50 -0400)]
comment
Joey Hess [Tue, 1 Mar 2022 18:26:04 +0000 (14:26 -0400)]
remove broken test
After
ce91f10132805d11448896304821b0aa9c6d9845, unannex on a non-annexed
file is expected to fail, unless annex.skipunknown were globally
overridden to true. So this test that used to succeed should probably
fail, but it seems better to just remove it than expect it to fail.
yarikoptic [Mon, 28 Feb 2022 22:42:34 +0000 (22:42 +0000)]
Added a comment: question about backend
yarikoptic [Mon, 28 Feb 2022 20:50:06 +0000 (20:50 +0000)]
initial report on a very slow git annex test on discovery
Joey Hess [Mon, 28 Feb 2022 19:42:33 +0000 (15:42 -0400)]
commet
yarikoptic [Mon, 28 Feb 2022 18:48:51 +0000 (18:48 +0000)]
Added a comment
anamyk [Mon, 28 Feb 2022 18:13:29 +0000 (18:13 +0000)]
Added a comment
Joey Hess [Mon, 28 Feb 2022 17:37:05 +0000 (13:37 -0400)]
update
Joey Hess [Mon, 28 Feb 2022 17:26:43 +0000 (13:26 -0400)]
open related todo