Harden runtime error paths and standardize API config reload semantics#141
Open
vsumner wants to merge 6 commits intospacedriveapp:mainfrom
Open
Harden runtime error paths and standardize API config reload semantics#141vsumner wants to merge 6 commits intospacedriveapp:mainfrom
vsumner wants to merge 6 commits intospacedriveapp:mainfrom
Conversation
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.
Summary
This PR started as failing-test + panic hardening and now also standardizes config mutation/reload semantics across API endpoints, with new targeted coverage.
What Changed
Test and runtime hardening
expect/unwrapusage with guarded error handling in channel/worker/config/messaging paths.rustfmtcleanup required by CI.API config mutation standardization
src/api/config.rs:write_validated_config(validate TOML -> write -> reload parsedConfig)reload_all_runtime_configs(reload all liveRuntimeConfiginstances)sync_bindings_and_permissions(sync bindings ArcSwap + Discord/Slack permissions)update_agent_configupdate_provider,delete_providertoggle_platform,disconnect_platformcreate_binding,update_binding,delete_bindingNew API coverage for standardized behavior
api::bindingstests to verify:400 BAD_REQUESTValidation
cargo fmt --all -- --checkcargo test api::bindings::tests:: -- --nocapturecargo test