mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
* fix(cloudformation): record REVIEW_IN_PROGRESS event on change-set creation A CREATE change set puts a brand-new stack into REVIEW_IN_PROGRESS, but createChangeSet recorded no stack event, so DescribeStackEvents returned an empty list for it. AWS and LocalStack return at least the REVIEW_IN_PROGRESS stack event; tooling that reads StackEvents[0] right after change-set creation (e.g. the AWS SAM CLI's get_last_event_time) therefore fails on floci with "list index out of range" before any resources are deployed. Record the REVIEW_IN_PROGRESS stack-level event when a CREATE change set creates a new stack, scoped to that path (nested stacks and update change sets are unaffected). Adds an integration test. Fixes #1429 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Vishal Goyal <vishal.goyal@home24.de> * fix(cloudformation): address review — atomic new-stack detection + CREATE gate Detect first stack creation via the computeIfAbsent mapping function (runs at most once per key, so it's atomic and won't double-record the event under concurrent CreateChangeSet calls) instead of a non-atomic containsKey pre-check, and only record the REVIEW_IN_PROGRESS event for CREATE-type change sets (null defaults to CREATE, matching createChangeSet).