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 Those values are set in applicative jsonnet and static/replacer
Reviewed by Cursor Bugbot for commit 5747cee. Bugbot is set up for automated code reviews on this repo. Configure here. |
43ac4b5 to
eadf272
Compare
78a4998 to
601f1fd
Compare
982abe5 to
9122ce3
Compare
9896355 to
8f6b34c
Compare
9122ce3 to
d444ae2
Compare
8f6b34c to
e7ae755
Compare
d444ae2 to
895dac1
Compare
e7ae755 to
347c7b5
Compare
347c7b5 to
ff89371
Compare
ff89371 to
dc46e17
Compare
02745d0 to
c5f1afb
Compare
eaf1937 to
e0f5a55
Compare
387c812 to
bde6f0d
Compare
e0f5a55 to
8ce57de
Compare
8ce57de to
cacef4a
Compare
bde6f0d to
89f0a5a
Compare
cacef4a to
c77eb44
Compare
c77eb44 to
d9f7579
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>
a1266de to
d71f1a4
Compare
d9f7579 to
5747cee
Compare
nimrod-starkware
left a comment
There was a problem hiding this comment.
@nimrod-starkware resolved 1 discussion.
Reviewable status: 0 of 13 files reviewed, all discussions resolved (waiting on dan-starkware and matanl-starkware).

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