fix(generator): drop hardcoded socket/data paths and legacy indexer fallback #144
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_rpc!144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_socket_paths_143"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
AppState::from_envnow joins the canonical<service>/rpc.sockinstead of the spurious<service>_server/rpc.socklayout (matchesservice.toml+hero_sockets.md).generate/e2e.rs) now resolves its data dir under the Hero var tree (<var-root>/osisdb/<domain>_e2e) instead of/tmp/herozero_<domain>_e2e, solab service --ephemeralkeeps the example inside its scratch sandbox.indexer_reachable()helper inbuild/find_tests_emit.rsdrops the legacyhero_indexer_server.sockfallback — canonicalhero_indexer/rpc.sockonly.benches/index_perf.rs::indexer_socket_path()drops the same legacy fallback symmetrically.generate_ui_state_rsrustdoc updated to match (<service>/rpc.sock).test_scaffold_ui_state_uses_canonical_service_socket_pathpins the canonical path in the scaffoldedstate.rsand asserts the legacy_server/rpc.sockform does not appear.Does not touch
hero_lifecycle,ServiceRpcServer/ServiceAdminServer, or thegenerate_server_main_rs/generate_admin_main_rsbinarymain.rstemplates — those are #142's surface.Test plan
cargo build --workspacecleancargo test -p hero_rpc_generatorpasses (151 unit + 0 bin + 0 doctest = 151 unit tests)AppState::from_envto<svc>/rpc.sock#143
WIP: fix(generator): drop hardcoded socket/data paths and legacy indexer fallbackto fix(generator): drop hardcoded socket/data paths and legacy indexer fallback