Skip to content

apollo_infra: add component config validations #8616

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

Conversation

nadin-Starkware
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator Author

nadin-Starkware commented Aug 17, 2025

@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_add_component_config_validations branch from 582199b to a7504f0 Compare August 17, 2025 12:06
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_make_local_server_and_remote_client_optional branch from 5b4b13d to dfc6224 Compare August 17, 2025 12:31
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_add_component_config_validations branch 2 times, most recently from 413d6eb to 64a6fdb Compare August 17, 2025 13:24
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_make_local_server_and_remote_client_optional branch from dfc6224 to 3e7824c Compare August 17, 2025 13:24
@nadin-Starkware nadin-Starkware changed the base branch from 08-17-apollo_infra_make_local_server_and_remote_client_optional to graphite-base/8616 August 18, 2025 05:04
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_add_component_config_validations branch from 64a6fdb to c797692 Compare August 18, 2025 05:09
@nadin-Starkware nadin-Starkware changed the base branch from graphite-base/8616 to 08-17-apollo_infra_make_local_server_and_remote_client_optional August 18, 2025 05:09
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_add_component_config_validations branch 2 times, most recently from 5b3280a to 6d15594 Compare August 18, 2025 06:33
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_make_local_server_and_remote_client_optional branch from 5a857b5 to 0001539 Compare August 18, 2025 06:33
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_add_component_config_validations branch from 6d15594 to 706cf18 Compare August 18, 2025 06:34
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_make_local_server_and_remote_client_optional branch from 0001539 to e363b64 Compare August 18, 2025 06:34
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_add_component_config_validations branch from 706cf18 to 8d38fc7 Compare August 18, 2025 07:55
@nadin-Starkware nadin-Starkware changed the base branch from 08-17-apollo_infra_make_local_server_and_remote_client_optional to main-v0.14.0 August 18, 2025 08:10
@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_add_component_config_validations branch from 8d38fc7 to 57aabf5 Compare August 18, 2025 08:10
Copy link

graphite-app bot commented Aug 18, 2025

Merge activity

  • Aug 18, 8:11 AM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 4 files reviewed, 4 unresolved discussions


crates/apollo_node/src/config/definitions.rs line 30 at r2 (raw file):

#[derive(Debug, Clone, Copy)]
pub enum Expected {

Too abstract imo. WDYT about ConfigExpectation?

Code quote:

Expected

crates/apollo_node/src/config/definitions.rs line 30 at r2 (raw file):

#[derive(Debug, Clone, Copy)]
pub enum Expected {

Needed?

Code quote:

pub

crates/apollo_node/src/config/definitions.rs line 32 at r2 (raw file):

pub enum Expected {
    Required,
    Forbidden,

Let's call this Redundant? Forbidden is too harsh imo.

Code quote:

Forbidden

crates/apollo_node/src/config/component_execution_config.rs line 289 at r2 (raw file):

fn to_presence<T>(opt: &Option<T>) -> Presence {
    if opt.is_some() { Presence::Present } else { Presence::Absent }
}

Please place near the definition of the enum.
Consider implementing Into or From traits (or their reference variant)

Code quote:

fn to_presence<T>(opt: &Option<T>) -> Presence {
    if opt.is_some() { Presence::Present } else { Presence::Absent }
}

@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_add_component_config_validations branch from 57aabf5 to 3e6c7bd Compare August 18, 2025 10:06
Copy link
Collaborator Author

@nadin-Starkware nadin-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 4 files reviewed, 4 unresolved discussions (waiting on @Itay-Tsabary-Starkware)


crates/apollo_node/src/config/component_execution_config.rs line 289 at r2 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Please place near the definition of the enum.
Consider implementing Into or From traits (or their reference variant)

Done.


crates/apollo_node/src/config/definitions.rs line 30 at r2 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Too abstract imo. WDYT about ConfigExpectation?

Done.


crates/apollo_node/src/config/definitions.rs line 30 at r2 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Needed?

Done.


crates/apollo_node/src/config/definitions.rs line 32 at r2 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Let's call this Redundant? Forbidden is too harsh imo.

Done.

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 4 files reviewed, 4 unresolved discussions (waiting on @nadin-Starkware)


crates/apollo_node/src/config/definitions.rs line 30 at r2 (raw file):

Previously, nadin-Starkware (Nadin Jbara) wrote…

Done.

I should have asked for that to be applied to the Presence enum as well, apologies for the implicitness.

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 4 files reviewed, 4 unresolved discussions (waiting on @nadin-Starkware)


crates/apollo_node/src/config/definitions.rs line 32 at r3 (raw file):

pub(crate) enum ConfigExpectation {
    Required,
    Redundant,

alphabetize please (both)

Code quote:

    Required,
    Redundant,

@nadin-Starkware nadin-Starkware force-pushed the 08-17-apollo_infra_add_component_config_validations branch from 3e6c7bd to 6bccdb3 Compare August 18, 2025 10:33
Copy link
Collaborator Author

@nadin-Starkware nadin-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 4 files reviewed, 2 unresolved discussions (waiting on @Itay-Tsabary-Starkware)


crates/apollo_node/src/config/definitions.rs line 30 at r2 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

I should have asked for that to be applied to the Presence enum as well, apologies for the implicitness.

Done.


crates/apollo_node/src/config/definitions.rs line 32 at r3 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

alphabetize please (both)

Done.

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 2 files at r1, 1 of 3 files at r2, 2 of 2 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nadin-Starkware)

@nadin-Starkware nadin-Starkware added this pull request to the merge queue Aug 18, 2025
Merged via the queue into main-v0.14.0 with commit 80207e0 Aug 18, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants