Skip to content

Fargate default diff fix, logs --follow for arrays, register --rev#12

Merged
tawAsh1 merged 2 commits into
mainfrom
feat/logs-array-follow-register-rev
Jun 12, 2026
Merged

Fargate default diff fix, logs --follow for arrays, register --rev#12
tawAsh1 merged 2 commits into
mainfrom
feat/logs-array-follow-register-rev

Conversation

@tawAsh1

@tawAsh1 tawAsh1 commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Four user-reported items:

1. FARGATE definitions without fargatePlatformConfiguration always diffed as changed

Registering a FARGATE definition without fargatePlatformConfiguration makes AWS fill in {platformVersion: "LATEST"}, so the next diff/deploy never matched the local file again — every deploy registered a new revision. computeDiff now drops that server-filled default when the local file omits the field; an explicitly pinned version (local or remote) still compares normally.

2. logs --follow on an array parent gets the rich tail

logs <array-parent-id> --follow now attaches the same view as run --array: every child interleaved behind a colored per-child prefix, progress bar, and paging beyond 32 children. Works mid-run and as a replay after completion. Without --follow the error message points at --follow or <job-id>:<index>.

3. deregister --rev N — one-shot deregister of specific revisions

Deregisters exactly the given revision(s) (repeatable / comma-separated) instead of --keep-count pruning. Every target must currently be ACTIVE: a typo'd or already-INACTIVE revision fails the whole batch before anything is deregistered. Mutually exclusive with --keep-count / --keep-revision.

4. README documents the --command= form

batchkoi run --command -u parses -u as a flag; arguments that start with a dash need --command=-u. Verified against the binary and documented in both READMEs.

Also: the run/logs polling interval is injectable (App.poll), so the array tail path is covered by tests without real sleeps.

🤖 Generated with Claude Code

- diff: a FARGATE definition registered without
  fargatePlatformConfiguration comes back with {platformVersion:
  "LATEST"} — stop reporting that server-filled default as a change
  (it made every deploy register a new revision)
- logs --follow on an array parent id now attaches the same rich tail
  as run --array: per-child colored prefixes, progress bar, paging;
  without --follow the error points at --follow or <job-id>:<index>
- register --rev N registers a copy of existing revision N as the new
  latest (roll-forward complement to rollback); works with --dry-run
- run/logs polling interval is injectable (App.poll) so the array tail
  is testable without real sleeps
- README (en/ja): document --command= form for dash-leading arguments
  (--command -u parses -u as a flag), plus the new flags

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tawAsh1 tawAsh1 self-assigned this Jun 12, 2026
Swap register --rev (copy roll-forward) for deregister --rev N:
deregister exactly the given revision(s) instead of --keep-count
pruning. Every target must be ACTIVE — a typo'd or already-INACTIVE
revision fails the whole batch before anything is deregistered.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tawAsh1 tawAsh1 merged commit 5a8a35a into main Jun 12, 2026
4 checks passed
@tawAsh1 tawAsh1 deleted the feat/logs-array-follow-register-rev branch June 12, 2026 13:29
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