Skip to content
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

chore(core): verify stack artifacts are written in topological order #8515

Merged
merged 3 commits into from
Jun 16, 2020

Conversation

NetaNir
Copy link
Contributor

@NetaNir NetaNir commented Jun 12, 2020

Add a test to verify stacks are serialized to the manifest file in a topological order, based on their dependencies. By adding this test we are committing to maintain the topological order of the stacks in the manifest file, allowing users to consume it without needing to sort the stacks.

Note that all of the CDK toolkit commands such as cdk list and cdk deploy already assume this and do not sort stacks upon execution.

see cdk list and cdk deploy for reference

I have initially added the test in cx-api module but after more consideration I think it is better suited in the core module since we want to verify this behavior in the context of a CDK application. I have left both tests in this PR for the sake of discussion in the event the reviewer thinks this actually fits better in cx-api.

helps #8436


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@NetaNir NetaNir requested a review from rix0rrr June 12, 2020 05:04
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jun 12, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 92854e5
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@NetaNir NetaNir self-assigned this Jun 12, 2020
@NetaNir NetaNir marked this pull request as draft June 15, 2020 03:36
@rix0rrr rix0rrr marked this pull request as ready for review June 16, 2020 09:43
@mergify
Copy link
Contributor

mergify bot commented Jun 16, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Jun 16, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: bb7b7af
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 02752d3 into master Jun 16, 2020
@mergify mergify bot deleted the neta/verify-stacks-order branch June 16, 2020 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants