fix(swarm): accept 3-letter binary memory units KiB/MiB/GiB (T-017) #20

Merged
ahitosly merged 1 commit from fix/T-017-memory-binary-units into main 2026-09-06 01:56:32 +02:00
Owner
  • fix(swarm): accept 3-letter binary memory units KiB/MiB/GiB (T-017)
- fix(swarm): accept 3-letter binary memory units KiB/MiB/GiB (T-017)
parse_memory's suffix regex allows up to 3 characters, but the lookup
table only covered the 2-letter Docker shorthand (Ki/Mi/Gi), so the
standard human-readable form (512MiB, 2GiB) was rejected as invalid
despite matching the pattern. The `pragma: no cover` above the error
path incorrectly asserted it was unreachable.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fu6L3MFjAsGP3wZC15jQsK
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cloud-rennais/hermes-swarm!20
No description provided.