apollo_deployments,deployment: set storage-reader-server ports as constants#14607
apollo_deployments,deployment: set storage-reader-server ports as constants#14607nimrod-starkware wants to merge 1 commit into
Conversation
08a9e6a to
fa2de48
Compare
nimrod-starkware
left a comment
There was a problem hiding this comment.
@nimrod-starkware made 1 comment.
Reviewable status: 0 of 10 files reviewed, 1 unresolved discussion.
crates/apollo_deployments/src/service.rs line 369 at r1 (raw file):
// auto-templatized — an overridable one must be listed explicitly in `KEYS_TO_BE_REPLACED`; // the rest (e.g. the fixed storage-reader-server ports) keep their literal app_config // value.
shrink comment
Code quote:
// Only `components.*` infra fields are auto-templatized: the layout assigns each component's
// remote URL and port per deployment. Ports/URLs OUTSIDE `components.*` are NOT
// auto-templatized — an overridable one must be listed explicitly in `KEYS_TO_BE_REPLACED`;
// the rest (e.g. the fixed storage-reader-server ports) keep their literal app_config
// value.
nimrod-starkware
left a comment
There was a problem hiding this comment.
@nimrod-starkware resolved 1 discussion.
Reviewable status: 0 of 10 files reviewed, all discussions resolved.
fa2de48 to
78a4998
Compare
ec7a5ab to
43ac4b5
Compare
nimrod-starkware
left a comment
There was a problem hiding this comment.
@nimrod-starkware made 1 comment.
Reviewable status: 0 of 10 files reviewed, 1 unresolved discussion.
crates/apollo_deployments/src/service.rs line 103 at r2 (raw file):
"state_sync_config.static_config.central_sync_client_config.sync_config.store_sierras_and_casms_block_threshold", "state_sync_config.static_config.network_config.#is_none", "state_sync_config.static_config.network_config.port",
is this needed?
Code quote:
"state_sync_config.static_config.network_config.port"
PR SummaryMedium Risk Overview Replacer generation in Hybrid core overlay YAML drops the redundant storage-reader port entries from Reviewed by Cursor Bugbot for commit 6ca2fa5. Bugbot is set up for automated code reviews on this repo. Configure here. |
43ac4b5 to
eadf272
Compare
78a4998 to
601f1fd
Compare
bfabe31 to
b2bea5e
Compare
b2bea5e to
e8bbbb7
Compare
…stants The three storage-reader-server ports (batcher 55011, class_manager 55210, state_sync 55014) are fixed infra constants, not per-deployment overrides. Bake them into the app_configs and applicative_config jsonnet instead of templatizing them as $$$_..._$$$ placeholders, and restrict the generic port/url auto-templatizing in replace_pred to components.* keys only. Add state_sync_config...network_config.port to KEYS_TO_BE_REPLACED to preserve its existing overridability. Drop the now-redundant storage-reader port overrides from the common and testing overlay YAMLs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
e8bbbb7 to
6ca2fa5
Compare

The three storage-reader-server ports (batcher 55011, class_manager 55210,
state_sync 55014) are fixed infra constants, not per-deployment overrides. Bake
them into the app_configs and applicative_config jsonnet instead of templatizing
them as $$$...$$$ placeholders, and restrict the generic port/url
auto-templatizing in replace_pred to components.* keys only. Add
state_sync_config...network_config.port to KEYS_TO_BE_REPLACED to preserve its
existing overridability. Drop the now-redundant storage-reader port overrides
from the common and testing overlay YAMLs.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com