Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Fix multinode test spans #453

Merged
merged 5 commits into from
Jan 27, 2021
Merged

Conversation

koivunej
Copy link
Collaborator

@koivunej koivunej commented Jan 26, 2021

This PR changes how the spans are set up from IpfsOptions and in UninitializedIpfs. While debugging the now ignored test (see #450) I found that the spans were configured wrong and thus none of the multiple nodes created by spawn_nodes could be differentiated.

This also renames the spans to more logical from the "$root" given at IpfsOptions::span:

Span::current => $root:init
Span::current => $root:init:swarm
$root:swarm => $root:exec (literally the executor libp2p spawns futures through)
$root => $root:bg_task => $root:swarm (background task)
$root => $root:facade (futures created through Ipfs::* methods)

Still very far from perfect, but perhaps a step into better direction.

Differences (old => new):
- "ipfs:swarm" => "ipfs::exec"
- "ipfs[:bg_task]" => "ipfs::swarm"

The previous commit already changed introduced and separated "ipfs" and
"ipfs:facade".
@koivunej
Copy link
Collaborator Author

The windows failure looks transient. Merging this tomorrow-ish unless there are objections. Better ways we should be using tracing are always very much appreaciated and welcome!

@koivunej
Copy link
Collaborator Author

This is essential to understand anything of the logs in the following PRs so merging this in.

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 27, 2021

Build succeeded:

@bors bors bot merged commit cf37032 into rs-ipfs:master Jan 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant