Skip to content

refactor: extract shared utilities, fix null-safety bugs, prune trivi…#86

Merged
alxsuv merged 2 commits into
mainfrom
refactor/harden-and-prune-tests
Jun 10, 2026
Merged

refactor: extract shared utilities, fix null-safety bugs, prune trivi…#86
alxsuv merged 2 commits into
mainfrom
refactor/harden-and-prune-tests

Conversation

@alxsuv

@alxsuv alxsuv commented Jun 10, 2026

Copy link
Copy Markdown
Member

…al tests

  • Extract ExecutionResultHandler to deduplicate result-switch logic between WorkflowExecutionService and ExecutionStateService
  • Extract WorkflowContextUtil with null-safe context filtering (fixes Collectors.toMap NPE on null values)
  • Add CredentialsStore to CLI for structured credential management
  • Add ShellEscaper utility to core for safe shell argument escaping
  • Fix ExecutionStateService catch block: persist "failed" snapshot on resume crash (was leaving DB stuck in "paused")
  • Fix McpToolDiscovery cache race: stale entries no longer resurface after concurrent invalidation
  • Prune ~3300 lines of trivial/tautological tests across CLI, DSL, and server modules
  • Add meaningful tests: parameterised ExecutionResultHandler coverage, null-value regression, resume-crash snapshot persistence

…al tests

- Extract ExecutionResultHandler to deduplicate result-switch logic between WorkflowExecutionService and ExecutionStateService
- Extract WorkflowContextUtil with null-safe context filtering (fixes Collectors.toMap NPE on null values)
- Add CredentialsStore to CLI for structured credential management
- Add ShellEscaper utility to core for safe shell argument escaping
- Fix ExecutionStateService catch block: persist "failed" snapshot on resume crash (was leaving DB stuck in "paused")
- Fix McpToolDiscovery cache race: stale entries no longer resurface after concurrent invalidation
- Prune ~3300 lines of trivial/tautological tests across CLI, DSL, and server modules
- Add meaningful tests: parameterised ExecutionResultHandler coverage, null-value regression, resume-crash snapshot persistence

Signed-off-by: Aleksandr Suvorov <asuvorov@hensu.io>
Signed-off-by: Aleksandr Suvorov <asuvorov@hensu.io>
@alxsuv alxsuv merged commit c58b6d8 into main Jun 10, 2026
7 checks passed
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.

2 participants