]> dgit.raspbian.org Git - git-annex.git/log
git-annex.git
22 months agoadd proxied uuids to http server state map
Joey Hess [Wed, 20 Nov 2024 17:18:25 +0000 (13:18 -0400)]
add proxied uuids to http server state map

This fixes support for proxying after last commit broke it.

Note that withP2PConnections is called at server startup, and so only
proxies seen at that point will appear in the map and be used. It was
already the case that a proxy added after p2phttp was running would not
be served.

I think that is possibly a bug, but at least this commit doesn't
introduce the problem, though it might make it harder to fix it.

As bugs go, it's probably not a big deal, because after all,
git configs needs to be set in the local repository, followed by
git-annex updateproxy being run, to set up proxying. If someone is doing
that, they can restart their http server I suppose.

22 months agop2pHttpApp with a map of UUIDs to server states
Joey Hess [Wed, 20 Nov 2024 16:51:25 +0000 (12:51 -0400)]
p2pHttpApp with a map of UUIDs to server states

This is early groundwork for making p2phttp support serving multiple
repositories from a single daemon.

So far only 1 repository is served still. And this commit breaks support
for proxying!

22 months agoreuse http url password for p2phttp url when on same host
Joey Hess [Tue, 19 Nov 2024 19:27:26 +0000 (15:27 -0400)]
reuse http url password for p2phttp url when on same host

When remote.name.annexUrl is an annex+http(s) url, that uses the same
hostname as remote.name.url, which is itself a http(s) url, they are
assumed to share a username and password.

This avoids unnecessary duplicate password prompts.

22 months agoupdate
Joey Hess [Tue, 19 Nov 2024 18:42:50 +0000 (14:42 -0400)]
update

22 months agocomments
Joey Hess [Tue, 19 Nov 2024 18:26:47 +0000 (14:26 -0400)]
comments

22 months agotag INM7
Joey Hess [Tue, 19 Nov 2024 18:12:11 +0000 (14:12 -0400)]
tag INM7

22 months agocomment
Joey Hess [Tue, 19 Nov 2024 17:12:43 +0000 (13:12 -0400)]
comment

22 months agoskip git-remote-annex tests on windows
Joey Hess [Tue, 19 Nov 2024 17:01:12 +0000 (13:01 -0400)]
skip git-remote-annex tests on windows

The NullSoftInstaller does not install git-remote-annex. For that
matter, it does not install git-annex-shell either. I don't know quite
how it would make sense to do so, without hard links.
It could contain 3 copies of the same binary.

22 months agosplit git-remote-annex test
Joey Hess [Tue, 19 Nov 2024 16:54:23 +0000 (12:54 -0400)]
split git-remote-annex test

22 months agoretitle OSX bug
Joey Hess [Tue, 19 Nov 2024 16:46:01 +0000 (12:46 -0400)]
retitle OSX bug

22 months agogit-remote-annex: Fix cloning from a special remote on a crippled filesystem
Joey Hess [Tue, 19 Nov 2024 16:43:51 +0000 (12:43 -0400)]
git-remote-annex: Fix cloning from a special remote on a crippled filesystem

Not initializing and so deleting the bundles only causes a little more work
on the first git fetch.

22 months agoadd git-remote-annex as a dep of the test target
Joey Hess [Tue, 19 Nov 2024 16:13:13 +0000 (12:13 -0400)]
add git-remote-annex as a dep of the test target

22 months agoinitial report on failing tests
yarikoptic [Mon, 18 Nov 2024 13:55:55 +0000 (13:55 +0000)]
initial report on failing tests

22 months agoupdate
Joey Hess [Fri, 15 Nov 2024 20:36:43 +0000 (16:36 -0400)]
update

22 months agoclose
Joey Hess [Fri, 15 Nov 2024 19:34:03 +0000 (15:34 -0400)]
close

22 months agocomments
Joey Hess [Fri, 15 Nov 2024 19:31:49 +0000 (15:31 -0400)]
comments

22 months agoavoid storing same filename repeatedly in versioned import from S3
Joey Hess [Fri, 15 Nov 2024 19:11:56 +0000 (15:11 -0400)]
avoid storing same filename repeatedly in versioned import from S3

Logically, this should make it need a lot less memory when files have
been changed many times. In my tests, it didn't seem to change memory
use at all. Unsure why, it is working. It's possible the Response is not
getting garbage collected due to pinning. But as far as I can see, all
parts of it that are retained get copied in a way that won't keep the
whole thing pinned in memory.

22 months agouse 80% less memory when importing from a versioned S3 bucket
Joey Hess [Fri, 15 Nov 2024 18:19:02 +0000 (14:19 -0400)]
use 80% less memory when importing from a versioned S3 bucket

Same idea as commit eb714c107ba81d805458c770db8d4f22ae12a077, but even
better, because a lot of the response is DeleteMarker, that can be garbage
collected now.

22 months agouse 20% less memory when listing unversioned S3 bucket
Joey Hess [Fri, 15 Nov 2024 17:24:13 +0000 (13:24 -0400)]
use 20% less memory when listing unversioned S3 bucket

22 months ago(no commit message)
lell [Fri, 15 Nov 2024 09:27:28 +0000 (09:27 +0000)]

22 months ago(no commit message)
lell [Fri, 15 Nov 2024 09:26:56 +0000 (09:26 +0000)]

22 months ago(no commit message)
lell [Fri, 15 Nov 2024 09:25:32 +0000 (09:25 +0000)]

22 months agoAdded a comment
matrss [Fri, 15 Nov 2024 08:54:07 +0000 (08:54 +0000)]
Added a comment

22 months ago(no commit message)
lell [Fri, 15 Nov 2024 08:44:55 +0000 (08:44 +0000)]

22 months agofixed
Joey Hess [Thu, 14 Nov 2024 20:16:56 +0000 (16:16 -0400)]
fixed

22 months agoS3 use last Key when there is no Marker element
Joey Hess [Thu, 14 Nov 2024 20:09:27 +0000 (16:09 -0400)]
S3 use last Key when there is no Marker element

Fix infinite loop and memory blowup when importing from an unversioned S3
bucket that is large enough to need pagination.

I don't think there actually ever will be a Marker element, a delimiter is
not set.

Probably this code path was never tested with pagination! Also the aws
library's lack of any docs made it easy to mess up.

Versioned buckets seem to not have the same problem. The API docs for
ListObjectVersions say that NextKeyMarker will always be provided when
paginating.

22 months agocomments
Joey Hess [Thu, 14 Nov 2024 19:27:00 +0000 (15:27 -0400)]
comments

22 months agocomment
Joey Hess [Thu, 14 Nov 2024 18:20:05 +0000 (14:20 -0400)]
comment

22 months agoclose
Joey Hess [Thu, 14 Nov 2024 17:55:55 +0000 (13:55 -0400)]
close

22 months agoMerge branch 'checkbucketversioning'
Joey Hess [Thu, 14 Nov 2024 17:52:19 +0000 (13:52 -0400)]
Merge branch 'checkbucketversioning'

22 months agoS3: Send git-annex or other configured User-Agent.
Joey Hess [Wed, 13 Nov 2024 20:10:37 +0000 (16:10 -0400)]
S3: Send git-annex or other configured User-Agent.

--user-agent is the only way to configure it currently

(Needs aws-0.24.3)

22 months agofix
Joey Hess [Wed, 13 Nov 2024 20:02:55 +0000 (16:02 -0400)]
fix

22 months agoresponse
Joey Hess [Wed, 13 Nov 2024 18:42:03 +0000 (14:42 -0400)]
response

22 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 13 Nov 2024 18:12:37 +0000 (14:12 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

22 months agocomment
Joey Hess [Wed, 13 Nov 2024 18:12:19 +0000 (14:12 -0400)]
comment

22 months agoAdded a comment
yarikoptic [Wed, 13 Nov 2024 18:11:58 +0000 (18:11 +0000)]
Added a comment

22 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 13 Nov 2024 18:09:51 +0000 (14:09 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

22 months agoadd: When adding a dotfile as a non-large file, mention that it's a dotfile
Joey Hess [Wed, 13 Nov 2024 18:09:24 +0000 (14:09 -0400)]
add: When adding a dotfile as a non-large file, mention that it's a dotfile

This is to reduce user confusion when their annex.largefiles matches it,
or is not set.

Note that, when annex.dotfiles is set, but a dotfile is not matched by
annex.largefiles, the "non-large file" message will be displayed. That
makes sense because whether the file is a dotfile does not matter with that
configuration.

Also, this slightly optimised the annex.dotfiles path in passing,
by avoiding the slight slowdown caused by the check added in commit
876d5b6c6fed7d540767783eb3d14469f41bd1c2 in that case.

22 months agoAdded a comment
yarikoptic [Wed, 13 Nov 2024 18:08:59 +0000 (18:08 +0000)]
Added a comment

22 months agoAdded a comment
yarikoptic [Wed, 13 Nov 2024 17:57:58 +0000 (17:57 +0000)]
Added a comment

22 months agoadd: Consistently treat files in a dotdir as dotfiles, even when ran inside that...
Joey Hess [Wed, 13 Nov 2024 17:42:52 +0000 (13:42 -0400)]
add: Consistently treat files in a dotdir as dotfiles, even when ran inside that dotdir

Assistant and smudge also updated.

This does add a small amount of extra work, getting the TopFilePath.
Not enough to be concerned by.

Also improve documentation to make clear that files inside dotdirs are
treated as dotfiles.

Sponsored-by: Eve on Patreon
22 months agofix link
Joey Hess [Wed, 13 Nov 2024 16:59:22 +0000 (12:59 -0400)]
fix link

22 months agodotfile
Joey Hess [Wed, 13 Nov 2024 16:57:54 +0000 (12:57 -0400)]
dotfile

22 months agoAdded a comment
datamanager [Wed, 13 Nov 2024 00:30:25 +0000 (00:30 +0000)]
Added a comment

22 months agoremoved
datamanager [Wed, 13 Nov 2024 00:30:05 +0000 (00:30 +0000)]
removed

22 months agoremoved
datamanager [Wed, 13 Nov 2024 00:29:31 +0000 (00:29 +0000)]
removed

22 months agoAdded a comment
datamanager [Wed, 13 Nov 2024 00:29:14 +0000 (00:29 +0000)]
Added a comment

22 months agoAdded a comment
datamanager [Wed, 13 Nov 2024 00:29:05 +0000 (00:29 +0000)]
Added a comment

22 months ago(no commit message)
svw [Tue, 12 Nov 2024 21:18:44 +0000 (21:18 +0000)]

22 months agoinitial report on annex import slowing to crawl on dandiarchive/dandisets/
yarikoptic [Tue, 12 Nov 2024 20:11:25 +0000 (20:11 +0000)]
initial report on annex import  slowing to crawl on dandiarchive/dandisets/

22 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 12 Nov 2024 18:34:05 +0000 (14:34 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

22 months agoimplemented
Joey Hess [Tue, 12 Nov 2024 18:33:42 +0000 (14:33 -0400)]
implemented

22 months agoS3: Support versioning=yes with a readonly bucket.
Joey Hess [Tue, 12 Nov 2024 18:32:23 +0000 (14:32 -0400)]
S3: Support versioning=yes with a readonly bucket.

Needs aws-0.24.3.

22 months agocomments
Joey Hess [Tue, 12 Nov 2024 18:31:28 +0000 (14:31 -0400)]
comments

22 months ago(no commit message)
Stanley [Tue, 12 Nov 2024 09:08:54 +0000 (09:08 +0000)]

22 months agoAdded a comment
yarikoptic [Mon, 11 Nov 2024 22:18:37 +0000 (22:18 +0000)]
Added a comment

22 months agoAdded a comment
yarikoptic [Mon, 11 Nov 2024 22:11:13 +0000 (22:11 +0000)]
Added a comment

22 months agocomment
Joey Hess [Mon, 11 Nov 2024 20:41:50 +0000 (16:41 -0400)]
comment

22 months agoresponse
Joey Hess [Mon, 11 Nov 2024 18:32:44 +0000 (14:32 -0400)]
response

22 months agoresponse
Joey Hess [Mon, 11 Nov 2024 18:21:44 +0000 (14:21 -0400)]
response

22 months agovpop: Only update state after successful checkout
Joey Hess [Mon, 11 Nov 2024 18:15:51 +0000 (14:15 -0400)]
vpop: Only update state after successful checkout

If checkout fails for some reason, they're still in a view, and should be
able to vpop again.

22 months agoclose
Joey Hess [Mon, 11 Nov 2024 17:47:02 +0000 (13:47 -0400)]
close

22 months agotest git-remote-annex
Joey Hess [Mon, 11 Nov 2024 17:40:59 +0000 (13:40 -0400)]
test git-remote-annex

The added test case catches the reversion fixed in 700be6c38f29328812c17048c077c9bec7d8d8ad

22 months agogit-remote-annex: Fix a reversion
Joey Hess [Mon, 11 Nov 2024 16:42:26 +0000 (12:42 -0400)]
git-remote-annex: Fix a reversion

Introduced in version 10.20241031 that broke cloning from a special remote

retrieveKeyFile changed to use createAnnexDirectory, which means that the
path passed to it needs to be under .git

git-remote-annex is probably the only thing in git-annex where that was not
the case. And there's no real reason it cannot be the case with it either.
Just use withOtherTmp.

22 months agoanalysis
Joey Hess [Mon, 11 Nov 2024 16:25:56 +0000 (12:25 -0400)]
analysis

22 months agobreak out new bug report
Joey Hess [Mon, 11 Nov 2024 16:02:41 +0000 (12:02 -0400)]
break out new bug report

22 months agocorrect name of createDirectoryUnder in error message
Joey Hess [Mon, 11 Nov 2024 15:48:23 +0000 (11:48 -0400)]
correct name of createDirectoryUnder in error message

22 months ago(no commit message)
Atemu [Mon, 11 Nov 2024 06:40:16 +0000 (06:40 +0000)]

22 months agoAdded a comment: Follow-up
AlexPraga [Thu, 7 Nov 2024 21:46:32 +0000 (21:46 +0000)]
Added a comment: Follow-up

22 months ago(no commit message)
yarikoptic [Thu, 7 Nov 2024 21:39:42 +0000 (21:39 +0000)]

22 months agoadd empty line so ``` is formatted correctly
yarikoptic [Thu, 7 Nov 2024 21:39:17 +0000 (21:39 +0000)]
add empty line so ``` is formatted correctly

22 months agoinitial remote on need to check if versioning already enabled and thus avoid PUT
yarikoptic [Thu, 7 Nov 2024 21:38:35 +0000 (21:38 +0000)]
initial remote on need to check if versioning already enabled and thus avoid PUT

22 months agoremoved
marc+bugs@bd1c733f9e5bee7c2279a9c649e80fac0e540c14 [Thu, 7 Nov 2024 14:17:33 +0000 (14:17 +0000)]
removed

22 months agoAdded a comment: Examples
marc+bugs@bd1c733f9e5bee7c2279a9c649e80fac0e540c14 [Thu, 7 Nov 2024 14:13:27 +0000 (14:13 +0000)]
Added a comment: Examples

22 months agoAdded a comment: cannot "unregister" fully
yarikoptic [Tue, 5 Nov 2024 20:59:16 +0000 (20:59 +0000)]
Added a comment: cannot "unregister" fully

22 months agoAdded a comment: Re: corruption using git-annex-remote-rclone
mike@2d6d71f56ce2a992244350475251df87c26fe351 [Tue, 5 Nov 2024 15:43:10 +0000 (15:43 +0000)]
Added a comment: Re: corruption using git-annex-remote-rclone

22 months agoinitial report on keeping adding to git
yarikoptic [Mon, 4 Nov 2024 17:52:14 +0000 (17:52 +0000)]
initial report on keeping adding to git

22 months agoAdded a comment
matrss [Mon, 4 Nov 2024 14:52:56 +0000 (14:52 +0000)]
Added a comment

22 months agoAdded a comment: possible fix
psxvoid [Mon, 4 Nov 2024 13:54:23 +0000 (13:54 +0000)]
Added a comment: possible fix

22 months agoAdded a comment
yarikoptic [Sun, 3 Nov 2024 14:48:03 +0000 (14:48 +0000)]
Added a comment

22 months ago(no commit message)
psxvoid [Sun, 3 Nov 2024 14:09:34 +0000 (14:09 +0000)]

22 months ago(no commit message)
psxvoid [Sun, 3 Nov 2024 14:07:27 +0000 (14:07 +0000)]

22 months agoremoved
psxvoid [Sun, 3 Nov 2024 13:45:48 +0000 (13:45 +0000)]
removed

22 months agoAdded a comment: using fuse and nextcloud
psxvoid [Sun, 3 Nov 2024 13:44:57 +0000 (13:44 +0000)]
Added a comment: using fuse and nextcloud

22 months agoAdded a comment: using fuse and nextcloud
psxvoid [Sun, 3 Nov 2024 13:44:44 +0000 (13:44 +0000)]
Added a comment: using fuse and nextcloud

22 months agoAdded a comment
yarikoptic [Fri, 1 Nov 2024 02:29:23 +0000 (02:29 +0000)]
Added a comment

22 months agoscaling
Joey Hess [Thu, 31 Oct 2024 21:27:13 +0000 (17:27 -0400)]
scaling

22 months agoupdate
Joey Hess [Thu, 31 Oct 2024 21:25:59 +0000 (17:25 -0400)]
update

22 months agoadd news item for git-annex 10.20241031
Joey Hess [Thu, 31 Oct 2024 21:20:22 +0000 (17:20 -0400)]
add news item for git-annex 10.20241031

22 months agoreleasing package git-annex version 10.20241031
Joey Hess [Thu, 31 Oct 2024 21:20:13 +0000 (17:20 -0400)]
releasing package git-annex version 10.20241031

22 months agooops, add the new todos meant to be in prev commit
Joey Hess [Wed, 30 Oct 2024 18:50:24 +0000 (14:50 -0400)]
oops, add the new todos meant to be in prev commit

22 months agosplit up remaining items from todo/git-annex_proxies and close it!
Joey Hess [Wed, 30 Oct 2024 18:49:54 +0000 (14:49 -0400)]
split up remaining items from todo/git-annex_proxies and close it!

22 months agoprepare for release tomorrow
Joey Hess [Wed, 30 Oct 2024 18:08:47 +0000 (14:08 -0400)]
prepare for release tomorrow

22 months agolink
Joey Hess [Wed, 30 Oct 2024 18:08:01 +0000 (14:08 -0400)]
link

22 months agofix link
Joey Hess [Wed, 30 Oct 2024 18:06:51 +0000 (14:06 -0400)]
fix link

22 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 30 Oct 2024 17:57:19 +0000 (13:57 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

22 months agoDATA-PRESENT working for exporttree=yes remotes
Joey Hess [Wed, 30 Oct 2024 17:51:58 +0000 (13:51 -0400)]
DATA-PRESENT working for exporttree=yes remotes

Since the annex-tracking-branch is pushed first, git-annex has already
updated the export database when the DATA-PRESENT arrives. Which means
that just using checkPresent is enough to verify that there is some file
on the special remote in the export location for the key.

So, the simplest possible implementation of this happened to work!

(I also tested it with chunked specialremotes, which also works, as long
as the chunk size used is the same as the configured chunk size. In that
case, the lack of a chunk log is not a problem. Doubtful this will ever
make sense to use with a chunked special remote though, that gets pretty
deep into re-implementing git-annex.)

Updated the client side upload tip with a missing step, and reorged for clarity.

22 months agofix recording present on the proxy when proxying DATA-PRESENT
Joey Hess [Wed, 30 Oct 2024 17:09:50 +0000 (13:09 -0400)]
fix recording present on the proxy when proxying DATA-PRESENT

Apparently the protoerrhandler parameter never runs. Also the const
typo prevented the type checker from complaining that relayPUTRecord was
being called with 1 less parameter than needed.

So move the relayPUTRecord out of it.

22 months agoFix hang when receiving a large file into a proxied special remote
Joey Hess [Wed, 30 Oct 2024 16:29:37 +0000 (12:29 -0400)]
Fix hang when receiving a large file into a proxied special remote

Only indicate that we're done with the bytestring once it all gets written.
Otherwise, the end of it may get garbage collected before we can process
it, leading to a hang.

This seems to have been introduced in commit
cdc4bd7443a4921dd0573a0babedc51c1d62f918. Which oddly was trying to fix a
very similar problem, but specific to a cluster node. In that commit,
things got out of order, with it signaling it was done with the bytestring
before it has written all of it to the file.

My test case for this bug is a directory special remote
with a file being sent to it via a proxy accessed via ssh or http.
The file was 10 mb, and it hung on the last few kb of it not being
received.

I've also tested this fix in the case of proxying to a cluster node
directory special remote over http, which was the case
cdc4bd7443a4921dd0573a0babedc51c1d62f918 was dealing with.

22 months agoMerge branch 'master' into p2pv4
Joey Hess [Wed, 30 Oct 2024 12:13:49 +0000 (08:13 -0400)]
Merge branch 'master' into p2pv4