From b5f712cd101b097c4af34fd730f5db3ca762dd95 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Mon, 29 Jan 2024 21:54:26 +0530 Subject: [PATCH] fix: localnet github workflow for localnet --- .github/workflows/local.yaml | 2 +- testdata/generate_json.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/local.yaml b/.github/workflows/local.yaml index 5d841a0..a3cdc35 100644 --- a/.github/workflows/local.yaml +++ b/.github/workflows/local.yaml @@ -31,7 +31,7 @@ jobs: kurtosis clean -a echo "Processing para chain: $para_chain, relay chain: $relay_chain" # Call Python script with para_chain and relay_chain as arguments - python ./testdata/generate_json.py --relay "$relay_chain" --para "$para_chain" --network "local" + python ./testdata/generate_json.py --relay "$relay_chain" --para "$para_chain" --network "localnet" kurtosis run . --args-file ./testdata/updated_config.json --enclave polkadot || failed_chains+=("$para_chain") done < ./testdata/chain_value.csv if [ ${#failed_chains[@]} -gt 0 ]; then diff --git a/testdata/generate_json.py b/testdata/generate_json.py index eeab96e..d2e34de 100644 --- a/testdata/generate_json.py +++ b/testdata/generate_json.py @@ -15,7 +15,7 @@ def update_config(original_config, relay_chain, para_chain, network): config_data["relaychain"]["name"] = relay_chain.lower() else: # Update the original JSON data - config_data["chain_type"] = "local" + config_data["chain_type"] = "localnet" config_data["relaychain"]["name"] = "rococo-local" for para in config_data["parachains"]: @@ -39,7 +39,7 @@ def main(): parser.add_argument('--network', type=str, help='test environment') args = parser.parse_args() - update_config("./local.json", args.relay, args.para, args.network) + update_config("./config.json", args.relay, args.para, args.network) if __name__ == "__main__": main() \ No newline at end of file