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

cmd/swarm-smoke: add flag to bail on error #1793

Merged
merged 1 commit into from
Sep 30, 2019
Merged

Conversation

acud
Copy link
Member

@acud acud commented Sep 23, 2019

This PR adds a --bail flag to the smoke test binary which tells the upload and sync test to bail on any intermediate errors found (such as chunk not found max prox and chunk at less than two hosts)

fixes #1622

@acud acud self-assigned this Sep 23, 2019
@acud acud added this to the 0.5.0 milestone Sep 23, 2019
@@ -179,7 +183,7 @@ func trackChunks(testData []byte) error {
// addrs - a slice with all uploaded chunk refs
// allHostChunks - host->bit vector, showing what chunks are present on what hosts
// bzzAddrs - host->bzz address, used when determining the most proximate host for a given chunk
func checkChunksVsMostProxHosts(addrs []storage.Address, allHostChunks map[string]string, bzzAddrs map[string]string) {
func checkChunksVsMostProxHosts(addrs []storage.Address, allHostChunks map[string]string, bzzAddrs map[string]string) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

@acud looks like this is no longer run for pushsync - it appears to be only called behind the flag syncDelay, and not behind pushsyncDelay.

Copy link
Member Author

Choose a reason for hiding this comment

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

@nonsense nonsense merged commit a2ec777 into master Sep 30, 2019
@acud acud deleted the smoke-bail-on-err branch September 30, 2019 10:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update smoke tests with a flag to exit on chunk not found at max prox host
3 participants