-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(codepipeline): correctly validate Artifacts used by Actions in th… #2558
fix(codepipeline): correctly validate Artifacts used by Actions in th… #2558
Conversation
…e same Stage. Fixes aws#2549
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please describe the fix in the PR message
}); | ||
|
||
expect(stack).to(haveResourceLike('AWS::CodePipeline::Pipeline', { | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's up here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bug is a validation error, so the expect
is used only to trigger validation. This test fails without the production code changes.
…e same Stage.
The bug was: we were incorrectly iterating though the Actions of a given Stage: first we were iterating through all of the Actions looking at their inputs, and then we looped through the Actions again to look at the outputs. But that won't work if the input of an Action is the output of a different Action in the same Stage with a lower
runOrder
. The fix is to iterate through all of the inputs of a given Action, and then the outputs, and only then move on to the next Action in increasingrunOrder
sequence in the same Stage.Fixes #2549
Pull Request Checklist
design
folderBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.