Joey Hess
6df101f8b4
added sim of sizebalanced in a splitbrain situation
2024-09-23 15:04:52 -04:00
Joey Hess
6b040ed32d
allow complex shell commands
2024-09-23 15:04:33 -04:00
Joey Hess
5a4bee24b8
fix sizebalanced empty size bug
...
Fix bug that prevented anything being stored in an empty repository whose
preferred content expression uses sizebalanced.
2024-09-23 14:30:18 -04:00
Joey Hess
1aacf7ece4
adds sims collection
2024-09-23 13:43:55 -04:00
Joey Hess
7bc8c2bfeb
sim visit as first-class command
...
Allows using it in a sim file.
2024-09-23 13:09:35 -04:00
Joey Hess
6cf9a101b8
sim: Fix size tracking for balanced preferred content
2024-09-23 12:42:32 -04:00
Joey Hess
a6b8082119
update
2024-09-23 09:38:56 -04:00
AaronBrooks
edc02432ef
removed
2024-09-22 22:21:32 +00:00
AaronBrooks
8857265224
Added a comment: reinject files -- more efficiently
2024-09-22 22:21:05 +00:00
AaronBrooks
6ee1a98071
Added a comment: reinject files -- more efficiently
2024-09-22 22:19:13 +00:00
Joey Hess
e9d4cef10f
sim: fix state loss bug
2024-09-20 18:11:37 -04:00
Joey Hess
2daa8a8f21
puzzling bug
2024-09-20 16:53:40 -04:00
Joey Hess
a194e88a62
invalidate caches after log changes
...
This seems like something Annex.Sim would need to happen. And generally
a really good idea.
2024-09-20 16:52:17 -04:00
Joey Hess
f5f7b4a936
avoid adding redundant present/notpresent to sim history
2024-09-20 15:45:05 -04:00
Joey Hess
e9c59eceb8
bugfixes
...
sim stabilization works now
2024-09-20 15:39:52 -04:00
Joey Hess
19b966f0fd
sim: better step
...
On each step, find all the actions that could be done, and pick one of them
to do.
Should detect stability, but that is broken.
2024-09-20 15:23:34 -04:00
Joey Hess
31679e3e9f
set simRootDirectory on restore
...
It's a relative directory and the cwd may be different. Or the repo
could have been moved.
2024-09-20 15:11:55 -04:00
Joey Hess
bab330de33
remove sim log file
2024-09-20 15:03:54 -04:00
Joey Hess
24b3aed84a
update
2024-09-20 11:59:35 -04:00
Joey Hess
fd24d0d66f
update
2024-09-20 11:26:40 -04:00
Joey Hess
7c10d6846c
update
2024-09-20 11:05:57 -04:00
Joey Hess
f061ae92fb
sim: implement addtree
2024-09-20 10:34:52 -04:00
Joey Hess
5e51e7c339
comment
2024-09-18 09:08:42 -04:00
Joey Hess
29d8429779
sim: tested concurrency over actions
...
This demonstrates concurrent behavior that looks right. And with a
random seed, the results are deterministic.
init foo
init bar
init backup
connect foo <-> bar
connect foo <-> backup
addmulti 10 testfiles 1mb 1gb foo backup
action foo gitpull backup
wanted foo nothing
wanted bar anything
wanted backup anything
action bar gitpull foo
action foo dropunwanted while action bar getwanted foo
2024-09-17 14:39:53 -04:00
Joey Hess
6751f23978
sim: fix get bug
...
When getting from a remote, have to check that the repo doing the
getting thinks the remote contains the key, but also that the remote
actually does. Before this bug fix, it would get from a repo that used
to have the key, but that had dropped it since the last git pull.
2024-09-17 14:29:49 -04:00
Joey Hess
e568ac96b7
record initial seed in sim log
...
Unless the log starts with a command that records a seed.
2024-09-17 13:49:50 -04:00
Joey Hess
02f0996e25
git-annex sim log
2024-09-17 13:43:11 -04:00
Joey Hess
b85965cb3c
sim: implement dropunwantedfrom
2024-09-17 13:35:35 -04:00
Joey Hess
eb5fad4e79
fix ActionDropUnwanted
...
Now tested working
2024-09-17 11:55:57 -04:00
Joey Hess
e0128b6362
sim: add missing parser for action sendwanted
2024-09-17 11:40:40 -04:00
Joey Hess
ae19ad0fa1
sim: fix changing settings bug
2024-09-17 11:38:26 -04:00
Joey Hess
4c7db31c20
addmulti
2024-09-17 11:22:14 -04:00
Joey Hess
2a16796a1c
move pull/push/sync into getSimActionComponents
...
As well as being a more pleasing implementation than I managed
yesterday, this allows for those actions to be run concurrently in the
sim.
2024-09-17 10:54:44 -04:00
Joey Hess
7d27a8ea1a
sim concurrency
2024-09-17 10:37:22 -04:00
Joey Hess
3b7e3cb2f4
add
2024-09-17 08:31:55 -04:00
Joey Hess
92c10045d1
implement ActionPull/Pull/Sync
...
Somewhat unsatisfying implementation, but all the alternatives were
worse.
2024-09-16 16:58:03 -04:00
Joey Hess
c420ec9364
sim: add action repo sync command
2024-09-16 16:48:21 -04:00
Joey Hess
2cbd3fb26b
sim command fixes
2024-09-12 16:39:44 -04:00
Joey Hess
52891711d2
git-annex sim command is working
...
Had to add Read instances to Key and NumCopies and some other similar
types. I only expect to use those in serializing a sim. Of course, this
risks that implementation changes break reading old data. For a sim,
that would not be a big problem.
2024-09-12 16:10:52 -04:00
mike@2d6d71f56ce2a992244350475251df87c26fe351
a2895c2dac
Added a comment
2024-09-12 15:40:24 +00:00
nobodyinperson
f8d1022db0
Added a comment: 👍 +1 for encrypting the annex on regular git remotes
2024-09-12 14:51:20 +00:00
Joey Hess
7e8274c6b7
implemented ActionDropUnwanted
...
Not tested yet. This emulates the same checking that is done when
dropping. Note that when dropping from a special remote it is not able
to make a locked copy.
2024-09-12 10:44:31 -04:00
Joey Hess
68e52f6ec0
convert simRepoState to use UUID as key
2024-09-12 10:29:32 -04:00
m.szczepanik@8dd0314f20fa09be99ee3903d1c04a80eafbd849
3a03ed42e6
2024-09-12 12:13:06 +00:00
mike@2d6d71f56ce2a992244350475251df87c26fe351
0f2754ec3c
Added a comment
2024-09-12 05:22:18 +00:00
Joey Hess
7b931df475
fully preserve input format of connect and disconnect commands
...
Just lifted the sim file as a DSL into the type level for that.
2024-09-11 21:01:13 -04:00
yarikoptic
28d207bc57
initial report on that addunlocked is not respected during import
2024-09-11 20:47:45 +00:00
Joey Hess
f381b457f2
sim file parser and generator
...
The generator doesn't emit the best possible connect commands,
but it does output something valid. Eg, an input like:
connect A <-> B <-> C <-> D
becomes:
connect A <-> B <-> C
connect C <-> D
Also:
connect A -> B <- C
becomes:
connect A -> B
connect C -> B
Which could be improved.
Also disconnect commands are not prettified at all, but probably there's
no reason to.
2024-09-11 15:59:13 -04:00
Joey Hess
84bbbeae9d
started on sim file parser
2024-09-11 11:53:25 -04:00
Joey Hess
c4609a73f2
implemented ActionSendWanted
...
The simulation is nearly finished. Only CommandAddTree and dropping
remain to do.
2024-09-11 11:09:30 -04:00