Commit graph

46718 commits

Author SHA1 Message Date
Joey Hess
00cd389161
Merge branch 'master' of ssh://git-annex.branchable.com 2025-03-26 10:03:03 -04:00
jnkl
42e285c81e Added a comment 2025-03-25 07:44:00 +00:00
kyle
e2efbed7d2 10.20250320 build error when assistant is disabled 2025-03-25 01:56:20 +00:00
nobodyinperson
1116eed6f5 Added a comment: only for unlocked files? 2025-03-24 18:37:31 +00:00
octvs@17a99a7aaeb0c0e0a2375e14807b138740ba34e9
75ad64b27c removed 2025-03-24 17:56:57 +00:00
octvs@17a99a7aaeb0c0e0a2375e14807b138740ba34e9
3cd3be80af Added a comment: failing with Operation not petmitted 2025-03-24 17:56:46 +00:00
octvs@17a99a7aaeb0c0e0a2375e14807b138740ba34e9
b6a0ac99df Added a comment: failing with Operation not petmitted 2025-03-24 17:56:39 +00:00
jnkl
2d9453724d Added a comment 2025-03-23 11:20:31 +00:00
jnkl
494a101eba 2025-03-22 21:29:19 +00:00
Joey Hess
0bc1bebe05
todo 2025-03-22 09:23:03 -04:00
Joey Hess
d0b5a09b0e
deal with NoUUID in checkCanProxy
updatecluster, updateproxy: When a remote that has no annex-uuid is
configured as annex-cluster-node, warn and avoid writing bad data to the
git-annex branch.

The proxy.log and cluster.log end up unparseable when a NoUUID gets written
to them.
2025-03-21 12:29:44 -04:00
Joey Hess
ec43b25fb7
add news item for git-annex 10.20250320 2025-03-20 13:11:10 -04:00
Joey Hess
4c8577d3a2
releasing package git-annex version 10.20250320 2025-03-20 13:11:03 -04:00
Joey Hess
74457b6b93
findcompute --inputs
Useful for eg, generating dependency graphs.
2025-03-19 15:39:05 -04:00
Joey Hess
a669b7f3ec
preparing for release tomorrow 2025-03-19 14:47:00 -04:00
Joey Hess
e37bf6351f
avoid shadowing warning 2025-03-19 14:46:24 -04:00
Joey Hess
b158e067c0
avoid reloading trust log 2025-03-19 09:44:44 -04:00
Joey Hess
70cb93a66b
checkPresent of compute remote checks inputs are available
If an input file has been lost from all repositories, it is no longer
possible to compute the output. This will avoid dropping content that
was computed in such a situation, as well as making git-annex fsck --from
the compute remote do its usual thing when content has gone missing.

This implementation avoids recursing forever if there is a cycle,
which should not be possible anyway.

Note the use of RemoteStateHandle as a constructor here suggests that
this may not handle sameas remotes right, since usually a
RemoteStateHandle is constructed using the sameas uuid for a sameas
remote. That assumes a compute remote can even have or be a sameas remote.
Which doesn't seem to make sense, so I have not thought through what might
happen here in detail.
2025-03-18 14:13:13 -04:00
Joey Hess
2466677b7b
update 2025-03-18 13:00:54 -04:00
Joey Hess
bcfd554a0f
findcomputed: New command, displays information about computed files. 2025-03-18 12:55:48 -04:00
Joey Hess
1b23823787
update 2025-03-17 16:02:02 -04:00
Joey Hess
d74d2d5d91
--json for addcomputed and recompute
Not very useful, but it does work.
2025-03-17 15:51:43 -04:00
Joey Hess
2d60ce4803
record fscked files in fsck db by default
Remember the files that are checked, so a later run with --more will
skip them, without needing to use --incremental.
2025-03-17 15:34:08 -04:00
Joey Hess
f775c9643f
Merge branch 'master' of ssh://git-annex.branchable.com 2025-03-17 14:33:11 -04:00
Joey Hess
85fe283c05
decided to leave message as-is
"getting input <file> from <remote>"  is talking about the original
input filename. I think that's ok.
2025-03-17 14:31:43 -04:00
Joey Hess
f835919e40
decided addcomputed will not support annex.smallfiles
If it did, recompute would need to somehow support recomputing
non-annexed files.

And, annex.smallfiles is typically used for configuration files or
source code kind of things, where the user doesn't want it to be an
annexed file. Computed artifacts are not likely that kind of thing.

Also, git-annex importfeed is an example of something that does support
annex.addunlocked, but does not support annex.smallfiles.
2025-03-17 14:27:56 -04:00
Joey Hess
23538ea17b
annex.addunlocked support for git-annex compute
And for git-annex recompute, add the file unlocked when the original is
unlocked.
2025-03-17 14:26:09 -04:00
Joey Hess
de6e9f5beb
support building with old version of bytestring 2025-03-14 16:44:27 -04:00
Joey Hess
3dd41909dd
fix comment typo 2025-03-14 11:36:40 -04:00
Atemu
73a066c963 2025-03-14 12:32:04 +00:00
Atemu
08b7f10d56 2025-03-14 12:14:03 +00:00
Atemu
cc99190baa 2025-03-14 12:11:19 +00:00
msz
4f13b33bc0 2025-03-12 19:50:01 +00:00
msz
28ca34e182 Added a comment 2025-03-12 19:44:23 +00:00
Joey Hess
e505ade963
add compute tip 2025-03-12 13:43:50 -04:00
Joey Hess
a673fc7cfd
recompute: stage new version of file in git
When writing doc/tips/computing_annexed_files.mdwn, I noticed
that a recompute --reproducible followed by a drop and a re-get did not
actually test if the file could be reproducible computed again.

Turns out that get and drop both operate on staged files. If there is an
unstaged modification in the work tree, that's ignored. Somewhat
surprisingly, other commands like info do operate on staged files. So
behavior is inconsistent, and fairly surprising really, when there are
unstaged modifications to files.

Probably this is rarely noticed because `git-annex add` is used to add a
new version of a file, and then it's staged. Or `git mv` is used to move
a file, rather than `mv` of a file over top of an existing file. So it's
uncommon to have an unstaged annexed file in a worktree.

It might be worth making things more consistent, but that's out of scope
for what I'm working on currently.

Also, I anticipate that supporting unlocked files with recompute will
require it to stage changes anyway.

So, make recompute stage the new version of the file.

I considered having recompute refuse to overwrite an existing staged
file. After all, whatever version was staged before will get lost when
the new version is staged over top of it. But, that's no different than
`git-annex addcomputed` being run with the name of an existing staged
file. Or `git-annex add` being run with a new file content when there is
an existing staged file. Or, for that matter, `git add` being ran with a
new content when there is an existing staged file.
2025-03-12 13:42:00 -04:00
Joey Hess
21b45da406
todo 2025-03-12 12:11:39 -04:00
Joey Hess
0712ae020c
fix recompute --reproducible run on a VURL key
This avoids "Cannot generate a key for backend VURL", and makes it use
the usual hashing backend.
2025-03-12 11:48:29 -04:00
Joey Hess
0f998f0698
improve 2025-03-11 12:54:34 -04:00
Joey Hess
ea9a79ae81
comment 2025-03-11 12:53:32 -04:00
Joey Hess
02c894958b
Merge branch 'master' of ssh://git-annex.branchable.com 2025-03-11 12:42:10 -04:00
Joey Hess
5f269513af
buffer responses to compute programs in a TQueue
This avoids a potential problem where the program sends several INPUT
before reading responses, so flushing the respose to the pipe could
block. It's unlikely, but seemed worth making sure it can't happen.
2025-03-11 12:40:21 -04:00
Joey Hess
0ee644b417
close off newline injection attacks against compute special remote protocol 2025-03-11 12:04:58 -04:00
Joey Hess
73a8ba5307
update 2025-03-11 11:53:14 -04:00
Joey Hess
5760a15c7c
avoid error on missing compute state in checkKey
This improves eg `git-annex move --to` a compute remote that does not
contain the key. Rather than erroring with "Missing compute state" when
it checks if the key is in the remote, it proceeds to trying to store to
it, which has a nice error message.
2025-03-11 11:49:47 -04:00
Joey Hess
0477a8d098
add INPUT-REQUIRED
Used by git-annex-compute-singularity to make addcomputed --fast work.

Also, simplified git-annex-compute-singularity; there is no need to hard
link the container into place. singularity does not care about the
extension of the container, so can just pass it the annex object file.
2025-03-11 11:46:31 -04:00
yarikoptic
89534f2890 Added a comment: just thinking out loud 2025-03-11 15:15:15 +00:00
Joey Hess
bb0bc078fc
Merge branch 'master' of ssh://git-annex.branchable.com 2025-03-11 11:13:21 -04:00
Joey Hess
b02aca8627
reorg and expand security section 2025-03-11 11:12:59 -04:00
yarikoptic
cb9c79c26c Added a comment 2025-03-11 15:09:20 +00:00