Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch Management Chain for E2E #1303

Merged
merged 20 commits into from Sep 16, 2019
Merged

Launch Management Chain for E2E #1303

merged 20 commits into from Sep 16, 2019

Conversation

ronnno
Copy link
Member

@ronnno ronnno commented Sep 1, 2019

launch a second virtual chain for e2e tests:

  1. in-process e2e harness - vcid 40 for mgmt chain
  2. docker based e2e - - vcid 40 for new chain
  3. chain-on-pr - launch vcid: 100000 + (prNumber * 2) for mgmt chain and 100000 + (prNumber * 2 + 1) for app chain
  4. testnet e2e - launch vcid 40 for consensus benchmark tests and 2011 for lean helix

for in-process e2e harness:

  • public API ports used (where n is the network size):
    • app chain ports for each node:8090, 8090+1,...,8090+(n-1)
    • mgmt chain ports for each node:8090+n, 8090+(n+1),...,8090(2n-1)
  • both processor artifact path (test/e2e/_tmp/contract compiler work dir) and virtual chain data dir will be appended by a vchain id component of the form: vcid_[vcid]

@ronnno ronnno changed the title Feature/simple multi chain e2e Launch Management Chain for E2E Sep 1, 2019
@ronnno
Copy link
Member Author

ronnno commented Sep 1, 2019

@ronnno
Copy link
Member Author

ronnno commented Sep 1, 2019

@itamararjuan need your help with ci/e2e - docker/test/test.sh says:

rm: cannot remove ‘_tmp/blocks/node4-mgmt/blocks’: Permission denied
rm: cannot remove ‘_tmp/blocks/node3-mgmt/blocks’: Permission denied
rm: cannot remove ‘_tmp/blocks/node2-mgmt/blocks’: Permission denied
rm: cannot remove ‘_tmp/blocks/node1-mgmt/blocks’: Permission denied

@ronnno ronnno removed the request for review from itamararjuan September 5, 2019 12:42
@@ -127,7 +127,7 @@ jobs:

deploy_testnet:
docker:
- image: circleci/node:11.2.0
- image: itamararjuan/golang_with_node_aws
Copy link
Contributor

Choose a reason for hiding this comment

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

@itamararjuan why are you using your own image?

constantConsensusLeader primitives.NodeAddress,
activeConsensusAlgo consensus.ConsensusAlgoType,
) NodeConfig {
func ForE2E(httpAddress string, virtualChainId primitives.VirtualChainId, gossipListenPort int, nodeAddress primitives.NodeAddress, nodePrivateKey primitives.EcdsaSecp256K1PrivateKey, gossipPeers map[string]GossipPeer, genesisValidatorNodes map[string]ValidatorNode, blockStorageDataDirPrefix string, processorArtifactPath string, ethereumEndpoint string, constantConsensusLeader primitives.NodeAddress, activeConsensusAlgo consensus.ConsensusAlgoType) NodeConfig {
Copy link
Contributor

Choose a reason for hiding this comment

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

please unfmt

@@ -51,7 +51,7 @@ services:
ipv4_address: 192.168.199.12


orbs-network-node-1:
orbs-app-chain-node-1:
Copy link
Contributor

Choose a reason for hiding this comment

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

this file has become long and repetitive; please see if we can simplify it (separate PR)

Copy link
Member Author

Choose a reason for hiding this comment

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

opened #1318

"",
primitives.NodeAddress{},
0).
return config.ForE2E("", 0, 0, primitives.NodeAddress{}, primitives.EcdsaSecp256K1PrivateKey{}, nil, nil, "", "", "", primitives.NodeAddress{}, 0).
Copy link
Contributor

Choose a reason for hiding this comment

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

please unfmt

@electricmonk
Copy link
Contributor

@ronnno merge on Sunday?

@ronnno ronnno merged commit b0e6fef into master Sep 16, 2019
@ronnno ronnno deleted the feature/simple-multi-chain-e2e branch September 16, 2019 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants