Skip to content

cli/tests: Wait for seed discovery after clone - #565

Open
Xeonacid wants to merge 1 commit into
radicle-dev:masterfrom
Xeonacid:cli/tests-wait-seed-after-clone
Open

cli/tests: Wait for seed discovery after clone#565
Xeonacid wants to merge 1 commit into
radicle-dev:masterfrom
Xeonacid:cli/tests-wait-seed-after-clone

Conversation

@Xeonacid

@Xeonacid Xeonacid commented Sep 1, 2026

Copy link
Copy Markdown

git_push_canonical clones the repository as Bob and then immediately runs git push as Alice, expecting Synced with 1 seed(s).

clone announces Bob's inventory, but Alice only treats Bob as a seed after that announcement is applied to her routing table. On a slower host the reactor can still be busy when Alice looks up seeds, so she reports No seeds found.

This showed up on native riscv64 (commands::git::git_push_canonical): Alice's Seeds lookup ran before Bob's inventory announcement was applied, returning 0 connected seeds.

Wait until Alice's routing table contains Bob for the repository before pushing. Apply the same wait to the lightweight-tags variant, which uses the same setup.

`git_push_canonical` clones the repository as Bob and then immediately
runs `git push` as Alice, expecting "Synced with 1 seed(s)".

`clone` announces Bob's inventory, but Alice only treats Bob as a seed
after that announcement is applied to her routing table. On a slower
host the reactor can still be busy when Alice looks up seeds, so she
reports "No seeds found".

Wait until Alice's routing table contains Bob for the repository before
pushing. Apply the same wait to the lightweight-tags variant, which
uses the same setup.

Signed-off-by: Xeonacid <h.dwwwwww@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant