-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: Consume image asset metadata from CDK synth #3492
Conversation
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.
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. |
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? |
@jfuss That's a completely fair call-out, I will add some integration testing.
When writing this I was under the assumption that CDK integration tests would start from a CDK app -> |
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.
Just a couple small comments. Thanks for adding integ tests to this pr.
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.
Thanks for handling feedback and adding comments to make the code more readable!
* 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
* 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
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
make pr
passesmake update-reproducible-reqs
if dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.