-
Notifications
You must be signed in to change notification settings - Fork 76
deployment: add native config layers for the testing overlays #14645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nimrod-starkware
wants to merge
1
commit into
nimrod/jsonnet/dummy-for-testing-native-layer
Choose a base branch
from
nimrod/jsonnet/testing-overlays-native-layers
base: nimrod/jsonnet/dummy-for-testing-native-layer
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
deployments/sequencer/configs/overlays/hybrid/testing/all-constructs/chain_params.jsonnet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| // chain_params for the `testing/all-constructs` overlay (hybrid layout): clearly-dummy per-chain | ||
| // values plus dummy overrides of the applicative-config defaults, the minimum for native synth to | ||
| // succeed. NONE of these are deployed anywhere; the synth this overlay feeds is only `kubectl | ||
| // validate`d for manifest structure, never for config content. | ||
| { | ||
| mandatory: { | ||
| chain_id: 'SN_DUMMY', | ||
| starknet_url: 'http://dummy-starknet/', | ||
| recorder_url: 'http://dummy-recorder/', | ||
| starknet_contract_address: '0x0', | ||
| base_layer: { | ||
| bpo1_start_block_number: 0, | ||
| bpo2_start_block_number: 0, | ||
| fusaka_no_bpo_start_block_number: 0, | ||
| }, | ||
| staking_default_committee: '0,10:0x64,1,0x1,true', | ||
| proof_archive_bucket_name: '', | ||
| nodes_at_same_cluster: true, | ||
| topology: import 'lib/layouts/hybrid.libsonnet', | ||
| }, | ||
| consensus_bootstrap_peer_multiaddr: null, | ||
| mempool_bootstrap_peer_multiaddr: null, | ||
|
|
||
| // Overrides of the applicative-config defaults; each falls back to `default_replacers` when absent. | ||
| // Dummy values; nothing here is deployed. | ||
| native_classes_whitelist: 'All', | ||
| n_concurrent_txs: 1, | ||
| n_execution_workers: 1, | ||
| committer_cache_size: 1000000, | ||
| audited_libfuncs_only: false, | ||
| central_sync_client_config: null, | ||
| p2p_sync_client_config: {}, | ||
| } |
7 changes: 7 additions & 0 deletions
7
deployments/sequencer/configs/overlays/hybrid/testing/all-constructs/node.jsonnet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // Full per-service SequencerNodeConfig for the `testing/all-constructs` overlay (self-contained testing overlay). | ||
| // Evaluate: jsonnet -J <repo>/crates/apollo_deployments/jsonnet node.jsonnet | ||
| local build = import 'lib/build.libsonnet'; | ||
| build.build({ | ||
| chain_params: import './chain_params.jsonnet', | ||
| node_params: { validator_id: '0x64', node_index: 0 }, | ||
| }) |
40 changes: 40 additions & 0 deletions
40
deployments/sequencer/configs/overlays/hybrid/testing/node-0/chain_params.jsonnet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| // chain_params for the `testing/node-0` overlay (hybrid layout): the mandatory per-chain values plus | ||
| // this overlay's overrides of the applicative-config defaults (the latter fall back to | ||
| // `default_replacers`). Read directly by the applicative config. Functional overlay deployed by | ||
| // `hybrid_system_test.yaml`. | ||
| { | ||
| mandatory: { | ||
| chain_id: 'CHAIN_ID_SUBDIR', | ||
| starknet_url: 'https://integration-sepolia.starknet.io/', | ||
| recorder_url: 'http://dummy-recorder-service.dummy-recorder.svc.cluster.local:8080', | ||
| starknet_contract_address: '0x5FbDB2315678afecb367f032d93F642f64180aa3', | ||
| base_layer: { | ||
| bpo1_start_block_number: 13205504, | ||
| bpo2_start_block_number: 13410304, | ||
| fusaka_no_bpo_start_block_number: 13164544, | ||
| }, | ||
| staking_default_committee: '0,100:0x64,1,0x1,true', | ||
| proof_archive_bucket_name: '', | ||
| nodes_at_same_cluster: true, | ||
| topology: import 'lib/layouts/hybrid.libsonnet', | ||
| }, | ||
| consensus_bootstrap_peer_multiaddr: null, | ||
| mempool_bootstrap_peer_multiaddr: null, | ||
|
|
||
| // Overrides of the applicative-config defaults; each falls back to `default_replacers` when absent. | ||
| native_classes_whitelist: 'All', | ||
| eth_fee_token_address: '0x1001', | ||
| strk_fee_token_address: '0x1002', | ||
| proposer_idle_detection_delay_millis: 2000, | ||
| n_execution_workers: 28, | ||
| committer_cache_size: 1000000, | ||
| proposal_timeout_max: 15.0, | ||
| min_gas_price: 3000000000, | ||
| audited_libfuncs_only: false, | ||
| compare_retrospective_block_hash: false, | ||
| central_sync_client_config: null, | ||
| p2p_sync_client_config: {}, | ||
| state_sync_network_config: { | ||
| port: 55010, | ||
| }, | ||
| } | ||
|
cursor[bot] marked this conversation as resolved.
cursor[bot] marked this conversation as resolved.
|
||
7 changes: 7 additions & 0 deletions
7
deployments/sequencer/configs/overlays/hybrid/testing/node-0/node.jsonnet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // Full per-service SequencerNodeConfig for the `testing/node-0` overlay (self-contained testing overlay). | ||
| // Evaluate: jsonnet -J <repo>/crates/apollo_deployments/jsonnet node.jsonnet | ||
| local build = import 'lib/build.libsonnet'; | ||
| build.build({ | ||
| chain_params: import './chain_params.jsonnet', | ||
| node_params: { validator_id: '0x64', node_index: 0 }, | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.