Repository navigation
refactor(atlas-search): split service config out of server.rs (#16255 final slice) - #17038
Merged
Merged
Conversation
…rver/server_config.rs (#16255) Moves the config cluster (RuntimeLimits, client table, ServeSettings, load/init of the 0600 service config, ~365 production lines) from server.rs into a new server/server_config.rs submodule, mirrored byte-identically in fleet-search per the #5433 parity contract; the parity guard gains the seventh pair. home_dir and the service-config path resolvers stay in server.rs: the #5640 HOME diagnostic that the guard normalizes lives in home_dir. server.rs drops from 2505 to ~2140 production lines, clearing the last over-limit file in #16255.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
…in init_service_config)
3 tasks
Contributor
Author
|
Gate results (lane 0640-HJ, job logs read firsthand; full verdict on #16255, comment 7266595871):
Merge-ready for Felix. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#16255 final slice: split the service-config cluster out of server.rs
pkgs/atlas-search/crates/atlas-search/src/server.rswas the last file over the 2500 production-line limit (2505), parity-paired with fleet-search's copy. The split it was waiting on (#15653 parity work) is done: PR #17031 re-mirrored the pair and #15653 is closed.What moves (~365 production lines): the whole
configcluster —RuntimeLimits+ its file form,ClientConfig/RawClientConfig/ServiceConfigFile,ServeSettings,DEFAULT_SHARD_REFRESH_SECONDS,ServeOverrides,load_service_settings,require_loopback,validate_limits,init_service_config, andimpl ServeSettings— into a newserver/server_config.rssubmodule, declared inserver.rsexactly like the earlierserver_error/server_http/server_feedbacksplits. Public items are re-exported (pub use server_config::{...}), so every existing path (server::ServeSettings,server::load_service_settings, …) is unchanged formain.rs/serve.rsand the rest ofserver.rs;require_loopback/validate_limitsbecomepub(super)and are imported by the parent.What deliberately stays in server.rs:
home_dir+default_service_config_path+resolve_service_config_path. The #5640 HOME diagnostic — the one intentional body difference between the two copies, which the parity guard pins and normalizes — lives inhome_dir, so it stays under the existing normalization instead of spreading it to a second pair.Parity: the new file is a seventh verbatim pair (byte-identical outside the pinned headers, following the #10446/#12671 header pattern);
check-fleet-search-parity.shgains the pair + header pins, and its contract test copies the new files too. The twoserver.rsparents still differ only by the pinned HOME line. The now-unusedOpenOptions/Deserializeimports leave both parents identically.Result: both
server.rscopies drop to ~2140 production lines — the production-line guard's over-limit list is empty when this lands.Gate: fleet-command run on this branch (parity contract tests, parity guard, line guard,
cargo test -p atlas-search,cargo test -p fleet-search --features serve --locked, fmt checks) — verdict posted on #16255 by lane 0640-HJ. Merge is Felix's.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T01:42:25Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.