diff --git a/src/l2/participant/cl/input_parser.star b/src/l2/participant/cl/input_parser.star index 6f47ba26..c4352ad1 100644 --- a/src/l2/participant/cl/input_parser.star +++ b/src/l2/participant/cl/input_parser.star @@ -65,6 +65,7 @@ def _parse(args, participant_name, network_id, registry, cl_kind): cl_params["labels"] = { "op.kind": cl_kind, "op.network.id": str(network_id), + "op.network.participant.name": participant_name, "op.cl.type": cl_params["type"], } diff --git a/src/l2/participant/el/input_parser.star b/src/l2/participant/el/input_parser.star index 94158184..1a23aaf9 100644 --- a/src/l2/participant/el/input_parser.star +++ b/src/l2/participant/el/input_parser.star @@ -69,6 +69,7 @@ def _parse(args, participant_name, network_id, registry, el_kind): el_params["labels"] = { "op.kind": el_kind, "op.network.id": str(network_id), + "op.network.participant.name": participant_name, "op.el.type": el_params["type"], } diff --git a/test/l2/participant/cl/launcher_test.star b/test/l2/participant/cl/launcher_test.star index 38090f18..4dd0a200 100644 --- a/test/l2/participant/cl/launcher_test.star +++ b/test/l2/participant/cl/launcher_test.star @@ -99,7 +99,12 @@ def test_l2_participant_cl_launcher_hildr(plan): ) expect.eq( service_config.labels, - {"op.kind": "cl", "op.network.id": "2151908", "op.cl.type": "hildr"}, + { + "op.kind": "cl", + "op.network.id": "2151908", + "op.network.participant.name": "node0", + "op.cl.type": "hildr", + }, ) expect.eq( service_config.files["/network-configs"].artifact_names, @@ -216,7 +221,12 @@ def test_l2_participant_cl_launcher_kona_node(plan): ) expect.eq( service_config.labels, - {"op.kind": "cl", "op.network.id": "2151908", "op.cl.type": "kona-node"}, + { + "op.kind": "cl", + "op.network.id": "2151908", + "op.network.participant.name": "node0", + "op.cl.type": "kona-node", + }, ) expect.eq( service_config.files["/network-configs"].artifact_names, @@ -317,7 +327,12 @@ def test_l2_participant_cl_launcher_op_node(plan): ) expect.eq( service_config.labels, - {"op.kind": "cl", "op.network.id": "2151908", "op.cl.type": "op-node"}, + { + "op.kind": "cl", + "op.network.id": "2151908", + "op.network.participant.name": "node0", + "op.cl.type": "op-node", + }, ) expect.eq( service_config.files["/network-configs"].artifact_names, diff --git a/test/l2/participant/el/launcher_test.star b/test/l2/participant/el/launcher_test.star index 488cf825..81dd99fd 100644 --- a/test/l2/participant/el/launcher_test.star +++ b/test/l2/participant/el/launcher_test.star @@ -109,7 +109,12 @@ def test_l2_participant_el_launcher_op_besu(plan): ) expect.eq( service_config.labels, - {"op.kind": "el", "op.network.id": "2151908", "op.el.type": "op-besu"}, + { + "op.kind": "el", + "op.network.id": "2151908", + "op.network.participant.name": "node0", + "op.el.type": "op-besu", + }, ) expect.eq( service_config.files["/network-configs"].artifact_names, @@ -180,7 +185,12 @@ def test_l2_participant_el_launcher_op_erigon(plan): ) expect.eq( service_config.labels, - {"op.kind": "el", "op.network.id": "2151908", "op.el.type": "op-erigon"}, + { + "op.kind": "el", + "op.network.id": "2151908", + "op.network.participant.name": "node0", + "op.el.type": "op-erigon", + }, ) expect.eq( service_config.files["/network-configs"].artifact_names, @@ -251,7 +261,12 @@ def test_l2_participant_el_launcher_op_geth(plan): ) expect.eq( service_config.labels, - {"op.kind": "el", "op.network.id": "2151908", "op.el.type": "op-geth"}, + { + "op.kind": "el", + "op.network.id": "2151908", + "op.network.participant.name": "node0", + "op.el.type": "op-geth", + }, ) expect.eq( service_config.files["/network-configs"].artifact_names, @@ -341,7 +356,12 @@ def test_l2_participant_el_launcher_op_nethermind(plan): ) expect.eq( service_config.labels, - {"op.kind": "el", "op.network.id": "2151908", "op.el.type": "op-nethermind"}, + { + "op.kind": "el", + "op.network.id": "2151908", + "op.network.participant.name": "node0", + "op.el.type": "op-nethermind", + }, ) expect.eq( service_config.files["/network-configs"].artifact_names, @@ -412,7 +432,12 @@ def test_l2_participant_el_launcher_op_reth(plan): ) expect.eq( service_config.labels, - {"op.kind": "el", "op.network.id": "2151908", "op.el.type": "op-reth"}, + { + "op.kind": "el", + "op.network.id": "2151908", + "op.network.participant.name": "node0", + "op.el.type": "op-reth", + }, ) expect.eq( service_config.files["/network-configs"].artifact_names, diff --git a/test/l2/participant/input_parser_test.star b/test/l2/participant/input_parser_test.star index 1173784f..6dc2a8fb 100644 --- a/test/l2/participant/input_parser_test.star +++ b/test/l2/participant/input_parser_test.star @@ -72,6 +72,7 @@ def test_l2_participant_input_parser_defaults(plan): labels={ "op.kind": "cl", "op.network.id": "1000", + "op.network.participant.name": "node0", "op.cl.type": "op-node", }, ports={ @@ -91,6 +92,7 @@ def test_l2_participant_input_parser_defaults(plan): labels={ "op.kind": "cl_builder", "op.network.id": "1000", + "op.network.participant.name": "node0", "op.cl.type": "op-node", }, ports={ @@ -110,6 +112,7 @@ def test_l2_participant_input_parser_defaults(plan): labels={ "op.kind": "el", "op.network.id": "1000", + "op.network.participant.name": "node0", "op.el.type": "op-geth", }, ports={ @@ -131,6 +134,7 @@ def test_l2_participant_input_parser_defaults(plan): labels={ "op.kind": "el_builder", "op.network.id": "1000", + "op.network.participant.name": "node0", "op.el.type": "op-geth", }, ports={ @@ -173,6 +177,7 @@ def test_l2_participant_input_parser_defaults(plan): labels={ "op.kind": "cl", "op.network.id": "1000", + "op.network.participant.name": "node1", "op.cl.type": "op-node", }, ports={ @@ -192,6 +197,7 @@ def test_l2_participant_input_parser_defaults(plan): labels={ "op.kind": "cl_builder", "op.network.id": "1000", + "op.network.participant.name": "node1", "op.cl.type": "op-node", }, ports={ @@ -211,6 +217,7 @@ def test_l2_participant_input_parser_defaults(plan): labels={ "op.kind": "el", "op.network.id": "1000", + "op.network.participant.name": "node1", "op.el.type": "op-geth", }, ports={ @@ -232,6 +239,7 @@ def test_l2_participant_input_parser_defaults(plan): labels={ "op.kind": "el_builder", "op.network.id": "1000", + "op.network.participant.name": "node1", "op.el.type": "op-geth", }, ports={