Files
iroh/.github/dependabot.yml
T
Rüdiger KlaehnandFriedel Ziegelmayer df6c396410 refactor: Simplify path selection
## Description

Fewer special cases in selection of the best path, in preparation to
integrating user transports into path selection.

This should keep the current logic completey unchanged, but make it
easier to add additional paths without a maze of special cases.

Implemented rules:
- bias for ipv6 (IPV6_RTT_ADVANTAGE)
- available (currently ipv4/ipv6) takes precendence over backup
(currently relay)
- switching between different transports in the same category (available
or backup) only happens if the advantage is bigger than
RTT_SWITCHING_MIN_IP to avoid toggling

The purpose is to be able to integrate user transports more easily. Each
user transport id would get a flag if it is considered available or
backup (default backup?), and a rtt bias (default 0). Then you would add
user transports to the selection process without any special cases.

I guess available or backup are not the right categories here. The
meaning would be standard (a transport that has a theoretical chance to
become *the best* transport) and fallback (a transport of last resort
that you want to get rid of asap as soon as you have another option,
regardless of rtt). E.g. a BLE transport would always be a fallback
transport because available bandwidth is very limited regardless of rtt.

## Breaking Changes

None

## Notes & open questions


## Change checklist
<!-- Remove any that are not relevant. -->
- [ ] Self-review.
- [ ] 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.
- [ ] All breaking changes documented.
- [ ] List all breaking changes in the above "Breaking Changes" section.
- [ ] Open an issue or PR on any number0 repos that are affected by this
breaking change. Give guidance on how the updates should be handled or
do the actual updates themselves. The major ones are:
    - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc)
    - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip)
    - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs)
    - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe)
    - [ ] [`sendme`](https://github.com/n0-computer/sendme)

---------

Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com>
2026-02-17 15:24:09 +01:00

34 lines
1.1 KiB
YAML

# Keep GitHub Actions up to date with GitHub's Dependabot...
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
version: 2
updates:
- package-ecosystem: github-actions
directory: /
groups:
github-actions:
patterns:
- "*" # Group all Actions updates into a single larger pull request
schedule:
interval: weekly
day: "thursday"
time: "08:00"
timezone: "America/New_York"
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
day: "thursday"
time: "08:00"
timezone: "America/New_York"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
- package-ecosystem: docker
directory: docker
schedule:
interval: weekly
day: "thursday"
time: "08:00"
timezone: "America/New_York"