Skip to content

apollo_http_server: add client with channel to http server#13566

Open
ArniStarkware wants to merge 1 commit intographite-base/13566from
arni/http_server/add_client_to_server
Open

apollo_http_server: add client with channel to http server#13566
ArniStarkware wants to merge 1 commit intographite-base/13566from
arni/http_server/add_client_to_server

Conversation

@ArniStarkware
Copy link
Copy Markdown
Contributor

@ArniStarkware ArniStarkware commented Mar 29, 2026

Note

Medium Risk
Medium risk because it changes how HttpServer obtains dynamic configuration (adding a second source with expect-based failure) and updates construction/wiring across node startup and tests, which could impact runtime availability if the reader client isn’t provided or diverges.

Overview
HttpServer now accepts and stores a SharedConfigManagerReaderClient in AppState, and get_dynamic_config() fetches the dynamic config from this reader, expects it to be available, and warns if it differs from the existing dynamic_config_rx value.

Construction/wiring is updated accordingly: create_http_server()/HttpServer::new() take the new reader client, node component creation passes it via get_config_manager_reader_client(), and http-server tests/utilities add builder support plus mocks for the new reader client.

Reviewed by Cursor Bugbot for commit 646823f. Bugbot is set up for automated code reviews on this repo. Configure here.

@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

Copy link
Copy Markdown
Contributor Author

ArniStarkware commented Mar 29, 2026

@ArniStarkware ArniStarkware force-pushed the arni/infra/create_component_clients_with_channel branch from 88af4d1 to 86f5075 Compare March 29, 2026 18:19
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 0609a1d to 1d0bdae Compare March 29, 2026 18:19
@ArniStarkware ArniStarkware changed the base branch from arni/infra/create_component_clients_with_channel to graphite-base/13566 March 29, 2026 19:10
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 1d0bdae to dfb3ea5 Compare March 29, 2026 19:10
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from dfb3ea5 to da91acf Compare March 30, 2026 09:11
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from da91acf to b67c907 Compare March 30, 2026 11:08
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch 2 times, most recently from 0b9f758 to 0d7b381 Compare March 31, 2026 11:48
@ArniStarkware ArniStarkware changed the base branch from graphite-base/13566 to arni/apollo_node/wire_config_manager_channel March 31, 2026 11:48
@ArniStarkware ArniStarkware force-pushed the arni/apollo_node/wire_config_manager_channel branch from 65d7e13 to 6194942 Compare March 31, 2026 13:33
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch 2 times, most recently from 25090e8 to d1c2855 Compare March 31, 2026 13:46
@ArniStarkware ArniStarkware force-pushed the arni/apollo_node/wire_config_manager_channel branch from 6194942 to 0e4da33 Compare March 31, 2026 13:46
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from d1c2855 to d9efc82 Compare March 31, 2026 13:58
@ArniStarkware ArniStarkware force-pushed the arni/apollo_node/wire_config_manager_channel branch 2 times, most recently from 4b0aeac to c4a48c5 Compare March 31, 2026 15:00
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from d9efc82 to 0ab9078 Compare March 31, 2026 15:00
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 9eea1e3 to 4542533 Compare April 6, 2026 11:41
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4542533. Configure here.

Comment thread .cursor/rules/shared/comments.md Outdated
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 4542533 to 785f657 Compare April 6, 2026 12:11
@ArniStarkware ArniStarkware force-pushed the arni/apollo_node/move_config_manager_to_top branch from 1cb6d4f to 642c24e Compare April 6, 2026 12:11
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 785f657 to 83e18f1 Compare April 6, 2026 12:12
Copy link
Copy Markdown
Collaborator

@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.

@nadin-Starkware made 1 comment.
Reviewable status: 1 of 8 files reviewed, 1 unresolved discussion (waiting on ArniStarkware).

Comment thread .cursor/rules/shared/comments.md Outdated
Copy link
Copy Markdown
Collaborator

@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.

@nadin-Starkware reviewed 7 files and all commit messages, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on ArniStarkware).

Copy link
Copy Markdown
Contributor Author

@ArniStarkware ArniStarkware left a comment

Choose a reason for hiding this comment

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

@ArniStarkware reviewed 2 files.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on ArniStarkware).

@ArniStarkware ArniStarkware changed the base branch from arni/apollo_node/move_config_manager_to_top to graphite-base/13566 April 9, 2026 19:16
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 83e18f1 to 16361b9 Compare April 9, 2026 19:16
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 16361b9 to 49b2c74 Compare April 9, 2026 19:39
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 49b2c74 to fd6323a Compare April 9, 2026 19:46
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch 2 times, most recently from b05e610 to 989dbd4 Compare April 12, 2026 08:18
@ArniStarkware ArniStarkware force-pushed the graphite-base/13566 branch 2 times, most recently from 35ee42a to 6e538fc Compare April 12, 2026 09:35
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 989dbd4 to 646823f Compare April 12, 2026 09:35
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 646823f to 1619040 Compare April 12, 2026 11:16
@cursor
Copy link
Copy Markdown

cursor bot commented Apr 12, 2026

PR Summary

Medium Risk
Introduces a new config source for HTTP server dynamic config and adds a hard expect that can panic if the reader client fails, plus new wiring across node startup and tests. Overall behavior should be unchanged but misconfiguration or reader/client divergence could surface at runtime via warnings/panics.

Overview
The HTTP server now accepts and stores a LocalConfigManagerReaderClient in AppState, and get_dynamic_config() fetches dynamic config from this reader to cross-check the existing watch-channel config, logging a warning on mismatch (while still using the channel value for now).

Construction is updated end-to-end (HttpServer::new, create_http_server, and node components.rs) to pass the reader client, and tests/test utilities add a MockConfigManagerReaderClient plus builder plumbing so unit tests can configure both config clients consistently.

Reviewed by Cursor Bugbot for commit f9e8f6c. Bugbot is set up for automated code reviews on this repo. Configure here.

@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from 1619040 to f2ffaa3 Compare April 12, 2026 13:44
@ArniStarkware ArniStarkware force-pushed the arni/http_server/add_client_to_server branch from f2ffaa3 to f9e8f6c Compare April 12, 2026 15:22
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