-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix(ecr-assets): fix relative path of tarball asset when using stages #35305
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
base: main
Are you sure you want to change the base?
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.
The pull request linter fails with the following errors:
❌ Fixes must contain a change to an integration test file and the resulting snapshot.
If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.
✅ A exemption request has been requested. Please wait for a maintainer's review.
|
Is it possible to get this PR merged without introducing integration tests into this package? I don't have time to introduce integration tests into this change. The ecr-assets package doesn't come with those tests. |
|
Exemption Request, please see comment above:
|
Hi @abelmokadem , thank you for your contribution! This fix should be accompanied by an update to the existing integration tests, to ensure the new (correct) behaviour is not broken in the future. |
29e292c to
0cf8116
Compare
0cf8116 to
24bde72
Compare
Integ test has been updated; re-requesting a review does not seem to be working
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
This pull request has been removed from the queue for the following reason: The pull request can't be updated
You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. |
aws-cdk-automation
left a comment
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 pull request linter fails with the following errors:
❌ Fixes must contain a change to an integration test file and the resulting snapshot.
If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.
✅ A exemption request has been requested. Please wait for a maintainer's review.
Hi @abelmokadem , just highlighting this since the existing integ test needs to be updated. |
Issue # (if applicable)
N/A
Reason for this change
Docker Images can't be pushed from a staged tarball if CDK Stages are used.
This is because the relative path is not being compared against the correct directory. The current comparison is done against the
assetOutDirinstead of theoutDir.When a CDK app doesn't use stages, these 2 directories are the same and it works.
When a CDK app does use stages, these 2 directories are not the same and the docker tag command breaks.
Description of changes
Use
outDirinstead ofassetOutDir.Describe any new or updated permissions being added
N/A
Description of how you validated changes
I deployed a stack with and without Stages, before and after I made the change.
In the before, the Stage approach failed.
After the change, both versions worked.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license