Commit graph

46745 commits

Author SHA1 Message Date
Joey Hess
a5b53fa98a
todo 2025-02-25 18:45:55 -04:00
Joey Hess
e702cb94ff
add compute remote uuid to compute state url
Otherwise, two different compute remotes that happen to take the same
input would use the same compute state url. Which seems wrong.
2025-02-25 18:44:40 -04:00
Joey Hess
2b8428bb17
wording 2025-02-25 17:26:28 -04:00
Joey Hess
f8c7cea019
pdate demo program
needed a mkdir
2025-02-25 17:23:38 -04:00
Joey Hess
71e92a509a
use compute program REPRODUCIBLE by default 2025-02-25 17:10:41 -04:00
Joey Hess
233a6954b9
ingest when --unreproducible is used without --fast 2025-02-25 17:04:19 -04:00
Joey Hess
16f529c05f
addcomputed --fast and --unreproducible working
For these, use VURL and URL keys, with an "annex-compute:" URI prefix.

These URL keys will look something like this:

	URL--annex-compute&cbar4,63pconvert,3-f4d3d72cf3f16ac9c3e9a8012bde4462

Generally it's too long so most of it gets md5summed. It's a little
ugly, but it's what fell out of the existing URL key generation
machinery. I did consider special casing to eg
"URL--annex-compute&c4d3d72cf3f16ac9c3e9a8012bde4462". But it seems at
least possibly useful that the name of the file that was computed is
visible and perhaps one or two words of the git-annex compute command
parameters.

Note that two different output files from the same computation will get
the same URL key. And these keys should remain stable.
2025-02-25 16:43:15 -04:00
wolf480@8ad1ccdd08efc303a88f7e88c4e629be6637a44e
0713888c7e 2025-02-25 19:58:35 +00:00
Joey Hess
a154e91513
add git-annex addcomputed
Working pretty well. Mostly. But:

* Does not yet support inputs that are non-annexed files checked into git
* --fast is currently broken (will need something like VURL keys)
* --unreproducible still uses a checksumming backend, so drop and get
  again will likely fail (needs probably to use an URL key or something
  like one)

The compute special remote seems to work pretty well too. Eg,
getting from it works, and dropping content that is present in it works.
2025-02-25 15:50:08 -04:00
wolf480@8ad1ccdd08efc303a88f7e88c4e629be6637a44e
dce725f849 create bug report: creating can't pass spaces in youtube-dl-options 2025-02-25 19:43:44 +00:00
Joey Hess
2e1fe1620e
handle comutations in subdirs of the git repository
Eg, a computation might be run in "foo/" and refer to "../bar" as an
input or output.

So, the subdir is part of the computation state.

Also, prevent input or output of files that are outside the git
repository. Of course, the program can access any file on disk if it
wants to; this is just a guard against mistakes. And it may also be
useful if the program comunicates with something less trusted than it,
eg a container image, so input/output files communicated by that are not
the source of security problems.
2025-02-25 15:08:38 -04:00
Joey Hess
ce05a92ee7
add field desc 2025-02-24 16:41:02 -04:00
Joey Hess
27ed2f151e
updated interface 2025-02-24 16:15:46 -04:00
Joey Hess
556f44d404
update for new interface 2025-02-24 16:15:04 -04:00
Joey Hess
40be51c98a
reimplement using new compute program interface 2025-02-24 16:01:03 -04:00
Joey Hess
921850d05c
support addcomputed --fast
This complicates the interface but it's still simpler to understand than
the old interface.
2025-02-24 13:48:46 -04:00
Joey Hess
490174b068
new compute program interface
This is much more flexible, and also simpler to understand.
2025-02-24 12:44:20 -04:00
Basile.Pinsard
7b815199a0 2025-02-24 16:36:56 +00:00
jnkl
0238af33c1 2025-02-23 20:56:00 +00:00
jnkl
8d97fe962b 2025-02-23 20:55:22 +00:00
jnkl
3e86ce3d14 2025-02-23 20:54:56 +00:00
jnkl
1eaa4a9b86 2025-02-23 20:48:35 +00:00
jnkl
3885544628 2025-02-23 20:25:08 +00:00
Joey Hess
e3023f7b0b
Merge branch 'master' of ssh://git-annex.branchable.com 2025-02-22 10:04:58 -04:00
Joey Hess
0c65129ddc
distribits 2025 2025-02-22 10:04:28 -04:00
Atemu
aa2fbf552b 2025-02-22 10:51:45 +00:00
Atemu
958e9068e3 2025-02-22 10:50:55 +00:00
Atemu
8d19f7f09e 2025-02-22 10:48:23 +00:00
Joey Hess
c86142e22b
fix build with old bytestring
bytestring-0.11.3.0 is the first to have ShortByteString singleton.
Unsure about what version added concat, but mconcat = concat.
2025-02-21 15:34:23 -04:00
Joey Hess
4c032655c2
Merge branch 'master' of ssh://git-annex.branchable.com 2025-02-21 15:31:20 -04:00
Joey Hess
b804f8a3cc
update 2025-02-21 15:09:46 -04:00
Joey Hess
e0b46ef7ad
compute special remote mostly implemented
Except for some of the hard parts: progress displays, incremental
verification, and getting inputs before running a computation.

Untested! In order to test this, git-annex addcomputed needs to be
implemented.
2025-02-21 15:02:53 -04:00
Joey Hess
4f1eea9061
remove unused adjustedBranchRefresh associated file parameter 2025-02-21 14:51:02 -04:00
yarikoptic
b567aac217 map --json wishlist 2025-02-21 15:31:35 +00:00
yarikoptic
0c98cf9a05 initial report about map infinite loop 2025-02-21 15:28:27 +00:00
Joey Hess
e897229088
wip 2025-02-20 17:23:15 -04:00
Joey Hess
4f3d9f8115
update 2025-02-20 13:27:59 -04:00
Joey Hess
c1b53dbbd0
wip 2025-02-20 13:27:47 -04:00
lell
dd4c1c570e Added a comment 2025-02-20 11:00:05 +00:00
Spencer
4413bba69d Added a comment: Confused 2025-02-19 23:22:46 +00:00
Spencer
4414e97b9b Added a comment: For Those Who Stumble Here 2025-02-19 23:08:42 +00:00
Joey Hess
a2fa2a8c5f
update 2025-02-19 16:03:34 -04:00
Joey Hess
2f11c65491
comments 2025-02-19 15:14:52 -04:00
Joey Hess
b5319ec575
documentation for compute remote and associated commands
None of this is implemented yet.
2025-02-19 14:29:18 -04:00
Joey Hess
ace9944d1c
add REPRODUCIBLE 2025-02-19 14:16:36 -04:00
Joey Hess
f52385f63d
optional and required inputs and some other changes 2025-02-19 12:47:32 -04:00
Joey Hess
f4c3fdeaed
improved draft design 2025-02-18 15:46:47 -04:00
Joey Hess
9b42f5fe89
improve apiurl description 2025-02-18 14:46:10 -04:00
Joey Hess
d394f0b020
git-lfs apiurl parameter
git-lfs: Added an optional apiurl parameter.

This needs version 1.2.5 of the haskell git-lfs library to be used.
stack.yaml updated to use that.

Note that git-annex enableremote can be used to add apiurl= to an existing
git-lfs special remote. To allow unsetting the apiurl and instead use
the probed url, support enableremote with apiurl set to an empty string.

Sponsored-by: Luke T. Shumaker
2025-02-18 14:11:21 -04:00
sharad
dcf2f71696 Added a comment: Faced same issue for long time 2025-02-17 19:30:28 +00:00