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

feat: Consume image asset metadata from CDK synth #3492

Merged
merged 12 commits into from
Dec 3, 2021

Conversation

mildaniel
Copy link
Contributor

Which issue(s) does this change fix?

Why is this change necessary?

How does it address the issue?

What side effects does this change have?

Checklist

  • Add input/output type hints to new functions/methods
  • Write design document (Do I need to write a design document?)
  • Write unit tests
  • Write/update functional tests
  • Write/update integration tests
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

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

Copy link
Contributor

@jfuss jfuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add integration tests for this, so we know how this behaves on Windows and Linux systems?

@mildaniel
Copy link
Contributor Author

Can we add integration tests for this, so we know how this behaves on Windows and Linux systems?

We have an upcoming task for next sprint to add integration testing for all CDK-based build and local commands so I was deferring it until then. We don't currently have the underlying configurations in the develop branch to add integration tests with CDK.

@mildaniel mildaniel requested a review from jfuss November 25, 2021 01:56
@jfuss
Copy link
Contributor

jfuss commented Nov 27, 2021

We have an upcoming task for next sprint to add integration testing for all CDK-based build and local commands so I was deferring it until then. We don't currently have the underlying configurations in the develop branch to add integration tests with CDK.

I don't understand why we are doing this. We can write integ tests now and assume the template format. We do this already but the same thing: https://github.com/aws/aws-sam-cli/blob/develop/tests/integration/local/invoke/test_integrations_cli.py#L67

I don't mean to be a strict here but I am not inclined to approve a pr without proper testing. We shouldn't be splitting testing from the implementation. We wouldn't accept this from contributors, why would we accept it for maintainers?

@mildaniel
Copy link
Contributor Author

@jfuss That's a completely fair call-out, I will add some integration testing.

I don't understand why we are doing this. We can write integ tests now and assume the template format.

When writing this I was under the assumption that CDK integration tests would start from a CDK app -> cdk synth -> test CFN output. I see that we decided to go with testing starting from the CFN template which won't need some of the changes that would otherwise be required.

@mildaniel mildaniel requested a review from jfuss November 30, 2021 23:19
Copy link
Contributor

@jfuss jfuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple small comments. Thanks for adding integ tests to this pr.

@mildaniel mildaniel requested a review from jfuss December 1, 2021 00:04
Copy link
Contributor

@jfuss jfuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for handling feedback and adding comments to make the code more readable!

@mildaniel mildaniel merged commit df45a82 into aws:develop Dec 3, 2021
@mildaniel mildaniel deleted the resource-metadata-normalizer-update branch December 3, 2021 21:49
mndeveci pushed a commit to mndeveci/aws-sam-cli that referenced this pull request Dec 15, 2021
* Consume image asset metadata

* Make tests use correct os seperator

* Remove unnecessary code

* Remove build dir

* Use pathlib and add test for windows paths

* Update test

* Add integration testing

* Fix tests

* Isolate resources to enable test parallelism

* Remove build dir

* Enable test on windows
mndeveci pushed a commit to mndeveci/aws-sam-cli that referenced this pull request Apr 5, 2022
* Consume image asset metadata

* Make tests use correct os seperator

* Remove unnecessary code

* Remove build dir

* Use pathlib and add test for windows paths

* Update test

* Add integration testing

* Fix tests

* Isolate resources to enable test parallelism

* Remove build dir

* Enable test on windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants