diff --git a/deployments/sequencer/configs/overlays/hybrid/common/dummy_for_testing/sequencer_config.jsonnet b/deployments/sequencer/configs/overlays/hybrid/common/dummy_for_testing/sequencer_config.jsonnet new file mode 100644 index 00000000000..4bfda7e4e28 --- /dev/null +++ b/deployments/sequencer/configs/overlays/hybrid/common/dummy_for_testing/sequencer_config.jsonnet @@ -0,0 +1,19 @@ +// Overrides layer for the `dummy_for_testing` overlay (hybrid layout). +// Supplies the dummy values the `prepare-production-overlays` CI job needs for env-only synth. +{ + validator_id: '0x64', + + consensus_manager_config: { + network_config: { + advertised_multiaddr: null, + bootstrap_peer_multiaddr: null, + }, + }, + + mempool_p2p_config: { + network_config: { + advertised_multiaddr: null, + bootstrap_peer_multiaddr: null, + }, + }, +} diff --git a/deployments/sequencer/test/test_native_config.py b/deployments/sequencer/test/test_native_config.py index b32ed1858db..732c85d2773 100644 --- a/deployments/sequencer/test/test_native_config.py +++ b/deployments/sequencer/test/test_native_config.py @@ -25,6 +25,7 @@ INTEGRATION_LAYER_DIR = HYBRID_OVERLAYS_DIR / "sepolia-integration" SEPOLIA_ALPHA_LAYER_DIR = HYBRID_OVERLAYS_DIR / "sepolia-alpha" MAINNET_LAYER_DIR = HYBRID_OVERLAYS_DIR / "mainnet" +DUMMY_FOR_TESTING_LAYER_DIR = HYBRID_OVERLAYS_DIR / "common" / "dummy_for_testing" def test_deep_merge_preserves_explicit_null(): @@ -184,3 +185,13 @@ def test_sepolia_alpha_layer_jsonnet_mirrors_combined_yaml(): def test_mainnet_layer_jsonnet_mirrors_combined_yaml(): """REGRESSION: same invariant for the `mainnet` env layer.""" _assert_layer_jsonnet_mirrors_combined_yaml(MAINNET_LAYER_DIR) + + +def test_dummy_for_testing_layer_jsonnet_mirrors_combined_yaml(): + """REGRESSION: same invariant for the `dummy_for_testing` overlay layer. + + This layer supplies the dummy values the `prepare-production-overlays` CI job needs for env-only + synth (validator_id + the consensus/mempool multiaddrs), so its native override jsonnet must + mirror the combined YAMLs like the env layers do. + """ + _assert_layer_jsonnet_mirrors_combined_yaml(DUMMY_FOR_TESTING_LAYER_DIR)