mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
Add a deterministic regression test: a nested stack resource that fails to create must roll the parent back rather than report CREATE_COMPLETE with its Fn::GetAtt output left as the raw literal. It fails on the pre-#3609 matching logic and passes on main. #3609 fixed #3854. The volatile on Stack.status stays as a documented invariant (the deploy thread writes status last); it is not the fix. Refs #3854 Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
This commit is contained in:
1 parent
a6d330384e
commit
ee4acfdf81
2 files changed
+102
-3
No files matched your search
@@ -14,7 +14,15 @@ public class Stack {
|
||||
/** AWS account that owns this stack; absent only on legacy records. */
|
||||
private String accountId;
|
||||
private String region;
|
||||
private String status = "CREATE_IN_PROGRESS";
|
||||
/**
|
||||
* ExecuteChangeSet hands deployment to a background executor and returns without waiting for
|
||||
* it, so a caller (DescribeStacks) observes this field from a different thread than the one
|
||||
* that sets it. It is always the last field a deploy writes, after resources, exports and
|
||||
* outputs; {@code volatile} gives that ordering a happens-before edge, so a reader that
|
||||
* observes a terminal status is guaranteed to also see every write that preceded it, such as a
|
||||
* nested stack's resolved {@code Outputs.*} attributes.
|
||||
*/
|
||||
private volatile String status = "CREATE_IN_PROGRESS";
|
||||
private String statusReason;
|
||||
private Instant creationTime = Instant.now();
|
||||
private Instant lastUpdatedTime;
|
||||
|
||||
Reference in new issue
Block a user