Skip to content

Commit 0034285

Browse files
deployment: add hybrid sepolia-integration native override layer + lockstep test
Add the sepolia-integration env sequencer_config.jsonnet override layer consumed by the native config builder, plus its per-layer lockstep test: the layer's jsonnet, flattened to dotted keys, must exactly match the combined config.sequencerConfig of the sepolia-integration YAMLs (with #is_none folded and components.* dropped), keeping the native and preset generation paths from drifting. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 03b48d4 commit 0034285

2 files changed

Lines changed: 89 additions & 4 deletions

File tree

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// Overrides layer for the `sepolia-integration` environment (hybrid layout).
2+
{
3+
chain_id: 'SN_INTEGRATION_SEPOLIA',
4+
native_classes_whitelist: 'All',
5+
recorder_url: 'http://starknet-sepolia-integration.cende-recorder-proxy.starknet.io/',
6+
starknet_url: 'https://feeder.integration-sepolia.starknet.io/',
7+
8+
base_layer_config: {
9+
bpo1_start_block_number: 9456501,
10+
bpo2_start_block_number: 9504747,
11+
fusaka_no_bpo_start_block_number: 9408577,
12+
starknet_contract_address: '0x4737c0c1B4D5b1A687B42610DdabEE781152359c',
13+
},
14+
15+
batcher_config: {
16+
dynamic_config: {
17+
n_concurrent_txs: 2,
18+
},
19+
static_config: {
20+
block_builder_config: {
21+
bouncer_config: {
22+
block_max_capacity: {
23+
state_diff_size: 4000,
24+
},
25+
},
26+
execute_config: {
27+
n_workers: 1,
28+
},
29+
},
30+
first_block_with_partial_block_hash: {
31+
block_hash: '0x1ea2a9cfa3df5297d58c0a04d09d276bc68d40fe64701305bbe2ed8f417e869',
32+
block_number: 35748,
33+
parent_block_hash: '0x77140bef51bbb4d1932f17cc5081825ff18465a1df4440ca0429a4fa80f1dc5',
34+
},
35+
},
36+
},
37+
38+
committer_config: {
39+
storage_config: {
40+
cache_size: 10000000,
41+
},
42+
},
43+
44+
consensus_manager_config: {
45+
context_config: {
46+
dynamic_config: {
47+
min_l2_gas_price_per_height: '',
48+
},
49+
},
50+
staking_manager_config: {
51+
dynamic_config: {
52+
default_committee: '0,10:0x64,1,0x1,true;0x65,1,0x1,true;0x66,1,0x1,true',
53+
},
54+
},
55+
},
56+
57+
gateway_config: {
58+
static_config: {
59+
proof_archive_writer_config: {
60+
bucket_name: 'starkware-starknet-integration',
61+
},
62+
},
63+
},
64+
65+
sierra_compiler_config: {
66+
audited_libfuncs_only: false,
67+
},
68+
69+
state_sync_config: {
70+
static_config: {
71+
central_sync_client_config: {
72+
sync_config: {
73+
store_sierras_and_casms_block_threshold: 0,
74+
},
75+
},
76+
network_config: null,
77+
},
78+
},
79+
}

deployments/sequencer/test/test_native_config.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
33
Covers:
44
- the null-preserving deep-merge,
5-
- the per-layer lockstep test: the common base `sequencer_config.jsonnet` mirrors the combined
6-
`config.sequencerConfig` of the common-layer YAMLs (folded).
5+
- the per-layer lockstep test: each layer's `sequencer_config.jsonnet` mirrors the combined
6+
`config.sequencerConfig` of that layer's YAMLs (folded).
77
"""
88

99
import json
@@ -17,11 +17,12 @@
1717

1818
LAYOUT = "hybrid"
1919

20-
# Per-layer override-file dirs: the base/common layer holds a `sequencer_config.jsonnet` that must
21-
# mirror the combined `config.sequencerConfig` of the YAMLs in the same dir (see
20+
# Per-layer override-file dirs: each layer holds a `sequencer_config.jsonnet` that must mirror the
21+
# combined `config.sequencerConfig` of the YAMLs in the same dir (see
2222
# `_assert_layer_jsonnet_mirrors_combined_yaml`).
2323
HYBRID_OVERLAYS_DIR = DEPLOYMENTS_SEQUENCER / "configs" / "overlays" / LAYOUT
2424
COMMON_LAYER_DIR = HYBRID_OVERLAYS_DIR / "common"
25+
INTEGRATION_LAYER_DIR = HYBRID_OVERLAYS_DIR / "sepolia-integration"
2526

2627

2728
def test_deep_merge_preserves_explicit_null():
@@ -166,3 +167,8 @@ def test_common_layer_jsonnet_mirrors_combined_yaml():
166167
a stale/extra key in the jsonnet, or a value mismatch.
167168
"""
168169
_assert_layer_jsonnet_mirrors_combined_yaml(COMMON_LAYER_DIR)
170+
171+
172+
def test_integration_layer_jsonnet_mirrors_combined_yaml():
173+
"""REGRESSION: same invariant for the `sepolia-integration` env layer."""
174+
_assert_layer_jsonnet_mirrors_combined_yaml(INTEGRATION_LAYER_DIR)

0 commit comments

Comments
 (0)