Skip to content

Commit

Permalink
fix: localnet github workflow for localnet
Browse files Browse the repository at this point in the history
  • Loading branch information
shanithkk committed Jan 29, 2024
1 parent b9ec43f commit b5f712c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions testdata/generate_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand All @@ -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()

0 comments on commit b5f712c

Please sign in to comment.