Skip to content

Pin Saorsa dependencies to stability-improvements branches#93

Merged
jacderida merged 3 commits into
mainfrom
fix/stability-improvements
May 12, 2026
Merged

Pin Saorsa dependencies to stability-improvements branches#93
jacderida merged 3 commits into
mainfrom
fix/stability-improvements

Conversation

@mickvandijke
Copy link
Copy Markdown
Collaborator

Summary

  • switch ant-protocol and saorsa-core to their fix/stability-improvements git branches
  • refresh Cargo.lock for the updated dependency graph, including the matching saorsa-transport git source
  • pick up current transitive dependency updates from the resolved lockfile

Testing

  • Not run; PR opened from existing branch.

Copilot AI review requested due to automatic review settings May 10, 2026 08:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR switches ant-protocol and saorsa-core from crates.io releases to git branch pins (fix/stability-improvements) and refreshes Cargo.lock to reflect the new resolution (including updated transitive dependencies and a matching git-sourced saorsa-transport).

Changes:

  • Pin ant-protocol and saorsa-core to fix/stability-improvements branches via git dependencies.
  • Update Cargo.lock to capture the resulting git sources and transitive dependency updates.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
Cargo.toml Replaces crates.io version dependencies with git branch pins for ant-protocol and saorsa-core.
Cargo.lock Updates resolved dependency graph to include git sources and transitive version bumps/removals.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Cargo.toml Outdated
Comment on lines +36 to +39
ant-protocol = { git = "https://github.com/WithAutonomi/ant-protocol", branch = "fix/stability-improvements" }

# Core (provides EVERYTHING: networking, DHT, security, trust, storage)
saorsa-core = "0.24.2"
saorsa-core = { git = "https://github.com/saorsa-labs/saorsa-core", branch = "fix/stability-improvements" }
Comment thread Cargo.toml Outdated
Comment on lines +32 to +36
@@ -33,10 +33,10 @@ path = "src/bin/ant-devnet/main.rs"
# Until then, the git pin tracks the matching saorsa-core lineage
# (the rc-2026.4.2 branch) so Cargo can unify the wire types here
# with ant-protocol's re-exports.
ant-protocol = "2.0.3"
ant-protocol = { git = "https://github.com/WithAutonomi/ant-protocol", branch = "fix/stability-improvements" }
@mickvandijke mickvandijke force-pushed the fix/stability-improvements branch 2 times, most recently from 0865750 to 4920a47 Compare May 10, 2026 20:34
Copilot AI review requested due to automatic review settings May 10, 2026 20:34
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Comment thread Cargo.toml Outdated
Comment on lines +32 to +36
@@ -33,10 +33,10 @@ path = "src/bin/ant-devnet/main.rs"
# Until then, the git pin tracks the matching saorsa-core lineage
# (the rc-2026.4.2 branch) so Cargo can unify the wire types here
# with ant-protocol's re-exports.
ant-protocol = "2.0.3"
ant-protocol = { git = "https://github.com/WithAutonomi/ant-protocol", branch = "fix/stability-improvements" }
Comment thread Cargo.toml Outdated
Comment on lines +36 to +39
ant-protocol = { git = "https://github.com/WithAutonomi/ant-protocol", branch = "fix/stability-improvements" }

# Core (provides EVERYTHING: networking, DHT, security, trust, storage)
saorsa-core = "0.24.2"
saorsa-core = { git = "https://github.com/saorsa-labs/saorsa-core", branch = "fix/stability-improvements" }
Copy link
Copy Markdown
Collaborator

@grumbach grumbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. The pinned saorsa-transport / saorsa-core / ant-protocol stability branches built and ran cleanly on my 210-node 7-region anselme-testnet 2026-05-12. Storer-side Merkle payment verified fires per chunk, no unexpected protocol errors, no panics on the stability-bundle code paths.

This is #4 in the merge chain (transport -> core -> protocol -> node -> client). Should ideally land alongside ant-client#78 to keep the cross-repo pins consistent.

mickvandijke and others added 3 commits May 12, 2026 23:35
After rebase onto upstream main, the WithAutonomi/ant-protocol
fix/stability-improvements branch (f3b5a9d) was stale: PR #6 (the
ChunkPutRequest content: Bytes perf change) had since been merged into
ant-protocol main (93e63b8), but the topic branch tip was not advanced.
Our handler / e2e call sites already expect the Bytes-typed field, so
building against the stale branch failed.

- Point the direct ant-protocol dep at the ant-protocol `main` branch,
  which now contains both the transport_source ignore fix and the
  Bytes-perf change.
- Update [patch.crates-io] ant-protocol to the same branch.
- Add a [patch.crates-io] saorsa-core entry so transitive crates that
  pull saorsa-core 0.24.2 from crates.io unify with our direct git
  branch pin, avoiding two saorsa-core versions in the graph (which
  splits the MultiAddr / DHT types and breaks ant-devnet).
- Drop the now-redundant [patch."https://github.com/WithAutonomi/ant-protocol"]
  table; patching a git source to itself is rejected by Cargo, and the
  crates.io patch is sufficient once the direct dep already points at
  the target branch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 12, 2026 23:08
@jacderida jacderida force-pushed the fix/stability-improvements branch from 8e415da to 4dfc4a2 Compare May 12, 2026 23:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

Cargo.toml:184

  • The PR description says ant-protocol is pinned to the fix/stability-improvements branch, but this patch (and the direct dependency above) pins ant-protocol to branch = "main". Please align the pinned branch with the PR intent (or update the PR description/comments accordingly).
[patch.crates-io]
ant-protocol = { git = "https://github.com/WithAutonomi/ant-protocol", branch = "main" }
saorsa-core = { git = "https://github.com/saorsa-labs/saorsa-core", branch = "fix/stability-improvements" }

Comment thread Cargo.toml
Comment on lines 34 to 35
# (the rc-2026.4.2 branch) so Cargo can unify the wire types here
# with ant-protocol's re-exports.
Comment thread Cargo.toml
# (the rc-2026.4.2 branch) so Cargo can unify the wire types here
# with ant-protocol's re-exports.
ant-protocol = "2.0.3"
ant-protocol = { git = "https://github.com/WithAutonomi/ant-protocol", branch = "main" }
@jacderida jacderida merged commit 8b68b2d into main May 12, 2026
14 of 15 checks passed
@jacderida jacderida deleted the fix/stability-improvements branch May 12, 2026 23:26
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.

4 participants