-
Notifications
You must be signed in to change notification settings - Fork 601
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
CannotPullContainerError/ASM error message enhancements #4181
Open
nineonine
wants to merge
8
commits into
aws:feature/project-telescope
Choose a base branch
from
nineonine:cannot-pull-container-err-msg
base: feature/project-telescope
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
CannotPullContainerError/ASM error message enhancements #4181
nineonine
wants to merge
8
commits into
aws:feature/project-telescope
from
nineonine:cannot-pull-container-err-msg
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nineonine
force-pushed
the
cannot-pull-container-err-msg
branch
from
May 16, 2024 16:37
5dd5027
to
65a2859
Compare
Improve CannotPullContainerError message
nineonine
force-pushed
the
cannot-pull-container-err-msg
branch
2 times, most recently
from
May 16, 2024 22:05
0a68d36
to
ffcd9bf
Compare
nineonine
force-pushed
the
cannot-pull-container-err-msg
branch
from
May 16, 2024 22:41
ffcd9bf
to
dc51281
Compare
pallymore
reviewed
May 17, 2024
agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/api/errors/error_messages.go
Outdated
Show resolved
Hide resolved
nineonine
commented
May 17, 2024
nineonine
force-pushed
the
cannot-pull-container-err-msg
branch
from
May 18, 2024 01:16
470ee7c
to
ec5361e
Compare
nineonine
force-pushed
the
cannot-pull-container-err-msg
branch
from
May 18, 2024 01:27
ec5361e
to
5d7418b
Compare
amogh09
reviewed
May 24, 2024
* CannotPullContainerError: cleanup, renaming * ASM error: do not use added errormessages code - match on AWS SDK error directly, drop tracing prefix, fix/add more unit tests
amogh09
reviewed
May 30, 2024
amogh09
reviewed
May 31, 2024
nineonine
changed the title
Improve CannotPullContainerError message
CannotPullContainerError/ASM error message enhancements
May 31, 2024
Thanks for this change! Let's please add details about any manual tests performed to validate this changes. The new error messages seen in |
amogh09
approved these changes
May 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This change does a few things:
CannotPullContainerError
, spefically the missing ECR pull permissions, broken image repo url or non-existent repos.ResourceNotFoundException
asm_test.go
implementation to usegomock
Implementation details
error_messages.go
engine.pullAndUpdateContainerReference
we use new functionality to attempt to update error message when image pull failed due CannotPullContainerErrorTesting
error_messages_test.go
asm_test.go
docker_task_engine_test.go
to capture augmented message.asmsecret_test.go
to account for removed prefix and updated messageNew tests cover the changes:
yes
Description for the changelog
Augment CannotPullContainerError/ ASM error messages with extra context to aid in troubleshooting
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.