Skip to content

Commit 1c01342

Browse files
deployment,ci: add hybrid native override layers and their validation tests
Add the base (common) and sepolia-integration sequencer_config.jsonnet override layers consumed by the native config builder, plus the tests that validate them: the AUTHORITATIVE PARITY test (native build vs folded/filtered preset across hundreds of applicative keys) with its negative gate, the "jsonnet mirrors combined YAML" layer tests, and the cross-repo overlay collision / disjoint-leaf-key guards. The devops-dependent tests skip cleanly when the devops overlay checkout is absent (as in CI). Run the full test/ pytest suite in the cdk8s CI workflow instead of only the port-uniqueness test, so these gate in CI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 88fff14 commit 1c01342

4 files changed

Lines changed: 764 additions & 10 deletions

File tree

.github/workflows/sequencer_cdk8s-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ jobs:
7171
cdk8s import
7272
echo "Installing pip dependencies..."
7373
pipenv install
74-
echo "Running port uniqueness tests..."
75-
pipenv run pytest test/test_port_uniqueness.py -v
74+
echo "Running pytest suite..."
75+
pipenv run pytest test/ -v
7676
echo "Synthesizing CDK8s Sequencer app with overlay ${{ env.overlay }}..."
7777
cdk8s synth --app "pipenv run python -m main --namespace ${{ env.namespace }} -l ${{ env.layout }} -o ${{ env.overlay }} --monitoring-dashboard-file ${{ env.monitoring_dashboard_file }} --cluster ${{ env.cluster }}" --output dist1
7878
echo "Synthesizing CDK8s Sequencer app with overlay ${{ env.overlay2 }}..."
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
// Base nested-overrides layer for the `hybrid` layout (env-independent commons only).
2+
{
3+
eth_fee_token_address: '0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7',
4+
strk_fee_token_address: '0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d',
5+
versioned_constants_overrides: null,
6+
7+
batcher_config: {
8+
dynamic_config: {
9+
proposer_idle_detection_delay_millis: 2000,
10+
},
11+
static_config: {
12+
block_builder_config: {
13+
bouncer_config: {
14+
block_max_capacity: {
15+
n_events: 5000,
16+
receipt_l2_gas: 5800000000,
17+
},
18+
},
19+
},
20+
},
21+
},
22+
class_manager_config: {
23+
static_config: {
24+
class_manager_config: {
25+
max_compiled_contract_class_object_size: 4089446,
26+
},
27+
},
28+
},
29+
committer_config: {
30+
storage_config: {
31+
inner_storage_config: {
32+
cache_size: 8589934592,
33+
},
34+
},
35+
verify_state_diff_hash: true,
36+
},
37+
consensus_manager_config: {
38+
consensus_manager_config: {
39+
dynamic_config: {
40+
require_virtual_proposer_vote: false,
41+
timeouts: {
42+
proposal: {
43+
base: 9.1,
44+
max: 9.1,
45+
},
46+
},
47+
},
48+
},
49+
context_config: {
50+
dynamic_config: {
51+
build_proposal_margin_millis: 1000,
52+
compare_retrospective_block_hash: true,
53+
override_eth_to_fri_rate: null,
54+
override_l1_data_gas_price_fri: null,
55+
override_l1_gas_price_fri: null,
56+
override_l2_gas_price_fri: null,
57+
},
58+
},
59+
network_config: {
60+
port: 53080,
61+
},
62+
staking_manager_config: {
63+
dynamic_config: {
64+
override_committee: null,
65+
},
66+
},
67+
},
68+
gateway_config: {
69+
static_config: {
70+
authorized_declarer_accounts: null,
71+
stateful_tx_validator_config: {
72+
max_allowed_nonce_gap: 200,
73+
},
74+
stateless_tx_validator_config: {
75+
max_contract_bytecode_size: 81920,
76+
min_gas_price: 8000000000,
77+
},
78+
},
79+
},
80+
http_server_config: {
81+
static_config: {
82+
port: 8080,
83+
},
84+
},
85+
mempool_config: {
86+
dynamic_config: {
87+
transaction_ttl: 300,
88+
},
89+
},
90+
mempool_p2p_config: {
91+
network_config: {
92+
port: 53200,
93+
},
94+
},
95+
monitoring_endpoint_config: {
96+
port: 8082,
97+
},
98+
sierra_compiler_config: {
99+
max_bytecode_size: 81920,
100+
},
101+
state_sync_config: {
102+
static_config: {
103+
p2p_sync_client_config: null,
104+
rpc_config: {
105+
port: 8090,
106+
},
107+
},
108+
},
109+
}
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: 100,
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+
}

0 commit comments

Comments
 (0)