Commit c41d1f01 authored by Gyanendra Mishra's avatar Gyanendra Mishra

lgiht house seems to be in a good spot

parent 7ec0ffea
...@@ -46,7 +46,7 @@ This is the Startosis version of the popular [eth2-merge-kurtosis-module](https: ...@@ -46,7 +46,7 @@ This is the Startosis version of the popular [eth2-merge-kurtosis-module](https:
- [ ] participant_network/cl (requires facts and waits) - [ ] participant_network/cl (requires facts and waits)
- [ ] lighthouse - [ ] lighthouse
- [ ] facts and waits - [ ] facts and waits
- [ ] framework - [x] framework
- [ ] loadstar - [ ] loadstar
- [ ] facts and waits - [ ] facts and waits
- [ ] framework - [ ] framework
......
# differs from kurtosis-tech/eth2-merge-kurtosis-module in the sense it dosen't have the rest_client # differs from kurtosis-tech/eth2-merge-kurtosis-module in the sense it dosen't have the rest_client
# broader use of the rest client allows for waiting for the first cl context to be heahty in module.go
# TODO remove the above comment when things are working
def new_cl_client_context(client_name, enr, ip_addr, http_port_num, cl_nodes_metrics_info): def new_cl_client_context(client_name, enr, ip_addr, http_port_num, cl_nodes_metrics_info):
return struct( return struct(
client_name = client_name, client_name = client_name,
......
This diff is collapsed.
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
def new_generate_keystores_result(prysm_password_artifact_uuid, prysm_password_relative_filepath, per_node_keystores): def new_generate_keystores_result(prysm_password_artifact_uuid, prysm_password_relative_filepath, per_node_keystores):
return struct( return struct(
#Files artifact UUID where the Prysm password is stored #Files artifact UUID where the Prysm password is stored
PrysmPasswordArtifactUUid = prysm_password_artifact_uuid, prysm_password_artifact_uuid = prysm_password_artifact_uuid,
# Relative to root of files artifact # Relative to root of files artifact
PrysmPasswordRelativeFilepath = prysm_password_relative_filepath, prysm_password_relative_filepath = prysm_password_relative_filepath,
# Contains keystores-per-client-type for each node in the network # Contains keystores-per-client-type for each node in the network
PerNodeKeystores = per_node_keystores per_node_keystores = per_node_keystores
) )
# One of these will be created per node we're trying to start # One of these will be created per node we're trying to start
def new_keystore_files(files_artifact_uuid, raw_keys_relative_dirpath, raw_secrets_relative_dirpath, nimbus_keys_relative_dirpath, prysm_relative_dirpath, teku_keys_relative_dirpath, teku_secrets_relative_dirpath): def new_keystore_files(files_artifact_uuid, raw_keys_relative_dirpath, raw_secrets_relative_dirpath, nimbus_keys_relative_dirpath, prysm_relative_dirpath, teku_keys_relative_dirpath, teku_secrets_relative_dirpath):
return struct( return struct(
FilesArtifactUUID = files_artifact_uuid, files_artifact_uuid = files_artifact_uuid,
# ------------ All directories below are relative to the root of the files artifact ---------------- # ------------ All directories below are relative to the root of the files artifact ----------------
RawKeysRelativeDirpath = raw_keys_relative_dirpath, raw_keys_relative_dirpath = raw_keys_relative_dirpath,
RawSecretsRelativeDirpath = raw_secrets_relative_dirpath, raw_secrets_relative_dirpath = raw_secrets_relative_dirpath,
NimbusKeysRelativeDirpath = nimbus_keys_relative_dirpath, nimbus_keys_relative_dirpath = nimbus_keys_relative_dirpath,
PrysmRelativeDirpath = prysm_relative_dirpath, prysm_relative_dirpath = prysm_relative_dirpath,
TekuKeysRelativeDirpath = teku_keys_relative_dirpath, teku_keys_relative_dirpath = teku_keys_relative_dirpath,
TekuSecretsRelativeDirpath = teku_secrets_relative_dirpath teku_secrets_relative_dirpath = teku_secrets_relative_dirpath
) )
...@@ -12,5 +12,13 @@ def path_base(path): ...@@ -12,5 +12,13 @@ def path_base(path):
return split_path[-1] return split_path[-1]
def path_dir(path):
split_path = path.split("/")
if len(split_path) <= 1:
return "."
split_path = split_path[:-1]
return "/".join(split_path) or "/"
def new_port_spec(number, protocol): def new_port_spec(number, protocol):
return struct(number = number, protocol = protocol) return struct(number = number, protocol = protocol)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment