deps(tor): arti-client / tor-* 0.46 → 0.49, safelog 0.9 → 0.10 (#209) #213

Open
sirius wants to merge 1 commit from onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client into main
Owner

#209 — arti-client 0.46 → 0.49 (whole tor-* set)

crate before after
arti-client 0.46 0.49
tor-cell 0.46 0.49
tor-hsservice 0.46 0.49
tor-rtcompat 0.46 0.49
safelog (direct, HsId redaction) 0.9 0.10

Both cargo workspaces refreshed: root Cargo.lock and
crates/onionwire-sdk/Cargo.lock (the SDK pins arti's feature set for the
Android build). Every tor-* entry in both locks is 0.49.0 and safelog is a
single 0.10.2 — no duplicate DisplayRedacted traits.

Why safelog moved too

Arti 0.49 links safelog 0.10. src/hs.rs calls
HsId::display_redacted() / display_unredacted() through the direct
safelog dep; at 0.9 that resolves against safelog 0.9's trait while HsId
implements 0.10's, so it does not compile (E0599, "multiple different
versions of crate safelog"). The trait's method surface is unchanged.

MSRV

Arti 0.49's own rust-version is 1.92 (0.46 was 1.91). The declared floor
stays 1.98: the default cuprate-daemon graph needs it (tapes →
VecDeque::pop_front_if, 1.93), and the CI image is already
rust:1.98-bookworm. No toolchain, RUST_IMAGE or README version change
needed; only the comments that named the old 1.91 floor were corrected.

src/hs.rs workarounds re-checked against 0.49

constant finding in 0.49
PUBLISH_WAIT 360s tor-hsservice 0.49 OVERALL_UPLOAD_TIMEOUT is still 5 min (publish/reactor.rs), so 360s still covers a HsDir retry round
CBT_MIN/INITIAL_TIMEOUT_MS 20s override still lands through TorClientConfigBuilder::override_net_params; key names and defaults unchanged
PREEMPTIVE_PREDICTED_PORTS empty tor-circmgr 0.49 still defaults initial_predicted_ports to [80, 443] (config.rs) — the empty override is still load-bearing
hs_is_ready tor_hsservice::status::State variants unchanged; Bootstrapping is still documented as "not fully reachable, but may be reachable by some clients", so probe-gated readiness stays

Tests (real output)

cargo check --locked --no-default-features --features rustls --all-targets   # ok
cargo check --locked --all-targets                                           # ok
crates/onionwire-sdk: cargo check --locked --all-targets                     # ok, 4m18s
cargo clippy --locked --all-targets -- -D warnings                           # ok, no warnings
cargo test --locked --tests --no-fail-fast
  lib unittest              173 passed; 0 failed; 2 ignored
  tests/hs.rs                14 passed   (the four hs.rs workaround guards)
  tests/store.rs             32 passed
  tests/wallet.rs            62 passed
  all 34 test binaries: 0 failed
cargo test --locked --test tor_hs -- --ignored --nocapture
  test two_node_byte_pipe_restart_and_dormant ... ok   (279.35s, live Tor)

Live two-node excerpt: both hidden services published descriptors
(tor_hsservice::publish::reactor: reuploading descriptor …), the probe
reported hs reachable while status Bootstrapping, echo ping alice → bob
went through, alice restarted from persisted state reusing the same onion
(Using existing identity for service onionwire-a), and the post-dormant
echo returned in 717ms.

One note on the offline suite: a first cargo test --locked run failed
node::tests::start_wallet_child_in_process_cuprate_answers_get_info with
Address already in use (os error 98). That is port 18081, and a second
kanban worker was running the same suite in another worktree at the time.
Re-run in isolation with the machine clear: passes in 22.74s. Not
bump-related.

Not run locally: scripts/build-android-local.sh (CI's SDK job builds the
same --locked graph for Android). The host-side SDK check above is the
API-compatibility gate.

Closes #209

## #209 — arti-client 0.46 → 0.49 (whole `tor-*` set) | crate | before | after | |---|---|---| | `arti-client` | 0.46 | 0.49 | | `tor-cell` | 0.46 | 0.49 | | `tor-hsservice` | 0.46 | 0.49 | | `tor-rtcompat` | 0.46 | 0.49 | | `safelog` (direct, `HsId` redaction) | 0.9 | 0.10 | Both cargo workspaces refreshed: root `Cargo.lock` and `crates/onionwire-sdk/Cargo.lock` (the SDK pins arti's feature set for the Android build). Every `tor-*` entry in both locks is 0.49.0 and safelog is a single 0.10.2 — no duplicate `DisplayRedacted` traits. ### Why safelog moved too Arti 0.49 links safelog 0.10. `src/hs.rs` calls `HsId::display_redacted()` / `display_unredacted()` through the direct `safelog` dep; at 0.9 that resolves against safelog 0.9's trait while `HsId` implements 0.10's, so it does not compile (`E0599`, "multiple different versions of crate `safelog`"). The trait's method surface is unchanged. ### MSRV Arti 0.49's own `rust-version` is **1.92** (0.46 was 1.91). The declared floor stays **1.98**: the default `cuprate-daemon` graph needs it (`tapes` → `VecDeque::pop_front_if`, 1.93), and the CI image is already `rust:1.98-bookworm`. No toolchain, `RUST_IMAGE` or README version change needed; only the comments that named the old 1.91 floor were corrected. ### `src/hs.rs` workarounds re-checked against 0.49 | constant | finding in 0.49 | |---|---| | `PUBLISH_WAIT` 360s | `tor-hsservice 0.49` `OVERALL_UPLOAD_TIMEOUT` is still 5 min (`publish/reactor.rs`), so 360s still covers a HsDir retry round | | `CBT_MIN/INITIAL_TIMEOUT_MS` 20s | override still lands through `TorClientConfigBuilder::override_net_params`; key names and defaults unchanged | | `PREEMPTIVE_PREDICTED_PORTS` empty | `tor-circmgr 0.49` still defaults `initial_predicted_ports` to `[80, 443]` (`config.rs`) — the empty override is still load-bearing | | `hs_is_ready` | `tor_hsservice::status::State` variants unchanged; `Bootstrapping` is still documented as "not fully reachable, but may be reachable by some clients", so probe-gated readiness stays | ### Tests (real output) ``` cargo check --locked --no-default-features --features rustls --all-targets # ok cargo check --locked --all-targets # ok crates/onionwire-sdk: cargo check --locked --all-targets # ok, 4m18s cargo clippy --locked --all-targets -- -D warnings # ok, no warnings cargo test --locked --tests --no-fail-fast lib unittest 173 passed; 0 failed; 2 ignored tests/hs.rs 14 passed (the four hs.rs workaround guards) tests/store.rs 32 passed tests/wallet.rs 62 passed all 34 test binaries: 0 failed cargo test --locked --test tor_hs -- --ignored --nocapture test two_node_byte_pipe_restart_and_dormant ... ok (279.35s, live Tor) ``` Live two-node excerpt: both hidden services published descriptors (`tor_hsservice::publish::reactor: reuploading descriptor …`), the probe reported `hs reachable while status Bootstrapping`, `echo ping alice → bob` went through, alice restarted from persisted state reusing the same onion (`Using existing identity for service onionwire-a`), and the post-dormant echo returned in 717ms. One note on the offline suite: a first `cargo test --locked` run failed `node::tests::start_wallet_child_in_process_cuprate_answers_get_info` with `Address already in use (os error 98)`. That is port 18081, and a second kanban worker was running the same suite in another worktree at the time. Re-run in isolation with the machine clear: passes in 22.74s. Not bump-related. Not run locally: `scripts/build-android-local.sh` (CI's SDK job builds the same `--locked` graph for Android). The host-side SDK check above is the API-compatibility gate. Closes #209
deps(tor): arti-client / tor-* 0.46 -> 0.49, safelog 0.9 -> 0.10
Some checks failed
ci / test (pull_request) Successful in 38m22s
ci / sdk (pull_request) Successful in 8m10s
android-ci / android (pull_request) Failing after 1h10m29s
6feabee734
Arti publishes the whole tor-* family in lockstep, so arti-client,
tor-cell, tor-hsservice and tor-rtcompat move together in both
workspaces (root crate and crates/onionwire-sdk, which pins the feature
set for Android).

Arti 0.49 depends on safelog 0.10. OnionWire names safelog directly for
`DisplayRedacted` on HsId, so leaving the direct dep at 0.9 puts two
safelog versions in the graph and two incompatible DisplayRedacted
traits, and src/hs.rs stops compiling. Bumped to 0.10; the trait's
method surface (display_redacted / display_unredacted) is unchanged.

Arti 0.49's own MSRV is 1.92, still below the 1.98 floor the default
cuprate-daemon graph sets (tapes needs VecDeque::pop_front_if, 1.93),
so no toolchain or CI image change. The hs.rs workarounds are still
correct in 0.49: tor-hsservice 0.49's OVERALL_UPLOAD_TIMEOUT is still
5 min (PUBLISH_WAIT 360s covers it), the default predicted exit ports
are still 80/443 (we override to empty), and the status State variants
hs_is_ready matches on are unchanged.

Closes #209
Some checks failed
ci / test (pull_request) Successful in 38m22s
ci / sdk (pull_request) Successful in 8m10s
android-ci / android (pull_request) Failing after 1h10m29s
This pull request has changes conflicting with the target branch.
  • .forgejo/workflows/ci.yml
  • docs/ARTI_UPGRADE.md
  • docs/THREAT_MODEL.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client:onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client
git switch onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client
git switch onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client
git rebase main
git switch main
git merge --ff-only onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client
git switch onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client
git rebase main
git switch main
git merge --no-ff onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client
git switch main
git merge --squash onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client
git switch main
git merge --ff-only onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client
git switch main
git merge onionwire/t_6b704e3a-onionwire-209-arti-upstream-arti-client
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!213
No description provided.