Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

swarm-smoke: fix check max prox hosts for pull/push sync modes #1578

Merged
merged 2 commits into from
Jul 17, 2019

Conversation

nonsense
Copy link
Contributor

@nonsense nonsense commented Jul 17, 2019

This PR is adding a flag to specify the kind of smoke test to test for with respect to syncing:

--sync-mode=pushsync, pullsync, or both
  1. When pullsync - make sure that all chunks are hosted at all max prox hosts - previously we had a more relaxed version, where we were checking only one of the max prox hosts (if there were multiple)
  2. When pushsync - make sure that all chunks are found at at least one max prox host - we don't know which node received our chunk, and sent back a receipt, it can be any one of the max prox hosts if there are multiple
  3. When both - same as 1.

It also adds a flag to specify if we want to wait for pushsync or pullsync to complete. Uploads attach a tag, so that we can monitor the pushsync until completion.

@nonsense nonsense requested review from janos, skylenet and acud July 17, 2019 09:51
@nonsense nonsense force-pushed the sync-modes-smoke-tests branch 3 times, most recently from 6581cf1 to 79e6b86 Compare July 17, 2019 10:03
}

var isSynced bool
err = rpcClient.Call(&isSynced, "bzz_isPushSynced", tagname)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This API is still not merged to master, but since it is behind a feature flag, I think it is fine to get the tests part first.

@nonsense nonsense added this to Backlog in Swarm Core - Sprint planning via automation Jul 17, 2019
Copy link
Member

@janos janos left a comment

Choose a reason for hiding this comment

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

LGTM

@nonsense nonsense merged commit 48857ae into master Jul 17, 2019
Swarm Core - Sprint planning automation moved this from Backlog to Done Jul 17, 2019
@nonsense nonsense deleted the sync-modes-smoke-tests branch July 18, 2019 12:57
@skylenet skylenet added this to the 0.4.3 milestone Jul 23, 2019
chadsr added a commit to chadsr/swarm that referenced this pull request Sep 23, 2019
* 'master' of github.com:ethersphere/swarm: (54 commits)
  api, chunk, cmd, shed, storage: add support for pinning content (ethersphere#1509)
  docs/swarm-guide: cleanup (ethersphere#1620)
  travis: split jobs into different stages (ethersphere#1615)
  simulation: retry if we hit a collision on tcp/udp ports (ethersphere#1616)
  api, chunk: rename Tag.New to Tag.Create (ethersphere#1614)
  pss: instrumentation and refactor (ethersphere#1580)
  api, cmd, network: add --disable-auto-connect flag (ethersphere#1576)
  changelog: fix typo (ethersphere#1605)
  version: update to v0.4.4 unstable (ethersphere#1603)
  swarm: release v0.4.3 (ethersphere#1602)
  network/retrieve: add bzz-retrieve protocol (ethersphere#1589)
  PoC: Network simulation framework (ethersphere#1555)
  network: structured output for kademlia table (ethersphere#1586)
  client: add bzz client, update smoke tests (ethersphere#1582)
  swarm-smoke: fix check max prox hosts for pull/push sync modes (ethersphere#1578)
  cmd/swarm: allow using a network interface by name for nat purposes (ethersphere#1557)
  pss: disable TestForwardBasic (ethersphere#1544)
  api, network: count chunk deliveries per peer (ethersphere#1534)
  network/newstream: new stream! protocol base implementation (ethersphere#1500)
  swarm: fix bzz_info.port when using dynamic port allocation (ethersphere#1537)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants