puzzling bug

This commit is contained in:
Joey Hess 2024-09-20 16:53:40 -04:00
parent a194e88a62
commit 2daa8a8f21
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -30,6 +30,43 @@ Planned schedule of work:
* Currently working in [[todo/proving_preferred_content_behavior]]
* sim: updateSimRepoState turns out to call preferredContentSet repeatedly
and also preferred content changes made part way through the sim
seem to not take effect. Test case is this, which should not end
by getting a file into bar that it no longer wants, and which was just
dropped.
Note that this test case does not behave this way if the final
step is run in a separate git-annex sim command. It's only when
it's run by git-annex sim start that it does.
seed 5338836154135478106
init foo
init bar
connect foo <-> bar
addmulti 10 testfile 100.0kB 10.0MB foo
wanted bar anything
wanted foo anything
step 20
present bar 6testfile
present bar 7testfile
present bar 9testfile
present bar 3testfile
present bar 10testfile
present bar 8testfile
present bar 2testfile
present bar 5testfile
present bar 1testfile
present bar 4testfile
step 3
wanted bar nothing
step 3
notpresent bar 7testfile
notpresent bar 4testfile
notpresent bar 9testfile
step 1
present bar 9testfile
* bug sim step does not detect stabalization. Seems to keep getting files
that are already in a repo.