Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(iroh-net): allow customizing republish delay for the pkarr publisher #2637

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

rklaehn
Copy link
Contributor

@rklaehn rklaehn commented Aug 16, 2024

Description

The pkarr dht publisher has two delays, the initial delay and the republish delay. These were constants so far, but now are configurable in the builder.

This allows us to set the delay to 0s in the dht_discovery_smoke test.

Breaking Changes

None

Notes & open questions

Will this fix the flakiness?

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

set republish delay to zero in test
resize testnet to 2 nodes (minimum)
Copy link

github-actions bot commented Aug 16, 2024

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/2637/docs/iroh/

Last updated: 2024-08-19T11:40:24Z

@matheus23
Copy link
Member

Oh how ironic that (potentially) fixing a flake is blocked by another test being flaky 🙃

@dignifiedquire
Copy link
Contributor

@rklaehn is this ready?

@dignifiedquire dignifiedquire marked this pull request as ready for review August 19, 2024 10:16
@dignifiedquire dignifiedquire changed the title feat(iroh-net): Allow customizing the republish delay for the pkarr publisher feat(iroh-net): allow customizing republish delay for the pkarr publisher Aug 19, 2024
@dignifiedquire dignifiedquire added this pull request to the merge queue Aug 19, 2024
@dignifiedquire dignifiedquire added this to the v0.23.0 milestone Aug 19, 2024
Merged via the queue into main with commit 134dbee Aug 19, 2024
29 checks passed
matheus23 pushed a commit that referenced this pull request Nov 14, 2024
…sher (#2637)

## Description

The pkarr dht publisher has two delays, the initial delay and the
republish delay. These were constants so far, but now are configurable
in the builder.

This allows us to set the delay to 0s in the dht_discovery_smoke test.

## Breaking Changes

None

## Notes & open questions

Will this fix the flakiness?

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [x] All breaking changes documented.

Co-authored-by: Friedel Ziegelmayer <[email protected]>
@rklaehn rklaehn deleted the try-fix-dht-test branch November 20, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants