You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
aws lexicon: ecs-update-service / wait-steady-state crash when ECS response has no deployments field (Floci) #937
Floci's aws ecs update-service response has a service object with no deployments field at all (confirmed live: service.deployments is undefined, not an empty array). described.service.deployments[0] throws Cannot read properties of undefined (reading '0') — the optional chaining only guards .id, not the [0] index access itself.
svc?.deployments.length — svc exists (optional chaining succeeds there), but svc.deployments is itself undefined on Floci, so .length throws Cannot read properties of undefined (reading 'length'). Same root cause as above: ?. only guards the first property access, not the chained one after it.
Impact: both capabilities are unusable against Floci today, for every project that uses them (not loomster-specific) — ecs-update-service and wait-steady-state fail unconditionally, regardless of what the caller passes in.
Suggested fix: default deployments to [] when absent, e.g. described.service.deployments?.[0]?.id ?? "" and (svc?.deployments?.length ?? 0) <= 1.
Workaround in use today (loomster, src/components/loom-frontend.component.ts/loom-backend.component.ts): dropped both steps from the deploy composition entirely (documented in-line) until this is fixed upstream — real AWS presumably always includes deployments, so this is Floci-emulation-fidelity-specific, but it blocks local/CI validation via Floci for any project using these capabilities.
Activity
fix(aws): ecs update/wait tolerate Floci's missing `deployments` field (
fix: 3 deploy bugs found wiring loomster (#935, #936, #939) (#944)