Compare commits

...

3 Commits

Author SHA1 Message Date
0g-peterzhb
62dba0803d
Merge b352184dc6 into 789eae5cc1 2024-10-28 10:54:02 +08:00
peilun-conflux
789eae5cc1
Start nodes sequentially to fix some random failure. (#243)
Some checks are pending
abi-consistent-check / build-and-compare (push) Waiting to run
code-coverage / unittest-cov (push) Waiting to run
rust / check (push) Waiting to run
rust / test (push) Waiting to run
rust / lints (push) Waiting to run
functional-test / test (push) Waiting to run
Currently we use the config `network_libp2p_nodes` to connect nodes
in the tests. This will not be retried, so if an early node starts
too slowly, other nodes may fail to connect to it.
2024-10-28 10:53:28 +08:00
Peter Zhang
b352184dc6 add docker support 2024-10-18 16:29:02 +08:00
3 changed files with 13 additions and 3 deletions

6
DockerfileStandard Normal file
View File

@ -0,0 +1,6 @@
FROM rust
VOLUME ["/data"]
COPY . .
RUN apt-get update && apt-get install -y clang cmake build-essential pkg-config libssl-dev
RUN cargo build --release
CMD ["./target/release/zgs_node", "--config", "run/config-testnet-standard.toml", "--log", "run/log_config"]

6
DockerfileTurbo Normal file
View File

@ -0,0 +1,6 @@
FROM rust
VOLUME ["/data"]
COPY . .
RUN apt-get update && apt-get install -y clang cmake build-essential pkg-config libssl-dev
RUN cargo build --release
CMD ["./target/release/zgs_node", "--config", "run/config-testnet-turbo.toml", "--log", "run/log_config"]

View File

@ -209,13 +209,11 @@ class TestFramework:
if i > 0: if i > 0:
time.sleep(1) time.sleep(1)
node.start() node.start()
node.wait_for_rpc_connection()
self.log.info("Wait the zgs_node launch for %d seconds", self.launch_wait_seconds) self.log.info("Wait the zgs_node launch for %d seconds", self.launch_wait_seconds)
time.sleep(self.launch_wait_seconds) time.sleep(self.launch_wait_seconds)
for node in self.nodes:
node.wait_for_rpc_connection()
def add_arguments(self, parser: argparse.ArgumentParser): def add_arguments(self, parser: argparse.ArgumentParser):
parser.add_argument( parser.add_argument(
"--conflux-binary", "--conflux-binary",