This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Add sync tests #13
Open
DyrellC
wants to merge
31
commits into
iotaledger:master
Choose a base branch
from
DyrellC:add-sync-tests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add sync tests #13
Conversation
This file contains 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
stplaydog
pushed a commit
to StreamUnion/iri-regression-tests
that referenced
this pull request
Jun 23, 2019
…ssion-tests into add-sync-tests
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description
A nightly test for checking the sync speed of a node. A number of nodes is spun up in TIAB. The first node:
nodeA
, will be used as the baseline sync along with another synced nodenodeB
, while the last (nodeC
) will be loaded up without a db or snapshot files. The test will then listen to the nodes to register changes in thelatestSolidSubtangleMilestone
until all nodes are synchronised. It generates a log and syncing graph for each node syncing, and puts them into theSyncOutput
directory. Once the tests are finished, the cluster is torn down. To run the test, the user will need to have akubernetes
access token available in their./kube/config
. They will also need to be running the test withroot
access, as there are packages that need installing for the test utilities.Motivation
To monitor the sync speed changes on nodes running the latest features and changes on
IRI
Tested
zmqTest.py
tested on locally running nodes,createCluster.sh
tested with kubernetes configuration file present.Note: Kubernetes started acting up at the end of the testing phase for this, so I'll have to run the tests again once the service is back online to confirm the test is working as intended. This test also does not have the inclusion of a sync from local snapshot files yet, as there is only one set available on
dbfiles.iota.org
in testnet, and it's too far ahead for use here. We may need to throw one up in a bucket or onto thedbfiles
from thenodeB
db in the default configuration, and have it sync that way? Will discuss with the team next week.