Repository navigation
feat(snapshot ecs): add a hidden --generic flag - #1433
Conversation
A new runtime should need only a reporter, not a server release. The first step: snapshot ecs --generic sends a version 1 report (a workload per service, an instance per task, a component per container) to the route every environment type shares. It keeps data the typed report drops: container names, service ARNs, per-task images in a rollout, and tasks not running, with their status. The server reduces it to the typed report, so snapshots do not change (kosli-dev/server#8456). On cyber-dojo ECS the reduced dry run equals the typed one, and a local server made no new snapshot for it. All new code sits in new files, reached only with the flag; the typed path is untouched bar the flag and one branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude finished @JonJagger's task in 1m 38s —— View job Follow-up review complete
Summary (full detail posted separately: #1433 (comment)):
No new bugs found in the changed lines. One spot checked closely: |
ListTasks lists only tasks whose desired status is RUNNING, so a draining task is never seen, and an instance is a running copy of a workload in the v1 report. So --generic sends RUNNING tasks only, as the typed report does, with no platform_status; the workload components come from the first running task (review comments 1 and 2). The empty-flag audit now covers snapshot ecs --generic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up review of bb9253e (
|
A new runtime should need only a reporter, not a server release. The first step: snapshot ecs --generic sends a version 1 report (a workload per service, an instance per task, a component per container) to the route every environment type shares. It keeps data the typed report drops: container names, service ARNs, and per-task images in a rollout. Like the typed report, it sends running tasks only.
The server reduces it to the typed report, so snapshots do not change (kosli-dev/server#8456). On cyber-dojo ECS the reduced dry run equals the typed one, and a local server made no new snapshot for it.
All new code sits in new files, reached only with the flag; the typed path is untouched bar the flag and one branch.
Checklist
--genericis hidden, so the help and docs are unchanged)charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR (n/a: the k8s reporter is untouched)