Fix/ipfs stability#484
Merged
rmlearney-digicatapult merged 10 commits intomainfrom Feb 27, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves IPFS network stability by removing the IPFS Cluster dependency and implementing deterministic peer discovery with explicit timeouts for IPFS operations.
Changes:
- Added 15-second timeout handling to IPFS client methods (getFile and uploadFile) using AbortController
- Replaced IPFS Cluster with deterministic full-mesh static peering via shared peer metadata volume
- Updated IPFS startup script to configure DHT routing, static peering, and wait for all nodes before starting
- Removed all IPFS Cluster containers and volumes from docker-compose-testnet.yml
- Modified IPFS health checks to verify daemon readiness and peer connectivity
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
| src/ipfs/index.ts | Added AbortController-based timeout handling (15s) for getFile and uploadFile operations with improved error messages |
| docker/ipfs/ipfs-startup.sh | Implemented deterministic peer discovery using shared volume for peer IDs, configured full-mesh static peering, and enabled accelerated DHT |
| docker/ipfs/Dockerfile | Created /ipfs-peerdata directory with proper permissions for peer metadata sharing |
| docker-compose-testnet.yml | Removed IPFS Cluster containers (cluster0, cluster1, cluster2), added ipfs-peerdata volume, updated health checks, and added IPFS_NODE_NAME environment variables |
d6b86a9 to
72ed082
Compare
8 tasks
jonmattgray
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Checklist
PR Type
Please delete options that are irrelevant.
Linked tickets
High level description
Improve IPFS peering at startup
Detailed description
Describe alternatives you've considered
Operational impact
Additional context
Biggest changes are to the IPFS unit test suite to match the format of the other cloudagent unit tests. All tests still present, now extended for new timeout logic.