Skip to content

Handle stop/kill with missing container IDs (fixes #878) - #970

Closed
zaineel wants to merge 0 commit into
apple:mainfrom
zaineel:main
Closed

Handle stop/kill with missing container IDs (fixes #878)#970
zaineel wants to merge 0 commit into
apple:mainfrom
zaineel:main

Conversation

@zaineel

@zaineel zaineel commented Dec 18, 2025

Copy link
Copy Markdown

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Fixes #878. container stop and container kill previously exited 0 even when the requested container IDs didn’t exist. This change validates IDs (including prefixes) and returns notFound when any are
missing, aligning the CLI with expected error behavior.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

Commands:

  • SWIFTPM_CACHE_PATH=.swiftpm-cache CLANG_MODULE_CACHE_PATH=.clang-module-cache swift test --filter ContainerStopValidationTests

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.

1 participant