Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Regression: Locked stacks do not properly construct dependency list. #745

@mromaszewicz

Description

@mromaszewicz

Consider this scenario:
Stack A has output Foo.
Stack B depends on A::Foo

This is expected to work:
stacks:

- name: A
   enabled: true
   class_path: <something>
- name: B
   enabled: true
   locked: true
   class_path: <something>
   variables:
     SomeInput: ${output A::Foo}

It is expected that stack A must be in the dependency DAG before stack B, but this doesn't happen as of stacker 1.5.0. It works properly in stacker 1.4.1

In stacker 1.5.0, dependencies are built correctly if stack B is not locked. However, at creation time, it should not matter whether a stack is locked or not.

This is easiest to reproduce by having a stacker file with 2 stacks in it, and swap their order if it works initially. It will fail in 1.5.0+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions