chore(server): remove dead code + cruft (#138 cleanup) #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_proc!144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_cleanup_138"
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?
Cleanup: dead code + cruft removal (#138 — cleanup + triage)
Scope of this PR: repo cleanup + dead-code removal + open-issue triage. The "solid tests + bug fixes" parts of #138 are deferred to follow-up PRs to keep this reviewable.
Removed — 96 files, +25 / −17,070
Cruft
.hero/build_logs/*(19 committed build logs); gitignore/.hero/_archive/(61 obsolete files incl. a strayCargo.toml.hero_builder_backup)Dead code (each removal build- and clippy-verified)
db/rpc.rs(1324 lines) — dead duplicate JSON-RPC dispatcher, zero callers → Closes #130rpc/{action,debug,log,quick_service,run,schedule,service}.rs— the live server routes via the oschema-generatedrpc::impls::*; commenting these out compiles clean (build-proven dead)rpc/{job,secret,system}.rsto only the helpers the live impls call (apply_inputs,init_secrets_catalogue,sweep_orphan_sockets) — ~1,600 dead handler lines removed (job 812→45, secret 939→292, system 313→118)rpc::job::handle_logsVerification — behavior-neutral
cargo build --workspace+cargo clippy --workspaceclean after every step. The integration suite was run through an isolated daemon on both this branch and the development baseline:Identical pass band and identical failing set on both — the residual failures (4×
daemon_singleton::*,cleanup::clean_test_data_is_idempotent, theparallel_jobs_logging/service_log_isolation#141 log-race,jobs::delete_removes_log_files_on_disk) are pre-existing harness/flaky failures, not introduced by this PR. Dead-code removal changes no runtime behavior.Open-issue triage
Closes #130), #111 (server no longer hard-refuses withoutFORGE_TOKEN/WEBROOT— status-only/defaulted in 0.6.0, no refuse logic in startup).Refs #138
- Delete rpc/{action,debug,log,quick_service,run,schedule,service}.rs — the hand-rolled dispatcher is gone; requests route through the oschema-generated rpc::impls per-domain services, which do not call these legacy handle_* fns (build-proven: removing them compiles clean) - Refresh the stale mod.rs doc that claimed they were a retained logic library Refs #138- Drop the unused single-domain handle_* fns from rpc/{job,secret,system}.rs, keeping only the helpers the live impls call: job::apply_inputs, secret::init_secrets_catalogue, system::sweep_orphan_sockets - ~1600 dead lines removed (job 812->45, secret 939->292, system 313->118) - Fix two stale doc-comments referencing the removed rpc::job::handle_logs Refs #138