Skip to content

fix: retry docker pull network errors instead of failing deployments - #1836

Open
aws-kevinrickard wants to merge 8 commits into
mainfrom
fix/docker-pull-retry-unknown-errors
Open

fix: retry docker pull network errors instead of failing deployments#1836
aws-kevinrickard wants to merge 8 commits into
mainfrom
fix/docker-pull-retry-unknown-errors

Conversation

@aws-kevinrickard

@aws-kevinrickard aws-kevinrickard commented Aug 17, 2026

Copy link
Copy Markdown
Member

Problem

DefaultDockerClient.pullImage classifies a failed docker pull by substring-matching docker's stderr against seven network-error strings:

"read: connection timed out"  "net/http"  "Temporary failure in name resolution"
"request canceled"  "timeout"  "no such host"  "dial tcp"

A match becomes ConnectionException, which retries indefinitely. Everything else becomes DockerPullException, which no retry config lists as retryable, and RetryUtils rethrows when nothing matches. So an unmatched error fails the deployment on the first attempt, with no backoff and no second try.

A device whose connection fails over mid-pull reports:

DOCKER_PULL_ERROR: Failed to download docker image. Unexpected error while trying to perform
docker pull - Error response from daemon: Get "https://<acct>.dkr.ecr.<region>.amazonaws.com/v2/
<repo>/manifests/sha256:...": read tcp 172.28.1.230:52044->34.204.60.241:443:
read: connection reset by peer

That matches none of the seven: it says read tcp rather than dial tcp, and read: connection reset by peer rather than read: connection timed out.

dial tcp does match, which is why the failure looks intermittent. A failover landing before the connection opens retries indefinitely and stays invisible; one landing mid-transfer produces read tcp and fails outright. Pulls run long enough to make mid-transfer failover the likely case.

The gap is structural. Each incident has extended the allowlist by one string (#1369, then #1507 for dial tcp), so any transport error nobody anticipated fails a deployment with zero retries. Every other downloader classifies by exception type instead — S3Downloader and GreengrassRepositoryDownloader retry IOException, so a connection reset during an S3 download already retries today.

One more string will not fix this

docker exposes no machine-readable signal. On docker 25.0.14, a DNS failure, a manifest unknown and an invalid reference all exit 1, and docker pull offers no --format. The Engine API reports failures as {"errorDetail":{"message":"..."}} inside a 200 response — the same string wearing JSON.

Four layers wrap that text: the docker CLI, dockerd, containerd, and the Go standard library. Go once exposed the predicate this code needs and has since deprecated it:

// Deprecated: Temporary errors are not well-defined.
// Most "temporary" errors are timeouts, and the few exceptions are surprising.
// Do not use this method.
Temporary() bool

The layer producing these errors gave up classifying them. This change therefore layers imperfect signals rather than chasing an exhaustive list.

Fix

Six separately reviewable commits described below in logical rather than commit order, plus one test-only commit.

1. Classify by the Go net.OpError shape. Go renders an OpError as "<op> <net> <source>-><addr>: <cause>". Matching the op prefix — read tcp and write tcp, joining dial tcp — catches any TCP-layer failure whatever cause follows, including causes docker has never emitted. Doing so moves the dependency onto the stable half of the string: the standard library generates the prefix and has not changed it since Go 1.0, whereas the cause is a syscall errno string that varies by platform and kernel. The old allowlist enumerated the varying half.

Transport causes still match on their own, because docker and containerd sometimes drop the op prefix when wrapping an error raised while copying a layer: connection reset by peer, connection refused, connection aborted, broken pipe, network is unreachable, network is down, host is unreachable, no route to host, i/o timeout, EOF, unexpected EOF, context deadline exceeded, server misbehaving.

All seven original strings remain, so nothing that already retried indefinitely stops. Two now match case-insensitively, which only widens them.

2. Match transport failures raised above net. Some layers never build an OpError. crypto/tls reports remote error: tls: bad record MAC, tls: use of closed connection and remote error: tls: internal error; HTTP/2 reports http2: server sent GOAWAY, http2: client connection lost and stream error: stream ID N; INTERNAL_ERROR; containerd discards the OpError while copying a layer, leaving read |0: file already closed. These now match, along with context canceled.

Only wire-level TLS failures qualify. When the peer rejects our certificate or we distrust theirs, no retry helps, so x509:, bad certificate and handshake failure stay out and the code says why. Registry 5xx stays out too: retryable, but not transport, and a registry returning one persistently is a fault that should surface.

3. Fall back on device connectivity. runWithConnectionErrorCheck already infers connectivity for DockerServiceUnavailableException; the same inference now covers UnknownDockerPullException. When MQTT is down, an unrecognized pull failure more likely reflects that outage than anything the registry said, so it retries until connectivity returns. An online device still gets the bound, which preserves the no-hang property.

Two limits. MQTT reachability does not prove registry reachability, since the endpoints differ and can diverge under a proxy. And detection lags: keep-alive defaults to 60s with a 30s ping timeout, so getMqttOnline can report online for up to roughly 90s after connectivity drops. A pull failing inside that window escapes the inference, which is why the string matching still carries the reported case. This signal backs up the strings rather than replacing them.

4. Retry the remainder instead of failing immediately. Six unrecoverable errors — manifest unknown, no matching manifest for, invalid reference format, no space left on device, authentication required, requested access to the resource is denied — now map explicitly to DockerPullException and fail fast. All six already failed fast, so they become non-retryable by intent rather than by omission. Anything matching neither list becomes the new UnknownDockerPullException and retries 5 times at 10s→2m, roughly 75–150 seconds with jitter. Only the currently broken bucket changes behavior.

This tier stays bounded because it catches errors nothing is known about. Nucleus imposes no deployment timeout by design — DefaultDeploymentTask and DeploymentService both block without one and delegate detection downstream — so routing unknowns to the indefinite tier would hang a deployment forever on a permanent error the list does not yet name, recoverable only by cancelling it. Guessing wrong should cost minutes, not a stuck device. That also rules out reusing finiteAttemptsRetryConfig, whose 30 attempts at 10s→32m take hours.

UnknownDockerPullException extends DockerPullException, so exhausting the retries still reports DOCKER_PULL_ERROR with the same text. Because RetryUtils matches with isInstance and only the subclass appears in a retry config, a plain DockerPullException still fails fast.

5. Back off each differentiated retry config independently. runWithRetry(DifferentiatedRetryConfig) tracked one retryInterval shared by every config in the list, and slept on it before clamping to the matched config's ceiling — so a config with a high ceiling could ramp the interval and leave a config with a lower ceiling sleeping far past its own. Both existing callers hid this: DeploymentDocumentDownloader pairs two configs both flat at 1 minute, and the single-config overload cannot interfere with itself. Pairing 32-minute and 2-minute ceilings, as item 4 does, makes it reachable — several DockerServiceUnavailableException failures ramp the interval toward 32 minutes, and an UnknownDockerPullException arriving afterwards sleeps that long despite its own ceiling. Tracking the interval per config fixes it and leaves both existing callers unaffected. Without this, item 4's bounded tier does not hold to the 75–150s it claims.

6. Lower the indefinite tier's ceiling from 64 to 5 minutes. Droppable without affecting the rest. At 64 minutes, a device seven failures in waits an hour between attempts, so backoff gates recovery even after the network returns. The other downloaders retry at a flat 1 minute. Five minutes keeps exponential backoff — a 225s average sleep against flat-1-minute's 45s, so roughly a fifth of the requests during a sustained outage — while bounding recovery latency.

Note the scope: infiniteAttemptsRetryConfig also covers the ECR auth-token fetch and docker login, so this raises their steady-state retry rate too. That looks desirable for the same reason, but it is wider than the pull path.

Testing

DefaultDockerClientTest (new) covers the two extracted predicates with 35 cases across network, known non-retryable and unrecognized errors. Each case also asserts the two classifications agree, since isConnectionError runs first. The network group quotes the reported string verbatim and fails against the previous code, and includes a read tcp error whose cause is deliberately a string docker does not emit, pinning the op prefix as the mechanism rather than the cause list.

DockerImageDownloaderTest gains four cases: an unknown error retried to the bound and then surfacing as PackageDownloadException, asserting the attempt count so it fails against the old single-attempt behavior; one clearing on the second attempt; one on an offline device succeeding on the fifth attempt, which exceeds the bounded limit and so passes only via the offline inference — reverting that inference makes it fail, confirming it discriminates; and a plain DockerPullException still failing in one attempt.

RetryUtilsTest gains a case pairing a config that ramps a 2s interval to 4s with one fixed at 10ms, asserting total elapsed time. It fails at 5641ms against the shared interval and passes at 1932ms with the per-config fix. A single large interval rather than a ramp over several small ones puts roughly 490ms either side of the 2500ms threshold, so no plausible Thread.sleep overshoot can flip the result.

The pre-existing GIVEN_network_error_WHEN_download_docker_image_THEN_retry_download_image_until_succeed passes unchanged and guards fail-fast against regression. All 63 tests across the two docker classes pass, as do RetryUtilsTest and DeploymentDocumentDownloaderTest (the other DifferentiatedRetryConfig caller), and checkstyle:check, pmd:check and spotbugs:check run clean.

Notes

Left for separate changes:

  • DOCKER_PULL_TIMEOUT is the bare string "timeout", and isConnectionError runs before isNonRetryableError, so a non-retryable error containing timeout reaches the indefinite tier. This predates the change and stays untouched, so the claim that no previously matched string stops matching holds exactly.
  • Classification still reads docker stderr. The OpError shape and the connectivity fallback narrow the exposure without removing it.
  • DockerImageDownloader.run() nests the indefinite tier inside the finite one, so a ConnectionException never reaches the outer tier.

…tely

A failed docker pull is classified by substring-matching the docker CLI's
stderr against a list of seven known network-error strings. Anything that
matches becomes ConnectionException and is retried; anything that does not
becomes DockerPullException, which appears in no retry config's
retryableExceptions list and so fails the deployment on the first attempt.

A device whose network fails over mid-pull reports:

  read tcp 172.28.1.230:52044->34.204.60.241:443: read: connection reset by peer

That matches none of the seven. It is read tcp rather than dial tcp, and
read: connection reset by peer rather than read: connection timed out. The
same failover happening a moment earlier, before the connection is
established, produces dial tcp and does retry, which is why the failure looks
intermittent and why redeploying succeeds.

Invert the default for this classification. Known network errors keep mapping
to ConnectionException and its indefinite retry, and a new explicit list of
errors a retry cannot recover from (manifest unknown, no matching manifest,
invalid reference format, no space left on device, authentication required,
access denied) keeps mapping to DockerPullException and failing fast. Every
one of those already failed fast before this change, so their behavior is
unchanged. What changes is the remainder: an error matching neither list is
now UnknownDockerPullException, retried up to 5 times at 10s to 2m before the
deployment fails.

Bounding those retries rather than routing them to the indefinite tier keeps
the failure mode for a genuinely permanent error that the non-retryable list
does not yet name to a bounded delay before the same failure surfaces, rather
than a deployment that never completes. UnknownDockerPullException extends
DockerPullException so the deployment error code reported once retries are
exhausted is still DOCKER_PULL_ERROR.
The indefinite retry tier for docker registry network errors backs off
exponentially from 1 minute to a 64 minute ceiling, so after roughly seven
consecutive failures a device waits an hour between attempts. On a device
whose connectivity recovers in between, recovery is gated on that interval
rather than on the network, and the deployment looks stalled.

The other artifact downloaders retry network errors indefinitely at a flat 1
minute (S3Downloader, GreengrassRepositoryDownloader), so this tier is the
outlier. Cap it at 5 minutes: exponential backoff is retained, so a sustained
outage still costs roughly a twelfth of the requests a flat 1 minute retry
would make, while worst-case recovery latency drops from an hour to 5
minutes.
* @return true if the error is a known network error
*/
static boolean isConnectionError(String err) {
String lowerCaseErr = err.toLowerCase();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

toLowerCase

The parameterless versions of String.toLowerCase() and String.toUpperCase() use the default locale of the JVM when transforming strings. This can have unintended results, including difficult-to-debug transient failures because case mapping differs based on locale.

Even if you aren’t writing code for a user experience that’s displayed to a customer, system internal code often uses case folding to normalize strings for comparison.
Not doing so can missing locale lead to errors when running on systems that are configured to use a different system locale. This can include developer desktops or build servers (not just your fleet hosts): many hours have been spent debugging errors that only occur on a specific machine due to its locale configuration.

Recommended solutions:

Always pass in a Locale.

Language or locale-dependent processing:

Get the locale from the platform, use the language of the content, or configure it in your code and pass that to the method.

String firstName = &#34;Ichabod&#34;; 
Locale locale = // Where you obtain the locale from is platform dependent
String lowerCaseFirstName = firstName.toLowerCase(locale);

Internal processing that isn’t locale-dependent:

Example: S3 bucket name

Always specify the language/country-neutral locale Locale.ROOT.

String imgTag = &#34;IMG&#34;; 
if (&#34;img&#34;.equals(imgTag.toLowerCase(Locale.ROOT)) {    
// do something 
}

* @return true if the error is known to be non-retryable
*/
static boolean isNonRetryableError(String err) {
String lowerCaseErr = err.toLowerCase();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

toLowerCase

The parameterless versions of String.toLowerCase() and String.toUpperCase() use the default locale of the JVM when transforming strings. This can have unintended results, including difficult-to-debug transient failures because case mapping differs based on locale.

Even if you aren’t writing code for a user experience that’s displayed to a customer, system internal code often uses case folding to normalize strings for comparison.
Not doing so can missing locale lead to errors when running on systems that are configured to use a different system locale. This can include developer desktops or build servers (not just your fleet hosts): many hours have been spent debugging errors that only occur on a specific machine due to its locale configuration.

Recommended solutions:

Always pass in a Locale.

Language or locale-dependent processing:

Get the locale from the platform, use the language of the content, or configure it in your code and pass that to the method.

String firstName = &#34;Ichabod&#34;; 
Locale locale = // Where you obtain the locale from is platform dependent
String lowerCaseFirstName = firstName.toLowerCase(locale);

Internal processing that isn’t locale-dependent:

Example: S3 bucket name

Always specify the language/country-neutral locale Locale.ROOT.

String imgTag = &#34;IMG&#34;; 
if (&#34;img&#34;.equals(imgTag.toLowerCase(Locale.ROOT)) {    
// do something 
}

A docker pull that fails at the network transport layer is recoverable once
connectivity is restored, so it belongs in the indefinite retry tier alongside
the errors already classified as ConnectionException. The classification only
recognized transport failures that happened before the connection was
established, matching "dial tcp" but nothing for a connection that dies
mid-transfer, so the error a device reports when its network fails over during
a pull was not recognized as a network error at all:

  read tcp 172.28.1.230:52044->34.204.60.241:443: read: connection reset by peer

Match on the Go net.OpError op prefix. Go renders that error as
"<op> <net> <source>-><addr>: <cause>", so "read tcp" and "write tcp" classify
a failure at the TCP layer regardless of which cause follows, including causes
docker has not been observed emitting. This is what makes the classification
robust rather than exhaustive: previously each new cause string needed to be
enumerated, and the customer-reported error is precisely a cause that was not.

Also match transport-level causes on their own, since docker and containerd
surface some of them without an op prefix when wrapping an error raised while
copying an image layer: connection reset by peer, connection refused,
connection aborted, broken pipe, network is unreachable, network is down, host
is unreachable, no route to host, i/o timeout, EOF and unexpected EOF, context
deadline exceeded, and server misbehaving.

The previously matched strings are all retained, so no error that was already
retried indefinitely stops being. Two of them were matched case sensitively
and are now matched case insensitively like the rest, which only widens what
they match. connection refused and no route to host are listed explicitly but
change nothing on their own, as Go always prefixes them with dial tcp.

Collapse both classifications into lists rather than boolean chains, which
keeps the matching in one place as the number of entries grows.

Unrecognized errors continue to route to UnknownDockerPullException and its
bounded retry, which remains the safety net for a genuinely novel error. This
change narrows what reaches it to errors that are not identifiable as
transport failures at all.
Matching the Go net.OpError op prefix covers any transport failure that
reaches us as a net.OpError, whatever cause follows it. It does not cover
transport failures raised at a layer that does not produce one, which arrive
with no op prefix to match:

- crypto/tls errors are not OpErrors, so a connection corrupted or torn down
  mid-stream reports "remote error: tls: bad record MAC", "tls: use of closed
  connection", or "remote error: tls: internal error"
- HTTP/2 connection and stream failures report "http2: server sent GOAWAY",
  "http2: client connection lost", or "stream error: stream ID N;
  INTERNAL_ERROR"
- containerd discards the OpError when wrapping a failure while copying an
  image layer, leaving "read |0: file already closed"

Add these, plus "context canceled" alongside the "request canceled" already
matched. http2 is matched on its package prefix for the same reason net/http
already is; a stream error carries no such prefix and is matched separately.

Only wire-level TLS failures are listed. An error reporting that the peer
rejected our certificate or that we do not trust theirs is a configuration
problem a retry cannot fix, so "x509:", "bad certificate" and "handshake
failure" are deliberately absent, and are noted as such so they are not added
later by pattern-matching on the others.

Registry 5xx responses are also deliberately absent. A gateway error is
retryable but is not a transport failure, and a registry returning it
persistently is a real fault that should surface rather than retry forever.
Those already reach the bounded retry tier, and reach the indefinite tier when
the device is offline.

This does not make the classification exhaustive and cannot: the strings are
an undocumented contract spanning the docker CLI, dockerd, containerd and the
Go standard library, and Go itself deprecated net.Error.Temporary() on the
grounds that transient versus permanent is not well defined. These are the
transport failures known to be missed today.
…s offline

Classifying a docker pull failure depends on substring-matching docker's
stderr, which is an undocumented contract spanning the docker CLI, dockerd,
containerd and the Go standard library. No list of strings can be exhaustive,
so a transport failure worded in a way not matched still lands in the
unrecognized bucket and gives up after a bounded number of attempts, even
though it would have recovered once connectivity returned.

Use the device's own connectivity as a signal that does not depend on the
error text at all. runWithConnectionErrorCheck already infers this for
DockerServiceUnavailableException, which is likewise ambiguous about whether a
retry can help; extend the same inference to UnknownDockerPullException. An
unrecognized pull failure on a device whose MQTT connection is down is far
more likely to be that outage than anything the registry reported, so it
becomes a ConnectionException and is retried until connectivity returns.

The bound still applies when the device is online, which is what keeps this
from reintroducing the risk the bounded tier exists to avoid: an error that is
genuinely permanent surfaces after a bounded delay on a healthy device rather
than hanging a deployment that has no timeout.

Two limits on how much this can be relied on, neither of which makes it worse
than the status quo:

- MQTT reachability does not prove registry reachability. They are different
  endpoints and can differ under a proxy or split routing, so an online device
  can still fail a pull for connectivity reasons and get only the bounded
  retry.
- Detection lags the network. Keep-alive defaults to 60s with a 30s ping
  timeout, so getMqttOnline can report online for up to about 90s after
  connectivity is lost. A pull failing inside that window is not attributed to
  the outage.

This is therefore a second line of defence behind the string matching rather
than a replacement for it.
@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown

Unit Tests Coverage Report

File Coverage Lines Branches
All files 68% 72% 63%
com.aws.greengrass.deployment.activator.DeploymentActivatorFactory 100% 100% 100%
com.aws.greengrass.deployment.activator.KernelUpdateActivator 60% 65% 55%
com.aws.greengrass.deployment.activator.DeploymentActivator 78% 81% 75%
com.aws.greengrass.deployment.activator.DefaultActivator 57% 53% 61%
com.aws.greengrass.authorization.AuthorizationIPCAgent$ValidateAuthorizationTokenOperationHandler 95% 90% 100%
com.aws.greengrass.authorization.AuthorizationPolicyParser$1 100% 100% 0%
com.aws.greengrass.authorization.AuthorizationPolicyParser$2 0% 0% 0%
com.aws.greengrass.authorization.WildcardTrie 97% 98% 95%
com.aws.greengrass.authorization.AuthorizationIPCAgent 100% 100% 0%
com.aws.greengrass.authorization.AuthorizationPolicyParser 84% 91% 77%
com.aws.greengrass.authorization.AuthorizationHandler$ResourceLookupPolicy 100% 100% 0%
com.aws.greengrass.authorization.AuthorizationHandler 86% 94% 78%
com.aws.greengrass.authorization.AuthorizationModule 96% 100% 93%
com.aws.greengrass.authorization.AuthorizationPolicy 100% 100% 0%
com.aws.greengrass.util.IotSdkClientFactory$EnvironmentStage 56% 63% 50%
com.aws.greengrass.util.IotSdkClientFactory 85% 88% 83%
com.aws.greengrass.util.RootCAUtils 59% 69% 50%
com.aws.greengrass.util.DependencyOrder 100% 100% 100%
com.aws.greengrass.util.SerializerFactory 100% 100% 0%
com.aws.greengrass.util.BaseRetryableAccessor 95% 90% 100%
com.aws.greengrass.util.CommitableWriter 47% 70% 25%
com.aws.greengrass.util.EncryptionUtils$PemWriter 100% 100% 100%
com.aws.greengrass.util.IamSdkClientFactory 100% 100% 0%
com.aws.greengrass.util.OrderedExecutorService$OrderedTask 81% 88% 75%
com.aws.greengrass.util.ProxyUtils 74% 74% 75%
com.aws.greengrass.util.FileSystemPermission$Option 100% 100% 0%
com.aws.greengrass.util.NucleusPaths 92% 92% 0%
com.aws.greengrass.util.Exec 62% 78% 46%
com.aws.greengrass.util.StsSdkClientFactory 100% 100% 0%
com.aws.greengrass.util.MqttChunkedPayloadPublisher 83% 72% 94%
com.aws.greengrass.util.LockFactory 77% 77% 0%
com.aws.greengrass.util.CommitableReader 66% 82% 50%
com.aws.greengrass.util.Utils$1 50% 50% 0%
com.aws.greengrass.util.Utils 80% 83% 76%
com.aws.greengrass.util.AppendableWriter 0% 0% 0%
com.aws.greengrass.util.Digest 83% 91% 75%
com.aws.greengrass.util.OrderedExecutorService 82% 81% 83%
com.aws.greengrass.util.CommitableFile 78% 85% 71%
com.aws.greengrass.util.RetryUtils$DifferentiatedRetryConfig 100% 100% 0%
com.aws.greengrass.util.Coerce 92% 93% 91%
com.aws.greengrass.util.BatchedSubscriber 87% 100% 75%
com.aws.greengrass.util.LockScope 100% 100% 0%
com.aws.greengrass.util.Exec$Copier 86% 91% 82%
com.aws.greengrass.util.S3SdkClientFactory 92% 100% 85%
com.aws.greengrass.util.LoaderLogsSummarizer 0% 0% 0%
com.aws.greengrass.util.DefaultConcurrentHashMap 100% 100% 100%
com.aws.greengrass.util.Coerce$1 100% 100% 0%
com.aws.greengrass.util.GreengrassServiceClientFactory$1 0% 0% 0%
com.aws.greengrass.util.RegionUtils 46% 46% 0%
com.aws.greengrass.util.RetryUtils 85% 93% 77%
com.aws.greengrass.util.Permissions 85% 98% 72%
com.aws.greengrass.util.EncryptionUtils 100% 100% 100%
com.aws.greengrass.util.GreengrassServiceClientFactory 27% 19% 34%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$CmdDecorator 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$WindowsFileSystemPermissionView 0% 0% 0%
com.aws.greengrass.util.platforms.windows.UserEnv 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$1 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$2 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsExec 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsUserAttributes 0% 0% 0%
com.aws.greengrass.util.platforms.windows.UserEnv$PROFILEINFO 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$RunasDecorator 0% 0% 0%
com.aws.greengrass.componentmanager.plugins.docker.DefaultDockerClient 7% 7% 0%
com.aws.greengrass.componentmanager.plugins.docker.EcrAccessor 63% 63% 0%
com.aws.greengrass.componentmanager.plugins.docker.DockerImageDownloader 80% 78% 82%
com.aws.greengrass.componentmanager.plugins.docker.Image 66% 66% 0%
com.aws.greengrass.componentmanager.plugins.docker.Registry$RegistrySource 100% 100% 0%
com.aws.greengrass.componentmanager.plugins.docker.Registry$RegistryType 100% 100% 0%
com.aws.greengrass.componentmanager.plugins.docker.Registry$Credentials 75% 75% 0%
com.aws.greengrass.componentmanager.plugins.docker.DockerApplicationManagerService 0% 0% 0%
com.aws.greengrass.componentmanager.plugins.docker.Registry 75% 100% 50%
com.aws.greengrass.componentmanager.plugins.docker.DockerImageArtifactParser 97% 98% 96%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent 88% 91% 85%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent$1 100% 100% 0%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent$PublishToIoTCoreOperationHandler 56% 76% 37%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent$SubscribeToIoTCoreConnectionStatusOperationHandler 78% 86% 70%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent$SubscribeToIoTCoreOperationHandler 44% 53% 35%
com.aws.greengrass.mqttclient.v5.PubAck 81% 100% 62%
com.aws.greengrass.mqttclient.v5.Subscribe 75% 100% 50%
com.aws.greengrass.mqttclient.v5.SubscribeResponse 83% 100% 66%
com.aws.greengrass.mqttclient.v5.Subscribe$RetainHandlingType 100% 100% 0%
com.aws.greengrass.mqttclient.v5.UnsubscribeResponse 75% 100% 50%
com.aws.greengrass.mqttclient.v5.Publish$PayloadFormatIndicator 50% 50% 0%
com.aws.greengrass.mqttclient.v5.QOS 67% 84% 50%
com.aws.greengrass.mqttclient.v5.Publish 48% 59% 37%
com.aws.greengrass.builtin.services.telemetry.ComponentMetricIPCEventStreamAgent$PutComponentMetricOperationHandler 88% 88% 0%
com.aws.greengrass.builtin.services.telemetry.ComponentMetricIPCEventStreamAgent 87% 97% 76%
com.aws.greengrass.componentmanager.models.ComponentIdentifier 100% 100% 0%
com.aws.greengrass.componentmanager.models.ComponentMetadata 0% 0% 0%
com.aws.greengrass.componentmanager.models.PermissionType 58% 66% 50%
com.aws.greengrass.componentmanager.models.Permission 70% 100% 40%
com.aws.greengrass.componentmanager.models.ComponentRequirementIdentifier 0% 0% 0%
com.aws.greengrass.util.platforms.StubResourceController 20% 20% 0%
com.aws.greengrass.util.platforms.Platform$1 100% 100% 0%
com.aws.greengrass.util.platforms.UserDecorator 100% 100% 0%
com.aws.greengrass.util.platforms.Platform 66% 75% 58%
com.aws.greengrass.util.platforms.Platform$FileSystemPermissionView 100% 100% 0%
com.aws.greengrass.dependency.Context$Value 81% 87% 75%
com.aws.greengrass.dependency.EZPlugins 43% 51% 36%
com.aws.greengrass.dependency.Context 78% 83% 72%
com.aws.greengrass.dependency.InjectionActions 100% 100% 0%
com.aws.greengrass.dependency.State 53% 75% 32%
com.aws.greengrass.dependency.ComponentStatusCode 43% 64% 22%
com.aws.greengrass.dependency.Context$1 84% 69% 100%
com.aws.greengrass.mqttclient.spool.Spool 82% 89% 75%
com.aws.greengrass.mqttclient.spool.InMemorySpool 77% 77% 0%
com.aws.greengrass.mqttclient.spool.SpoolerStorageType 100% 100% 0%
com.aws.greengrass.componentmanager.KernelConfigResolver 83% 90% 77%
com.aws.greengrass.componentmanager.Unarchiver 3% 3% 0%
com.aws.greengrass.componentmanager.ClientConfigurationUtils 11% 15% 7%
com.aws.greengrass.componentmanager.ComponentStore 62% 65% 58%
com.aws.greengrass.componentmanager.ComponentServiceHelper 65% 80% 50%
com.aws.greengrass.componentmanager.DependencyResolver 96% 98% 94%
com.aws.greengrass.componentmanager.ComponentManager 72% 73% 70%
com.aws.greengrass.util.platforms.unix.UnixRunWithGenerator 79% 74% 84%
com.aws.greengrass.util.platforms.unix.UnixPlatform$ShDecorator 68% 87% 50%
com.aws.greengrass.util.platforms.unix.UnixUserAttributes 58% 66% 50%
com.aws.greengrass.util.platforms.unix.UnixPlatform$IdOption 100% 100% 0%
com.aws.greengrass.util.platforms.unix.UnixPlatform 36% 38% 35%
com.aws.greengrass.util.platforms.unix.UnixExec 42% 43% 40%
com.aws.greengrass.util.platforms.unix.UnixGroupAttributes 0% 0% 0%
com.aws.greengrass.util.platforms.unix.QNXPlatform 0% 0% 0%
com.aws.greengrass.util.platforms.unix.UnixPlatform$1 100% 100% 0%
com.aws.greengrass.util.platforms.unix.UnixPlatform$SudoDecorator 72% 86% 58%
com.aws.greengrass.util.platforms.unix.UnixPlatform$PosixFileSystemPermissionView 100% 100% 100%
com.aws.greengrass.util.platforms.unix.DarwinPlatform 0% 0% 0%
com.aws.greengrass.config.UpdateBehaviorTree$PrunedUpdateBehaviorTree 80% 80% 0%
com.aws.greengrass.config.Node 88% 89% 87%
com.aws.greengrass.config.PlatformResolver 72% 81% 62%
com.aws.greengrass.config.ConfigurationReader$1 100% 100% 0%
com.aws.greengrass.config.Configuration 80% 89% 72%
com.aws.greengrass.config.ConfigurationReader 90% 96% 84%
com.aws.greengrass.config.UpdateBehaviorTree 100% 100% 100%
com.aws.greengrass.config.Topic 76% 84% 68%
com.aws.greengrass.config.CaseInsensitiveString 65% 70% 60%
com.aws.greengrass.config.Topics 90% 92% 88%
com.aws.greengrass.config.ConfigurationReader$ConfigurationMode 100% 100% 0%
com.aws.greengrass.config.ConfigurationWriter 74% 77% 72%
com.aws.greengrass.config.WhatHappened 100% 100% 0%
com.aws.greengrass.config.UpdateBehaviorTree$UpdateBehavior 100% 100% 0%
com.aws.greengrass.iot.IotConnectionManager 45% 67% 22%
com.aws.greengrass.iot.IotCloudHelper 78% 90% 66%
com.aws.greengrass.iot.model.IotCloudResponse 100% 100% 0%
com.aws.greengrass.deployment.bootstrap.BootstrapTaskStatus 100% 100% 0%
com.aws.greengrass.deployment.bootstrap.BootstrapSuccessCode 83% 100% 66%
com.aws.greengrass.deployment.bootstrap.BootstrapManager 78% 82% 74%
com.aws.greengrass.deployment.bootstrap.BootstrapManager$1 100% 100% 0%
com.aws.greengrass.deployment.bootstrap.BootstrapTaskStatus$ExecutionStatus 100% 100% 0%
com.aws.greengrass.deployment.model.S3EndpointType 100% 100% 0%
com.aws.greengrass.deployment.model.FailureHandlingPolicy 100% 100% 0%
com.aws.greengrass.deployment.model.DeploymentTask 100% 100% 0%
com.aws.greengrass.deployment.model.RunWith 85% 95% 75%
com.aws.greengrass.deployment.model.DeploymentPackageConfiguration 57% 57% 0%
com.aws.greengrass.deployment.model.DeploymentDocument$SDKSerializer 100% 100% 0%
com.aws.greengrass.deployment.model.Deployment$DeploymentType 100% 100% 0%
com.aws.greengrass.deployment.model.Deployment 87% 100% 75%
com.aws.greengrass.deployment.model.Deployment$DeploymentStage 100% 100% 0%
com.aws.greengrass.deployment.model.DeploymentDocument$SDKDeserializer 80% 80% 0%
com.aws.greengrass.deployment.model.DeploymentTaskMetadata 100% 100% 0%
com.aws.greengrass.deployment.model.DeploymentDocument 100% 100% 100%
com.aws.greengrass.deployment.model.DeploymentResult$DeploymentStatus 100% 100% 0%
com.aws.greengrass.status.FleetStatusService 76% 84% 69%
com.aws.greengrass.status.FleetStatusService$1 100% 100% 0%
com.aws.greengrass.mqttclient.MqttClient$1 75% 100% 50%
com.aws.greengrass.mqttclient.MqttClient$2 100% 100% 0%
com.aws.greengrass.mqttclient.AwsIotMqtt5Client 50% 69% 32%
com.aws.greengrass.mqttclient.PublishRequest 70% 90% 50%
com.aws.greengrass.mqttclient.MqttClient 74% 81% 68%
com.aws.greengrass.mqttclient.WrapperMqttClientConnection 91% 82% 100%
com.aws.greengrass.mqttclient.AwsIotMqttClient 82% 89% 75%
com.aws.greengrass.mqttclient.AwsIotMqttClient$1 71% 93% 50%
com.aws.greengrass.mqttclient.CallbackEventManager 91% 92% 91%
com.aws.greengrass.mqttclient.IotCoreTopicValidator 89% 93% 85%
com.aws.greengrass.mqttclient.StandaloneMqttConnector 68% 77% 58%
com.aws.greengrass.mqttclient.MqttTopic 97% 94% 100%
com.aws.greengrass.mqttclient.AwsIotMqtt5Client$1 48% 68% 27%
com.aws.greengrass.mqttclient.IotCoreTopicValidator$Operation 100% 100% 0%
com.aws.greengrass.network.HttpClientProvider 50% 50% 0%
com.aws.greengrass.status.model.FleetStatusDetails 100% 100% 100%
com.aws.greengrass.status.model.OverallStatus 100% 100% 0%
com.aws.greengrass.status.model.Trigger 58% 80% 37%
com.aws.greengrass.status.model.MessageType 76% 85% 66%
com.aws.greengrass.deployment.errorcode.DeploymentErrorCode 100% 100% 0%
com.aws.greengrass.deployment.errorcode.DeploymentErrorCodeUtils 75% 79% 70%
com.aws.greengrass.deployment.errorcode.DeploymentErrorType 100% 100% 0%
com.aws.greengrass.tes.CredentialRequestHandler 83% 89% 77%
com.aws.greengrass.tes.CredentialRequestHandler$TESCache 100% 100% 0%
com.aws.greengrass.tes.HttpServerImpl 100% 100% 0%
com.aws.greengrass.tes.LazyCredentialProvider 12% 12% 0%
com.aws.greengrass.tes.TokenExchangeService 55% 67% 42%
com.aws.greengrass.componentmanager.converter.RecipeLoader 75% 88% 62%
com.aws.greengrass.componentmanager.converter.RecipeLoader$RecipeFormat 100% 100% 0%
com.aws.greengrass.lifecyclemanager.Periodicity 13% 16% 11%
com.aws.greengrass.lifecyclemanager.LogManagerHelper 100% 100% 0%
com.aws.greengrass.lifecyclemanager.UnloadableService 77% 71% 83%
com.aws.greengrass.lifecyclemanager.RunWithPathOwnershipHandler 100% 100% 100%
com.aws.greengrass.lifecyclemanager.KernelAlternatives 48% 50% 47%
com.aws.greengrass.lifecyclemanager.ShellRunner$Default 69% 74% 64%
com.aws.greengrass.lifecyclemanager.GreengrassService 77% 78% 75%
com.aws.greengrass.lifecyclemanager.Lifecycle$DesiredStateUpdatedEvent 100% 100% 0%
com.aws.greengrass.lifecyclemanager.GenericExternalService 45% 49% 40%
com.aws.greengrass.lifecyclemanager.GreengrassService$RunStatus 100% 100% 0%
com.aws.greengrass.lifecyclemanager.Lifecycle 77% 80% 74%
com.aws.greengrass.lifecyclemanager.Kernel 72% 75% 68%
com.aws.greengrass.lifecyclemanager.KernelMetricsEmitter 100% 100% 100%
com.aws.greengrass.lifecyclemanager.Lifecycle$StateEvent 100% 100% 0%
com.aws.greengrass.lifecyclemanager.KernelCommandLine 77% 78% 76%
com.aws.greengrass.lifecyclemanager.GenericExternalService$RunResult 100% 100% 0%
com.aws.greengrass.lifecyclemanager.Kernel$1 82% 100% 64%
com.aws.greengrass.lifecyclemanager.KernelLifecycle 83% 86% 81%
com.aws.greengrass.lifecyclemanager.PluginService 41% 50% 33%
com.aws.greengrass.lifecyclemanager.UpdateSystemPolicyService 7% 8% 6%
com.aws.greengrass.util.platforms.unix.linux.CgroupManager 70% 86% 55%
com.aws.greengrass.util.platforms.unix.linux.LinuxSystemResourceController 40% 44% 36%
com.aws.greengrass.util.platforms.unix.linux.LinuxPlatform 100% 100% 0%
com.aws.greengrass.util.platforms.unix.linux.CgroupV1 94% 94% 0%
com.aws.greengrass.util.platforms.unix.linux.CgroupV2 76% 92% 60%
com.aws.greengrass.deployment.converter.DeploymentDocumentConverter 77% 84% 70%
com.aws.greengrass.ipc.AuthenticationHandler 16% 25% 8%
com.aws.greengrass.ipc.IPCEventStreamService 65% 80% 50%
com.aws.greengrass.jna.Kernel32Ex 0% 0% 0%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$UpdateConfigurationOperationHandler 76% 73% 80%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent 63% 77% 50%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$ConfigurationUpdateOperationHandler 69% 79% 59%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$GetConfigurationOperationHandler 76% 81% 71%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$SendConfigurationValidityReportOperationHandler 86% 90% 83%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$ValidateConfigurationUpdatesOperationHandler 85% 85% 0%
com.aws.greengrass.ipc.common.DefaultOperationHandler 0% 0% 0%
com.aws.greengrass.security.SecurityService$DefaultCryptoKeyProvider 96% 93% 100%
com.aws.greengrass.security.SecurityService 78% 76% 81%
com.aws.greengrass.provisioning.ProvisioningPluginFactory 0% 0% 0%
com.aws.greengrass.provisioning.ProvisioningConfigUpdateHelper 91% 100% 83%
com.aws.greengrass.componentmanager.builtins.GreengrassRepositoryDownloader 50% 61% 39%
com.aws.greengrass.componentmanager.builtins.S3Downloader 55% 60% 50%
com.aws.greengrass.componentmanager.builtins.ArtifactDownloaderFactory 79% 77% 80%
com.aws.greengrass.componentmanager.builtins.ArtifactDownloader 82% 83% 80%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$UpdateStateOperationHandler 90% 90% 0%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$DeferComponentUpdateHandler 77% 77% 0%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent 31% 24% 37%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$SubscribeToComponentUpdateOperationHandler 73% 96% 50%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$PauseComponentHandler 89% 90% 87%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$ResumeComponentHandler 89% 90% 87%
com.aws.greengrass.builtin.services.pubsub.PubSubIPCEventStreamAgent$PublishToTopicOperationHandler 90% 80% 100%
com.aws.greengrass.builtin.services.pubsub.SubscriptionTrie 97% 98% 95%
com.aws.greengrass.builtin.services.pubsub.PubSubIPCEventStreamAgent 83% 92% 73%
com.aws.greengrass.builtin.services.pubsub.PubSubIPCEventStreamAgent$SubscribeToTopicOperationHandler 68% 68% 0%
com.aws.greengrass.telemetry.MetricsPayload 100% 100% 0%
com.aws.greengrass.telemetry.MetricsAggregator 87% 90% 83%
com.aws.greengrass.telemetry.MetricsAggregator$1 100% 100% 0%
com.aws.greengrass.telemetry.AggregatedMetric 100% 100% 0%
com.aws.greengrass.telemetry.TelemetryAgent 71% 77% 66%
com.aws.greengrass.telemetry.TelemetryConfiguration 52% 65% 40%
com.aws.greengrass.telemetry.PeriodicMetricsEmitter 100% 100% 0%
com.aws.greengrass.telemetry.TelemetryAgent$1 60% 60% 0%
com.aws.greengrass.telemetry.SystemMetricsEmitter 100% 100% 100%
com.aws.greengrass.deployment.DeploymentConfigMerger 87% 87% 87%
com.aws.greengrass.deployment.IotJobsHelper$IotJobsClientFactory 100% 100% 0%
com.aws.greengrass.deployment.DeploymentConfigMerger$AggregateServicesChangeManager 73% 71% 76%
com.aws.greengrass.deployment.DeviceConfiguration 73% 79% 67%
com.aws.greengrass.deployment.DeploymentDocumentDownloader 69% 80% 58%
com.aws.greengrass.deployment.DeploymentQueue 97% 100% 95%
com.aws.greengrass.deployment.DeploymentService 59% 68% 49%
com.aws.greengrass.deployment.EndpointSwitchState 95% 100% 91%
com.aws.greengrass.deployment.IotJobsHelper$LatestQueuedJobs 69% 69% 70%
com.aws.greengrass.deployment.KernelUpdateDeploymentTask 70% 83% 57%
com.aws.greengrass.deployment.DynamicComponentConfigurationValidator 84% 94% 75%
com.aws.greengrass.deployment.DefaultDeploymentTask 66% 77% 56%
com.aws.greengrass.deployment.DeploymentDirectoryManager 71% 86% 56%
com.aws.greengrass.deployment.IotJobsHelper$WrapperMqttConnectionFactory 100% 100% 0%
com.aws.greengrass.deployment.IotJobsHelper 62% 70% 54%
com.aws.greengrass.deployment.IotJobsHelper$1 85% 85% 0%
com.aws.greengrass.deployment.EndpointSwitchPreflightValidator 73% 71% 75%
com.aws.greengrass.deployment.ThingGroupHelper 47% 61% 33%
com.aws.greengrass.deployment.ShadowDeploymentListener 37% 51% 22%
com.aws.greengrass.deployment.ShadowDeploymentListener$1 14% 14% 0%
com.aws.greengrass.deployment.DeploymentStatusKeeper 82% 93% 71%
com.aws.greengrass.deployment.IotJobsClientWrapper 15% 15% 0%
com.aws.greengrass.util.orchestration.SystemServiceUtilsFactory 0% 0% 0%
com.aws.greengrass.util.orchestration.ProcdUtils 0% 0% 0%
com.aws.greengrass.util.orchestration.SystemServiceUtils 0% 0% 0%
com.aws.greengrass.util.orchestration.InitUtils 0% 0% 0%
com.aws.greengrass.util.orchestration.SystemdUtils 0% 0% 0%
com.aws.greengrass.util.orchestration.WinswUtils 0% 0% 0%
com.aws.greengrass.testing.TestFeatureParameters 83% 100% 66%
com.aws.greengrass.testing.TestFeatureParameters$1 100% 100% 0%
com.aws.greengrass.ipc.modules.PubSubIPCService 68% 68% 0%
com.aws.greengrass.ipc.modules.AuthorizationService 75% 75% 0%
com.aws.greengrass.ipc.modules.ComponentMetricIPCService 69% 69% 0%
com.aws.greengrass.ipc.modules.MqttProxyIPCService 62% 62% 0%
com.aws.greengrass.ipc.modules.LifecycleIPCService 86% 86% 0%
com.aws.greengrass.ipc.modules.ConfigStoreIPCService 66% 66% 0%
com.aws.greengrass.easysetup.GreengrassSetup 75% 74% 76%
com.aws.greengrass.easysetup.DeviceProvisioningHelper 69% 77% 62%

Minimum allowed coverage is 65%

Generated by 🐒 cobertura-action against db427a5

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown

Integration Tests Coverage Report

File Coverage Lines Branches
All files 52% 56% 48%
com.aws.greengrass.deployment.activator.DeploymentActivatorFactory 100% 100% 100%
com.aws.greengrass.deployment.activator.KernelUpdateActivator 25% 29% 22%
com.aws.greengrass.deployment.activator.DeploymentActivator 79% 84% 75%
com.aws.greengrass.deployment.activator.DefaultActivator 70% 80% 61%
com.aws.greengrass.authorization.AuthorizationIPCAgent$ValidateAuthorizationTokenOperationHandler 48% 47% 50%
com.aws.greengrass.authorization.AuthorizationPolicyParser$1 100% 100% 0%
com.aws.greengrass.authorization.AuthorizationPolicyParser$2 0% 0% 0%
com.aws.greengrass.authorization.WildcardTrie 74% 79% 70%
com.aws.greengrass.authorization.AuthorizationIPCAgent 100% 100% 0%
com.aws.greengrass.authorization.AuthorizationPolicyParser 76% 80% 72%
com.aws.greengrass.authorization.AuthorizationHandler$ResourceLookupPolicy 100% 100% 0%
com.aws.greengrass.authorization.AuthorizationHandler 74% 74% 74%
com.aws.greengrass.authorization.AuthorizationModule 46% 59% 33%
com.aws.greengrass.authorization.AuthorizationPolicy 0% 0% 0%
com.aws.greengrass.util.IotSdkClientFactory$EnvironmentStage 0% 0% 0%
com.aws.greengrass.util.IotSdkClientFactory 0% 0% 0%
com.aws.greengrass.util.RootCAUtils 0% 0% 0%
com.aws.greengrass.util.DependencyOrder 100% 100% 100%
com.aws.greengrass.util.SerializerFactory 100% 100% 0%
com.aws.greengrass.util.BaseRetryableAccessor 0% 0% 0%
com.aws.greengrass.util.CommitableWriter 47% 70% 25%
com.aws.greengrass.util.EncryptionUtils$PemWriter 0% 0% 0%
com.aws.greengrass.util.IamSdkClientFactory 0% 0% 0%
com.aws.greengrass.util.OrderedExecutorService$OrderedTask 45% 66% 25%
com.aws.greengrass.util.ProxyUtils 27% 32% 21%
com.aws.greengrass.util.FileSystemPermission$Option 100% 100% 0%
com.aws.greengrass.util.NucleusPaths 100% 100% 0%
com.aws.greengrass.util.Exec 70% 85% 56%
com.aws.greengrass.util.StsSdkClientFactory 0% 0% 0%
com.aws.greengrass.util.MqttChunkedPayloadPublisher 35% 42% 27%
com.aws.greengrass.util.LockFactory 77% 77% 0%
com.aws.greengrass.util.CommitableReader 0% 0% 0%
com.aws.greengrass.util.Utils$1 87% 100% 75%
com.aws.greengrass.util.Utils 55% 60% 51%
com.aws.greengrass.util.AppendableWriter 0% 0% 0%
com.aws.greengrass.util.Digest 66% 83% 50%
com.aws.greengrass.util.OrderedExecutorService 63% 77% 50%
com.aws.greengrass.util.CommitableFile 65% 73% 57%
com.aws.greengrass.util.RetryUtils$DifferentiatedRetryConfig 60% 60% 0%
com.aws.greengrass.util.Coerce 59% 64% 53%
com.aws.greengrass.util.BatchedSubscriber 59% 68% 50%
com.aws.greengrass.util.LockScope 100% 100% 0%
com.aws.greengrass.util.Exec$Copier 86% 91% 82%
com.aws.greengrass.util.S3SdkClientFactory 38% 38% 0%
com.aws.greengrass.util.LoaderLogsSummarizer 0% 0% 0%
com.aws.greengrass.util.DefaultConcurrentHashMap 100% 100% 100%
com.aws.greengrass.util.Coerce$1 0% 0% 0%
com.aws.greengrass.util.GreengrassServiceClientFactory$1 0% 0% 0%
com.aws.greengrass.util.RegionUtils 0% 0% 0%
com.aws.greengrass.util.RetryUtils 26% 40% 13%
com.aws.greengrass.util.Permissions 72% 89% 54%
com.aws.greengrass.util.EncryptionUtils 0% 0% 0%
com.aws.greengrass.util.GreengrassServiceClientFactory 46% 32% 61%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$CmdDecorator 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$WindowsFileSystemPermissionView 0% 0% 0%
com.aws.greengrass.util.platforms.windows.UserEnv 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$1 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$2 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsExec 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsUserAttributes 0% 0% 0%
com.aws.greengrass.util.platforms.windows.UserEnv$PROFILEINFO 0% 0% 0%
com.aws.greengrass.util.platforms.windows.WindowsPlatform$RunasDecorator 0% 0% 0%
com.aws.greengrass.componentmanager.plugins.docker.DefaultDockerClient 3% 3% 0%
com.aws.greengrass.componentmanager.plugins.docker.EcrAccessor 61% 72% 50%
com.aws.greengrass.componentmanager.plugins.docker.DockerImageDownloader 54% 62% 45%
com.aws.greengrass.componentmanager.plugins.docker.Image 66% 66% 0%
com.aws.greengrass.componentmanager.plugins.docker.Registry$RegistrySource 100% 100% 0%
com.aws.greengrass.componentmanager.plugins.docker.Registry$RegistryType 100% 100% 0%
com.aws.greengrass.componentmanager.plugins.docker.Registry$Credentials 75% 75% 0%
com.aws.greengrass.componentmanager.plugins.docker.DockerApplicationManagerService 0% 0% 0%
com.aws.greengrass.componentmanager.plugins.docker.Registry 75% 100% 50%
com.aws.greengrass.componentmanager.plugins.docker.DockerImageArtifactParser 83% 88% 78%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent 42% 48% 35%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent$1 20% 20% 0%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent$PublishToIoTCoreOperationHandler 58% 78% 37%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent$SubscribeToIoTCoreConnectionStatusOperationHandler 0% 0% 0%
com.aws.greengrass.builtin.services.mqttproxy.MqttProxyIPCAgent$SubscribeToIoTCoreOperationHandler 42% 49% 35%
com.aws.greengrass.mqttclient.v5.PubAck 0% 0% 0%
com.aws.greengrass.mqttclient.v5.Subscribe 0% 0% 0%
com.aws.greengrass.mqttclient.v5.SubscribeResponse 0% 0% 0%
com.aws.greengrass.mqttclient.v5.Subscribe$RetainHandlingType 87% 87% 0%
com.aws.greengrass.mqttclient.v5.UnsubscribeResponse 0% 0% 0%
com.aws.greengrass.mqttclient.v5.Publish$PayloadFormatIndicator 50% 50% 0%
com.aws.greengrass.mqttclient.v5.QOS 50% 76% 25%
com.aws.greengrass.mqttclient.v5.Publish 29% 34% 25%
com.aws.greengrass.builtin.services.telemetry.ComponentMetricIPCEventStreamAgent$PutComponentMetricOperationHandler 0% 0% 0%
com.aws.greengrass.builtin.services.telemetry.ComponentMetricIPCEventStreamAgent 16% 16% 0%
com.aws.greengrass.componentmanager.models.ComponentIdentifier 75% 75% 0%
com.aws.greengrass.componentmanager.models.ComponentMetadata 0% 0% 0%
com.aws.greengrass.componentmanager.models.PermissionType 58% 66% 50%
com.aws.greengrass.componentmanager.models.Permission 79% 100% 59%
com.aws.greengrass.componentmanager.models.ComponentRequirementIdentifier 0% 0% 0%
com.aws.greengrass.util.platforms.StubResourceController 20% 20% 0%
com.aws.greengrass.util.platforms.Platform$1 100% 100% 0%
com.aws.greengrass.util.platforms.UserDecorator 100% 100% 0%
com.aws.greengrass.util.platforms.Platform 80% 90% 70%
com.aws.greengrass.util.platforms.Platform$FileSystemPermissionView 100% 100% 0%
com.aws.greengrass.dependency.Context$Value 78% 84% 72%
com.aws.greengrass.dependency.EZPlugins 61% 68% 54%
com.aws.greengrass.dependency.Context 76% 83% 70%
com.aws.greengrass.dependency.InjectionActions 100% 100% 0%
com.aws.greengrass.dependency.State 57% 82% 32%
com.aws.greengrass.dependency.ComponentStatusCode 55% 73% 36%
com.aws.greengrass.dependency.Context$1 84% 69% 100%
com.aws.greengrass.mqttclient.spool.Spool 23% 36% 10%
com.aws.greengrass.mqttclient.spool.InMemorySpool 44% 44% 0%
com.aws.greengrass.mqttclient.spool.SpoolerStorageType 100% 100% 0%
com.aws.greengrass.componentmanager.KernelConfigResolver 76% 84% 69%
com.aws.greengrass.componentmanager.Unarchiver 72% 87% 58%
com.aws.greengrass.componentmanager.ClientConfigurationUtils 0% 0% 0%
com.aws.greengrass.componentmanager.ComponentStore 46% 48% 45%
com.aws.greengrass.componentmanager.ComponentServiceHelper 33% 52% 14%
com.aws.greengrass.componentmanager.DependencyResolver 60% 66% 53%
com.aws.greengrass.componentmanager.ComponentManager 65% 61% 69%
com.aws.greengrass.util.platforms.unix.UnixRunWithGenerator 63% 61% 65%
com.aws.greengrass.util.platforms.unix.UnixPlatform$ShDecorator 75% 100% 50%
com.aws.greengrass.util.platforms.unix.UnixUserAttributes 75% 100% 50%
com.aws.greengrass.util.platforms.unix.UnixPlatform$IdOption 100% 100% 0%
com.aws.greengrass.util.platforms.unix.UnixPlatform 64% 60% 67%
com.aws.greengrass.util.platforms.unix.UnixExec 75% 81% 68%
com.aws.greengrass.util.platforms.unix.UnixGroupAttributes 100% 100% 0%
com.aws.greengrass.util.platforms.unix.QNXPlatform 0% 0% 0%
com.aws.greengrass.util.platforms.unix.UnixPlatform$1 0% 0% 0%
com.aws.greengrass.util.platforms.unix.UnixPlatform$SudoDecorator 76% 89% 62%
com.aws.greengrass.util.platforms.unix.UnixPlatform$PosixFileSystemPermissionView 87% 91% 83%
com.aws.greengrass.util.platforms.unix.DarwinPlatform 0% 0% 0%
com.aws.greengrass.config.UpdateBehaviorTree$PrunedUpdateBehaviorTree 80% 80% 0%
com.aws.greengrass.config.Node 78% 80% 77%
com.aws.greengrass.config.PlatformResolver 38% 48% 27%
com.aws.greengrass.config.ConfigurationReader$1 100% 100% 0%
com.aws.greengrass.config.Configuration 65% 81% 50%
com.aws.greengrass.config.ConfigurationReader 66% 76% 57%
com.aws.greengrass.config.UpdateBehaviorTree 100% 100% 100%
com.aws.greengrass.config.Topic 67% 73% 62%
com.aws.greengrass.config.CaseInsensitiveString 65% 70% 60%
com.aws.greengrass.config.Topics 70% 75% 64%
com.aws.greengrass.config.ConfigurationReader$ConfigurationMode 100% 100% 0%
com.aws.greengrass.config.ConfigurationWriter 75% 73% 77%
com.aws.greengrass.config.WhatHappened 100% 100% 0%
com.aws.greengrass.config.UpdateBehaviorTree$UpdateBehavior 100% 100% 0%
com.aws.greengrass.iot.IotConnectionManager 42% 46% 38%
com.aws.greengrass.iot.IotCloudHelper 0% 0% 0%
com.aws.greengrass.iot.model.IotCloudResponse 0% 0% 0%
com.aws.greengrass.deployment.bootstrap.BootstrapTaskStatus 100% 100% 0%
com.aws.greengrass.deployment.bootstrap.BootstrapSuccessCode 0% 0% 0%
com.aws.greengrass.deployment.bootstrap.BootstrapManager 59% 65% 54%
com.aws.greengrass.deployment.bootstrap.BootstrapManager$1 0% 0% 0%
com.aws.greengrass.deployment.bootstrap.BootstrapTaskStatus$ExecutionStatus 100% 100% 0%
com.aws.greengrass.deployment.model.S3EndpointType 0% 0% 0%
com.aws.greengrass.deployment.model.FailureHandlingPolicy 100% 100% 0%
com.aws.greengrass.deployment.model.DeploymentTask 100% 100% 0%
com.aws.greengrass.deployment.model.RunWith 70% 91% 50%
com.aws.greengrass.deployment.model.DeploymentPackageConfiguration 21% 21% 0%
com.aws.greengrass.deployment.model.DeploymentDocument$SDKSerializer 100% 100% 0%
com.aws.greengrass.deployment.model.Deployment$DeploymentType 100% 100% 0%
com.aws.greengrass.deployment.model.Deployment 72% 70% 75%
com.aws.greengrass.deployment.model.Deployment$DeploymentStage 100% 100% 0%
com.aws.greengrass.deployment.model.DeploymentDocument$SDKDeserializer 20% 20% 0%
com.aws.greengrass.deployment.model.DeploymentTaskMetadata 100% 100% 0%
com.aws.greengrass.deployment.model.DeploymentDocument 91% 100% 83%
com.aws.greengrass.deployment.model.DeploymentResult$DeploymentStatus 100% 100% 0%
com.aws.greengrass.status.FleetStatusService 82% 90% 74%
com.aws.greengrass.status.FleetStatusService$1 16% 16% 0%
com.aws.greengrass.mqttclient.MqttClient$1 12% 12% 0%
com.aws.greengrass.mqttclient.MqttClient$2 100% 100% 0%
com.aws.greengrass.mqttclient.AwsIotMqtt5Client 34% 43% 25%
com.aws.greengrass.mqttclient.PublishRequest 70% 90% 50%
com.aws.greengrass.mqttclient.MqttClient 38% 46% 31%
com.aws.greengrass.mqttclient.WrapperMqttClientConnection 90% 80% 100%
com.aws.greengrass.mqttclient.AwsIotMqttClient 0% 0% 0%
com.aws.greengrass.mqttclient.AwsIotMqttClient$1 0% 0% 0%
com.aws.greengrass.mqttclient.CallbackEventManager 32% 48% 16%
com.aws.greengrass.mqttclient.IotCoreTopicValidator 61% 60% 62%
com.aws.greengrass.mqttclient.StandaloneMqttConnector 0% 0% 0%
com.aws.greengrass.mqttclient.MqttTopic 0% 0% 0%
com.aws.greengrass.mqttclient.AwsIotMqtt5Client$1 12% 19% 5%
com.aws.greengrass.mqttclient.IotCoreTopicValidator$Operation 100% 100% 0%
com.aws.greengrass.network.HttpClientProvider 50% 50% 0%
com.aws.greengrass.status.model.FleetStatusDetails 100% 100% 100%
com.aws.greengrass.status.model.OverallStatus 100% 100% 0%
com.aws.greengrass.status.model.Trigger 62% 86% 37%
com.aws.greengrass.status.model.MessageType 76% 85% 66%
com.aws.greengrass.deployment.errorcode.DeploymentErrorCode 100% 100% 0%
com.aws.greengrass.deployment.errorcode.DeploymentErrorCodeUtils 37% 44% 29%
com.aws.greengrass.deployment.errorcode.DeploymentErrorType 100% 100% 0%
com.aws.greengrass.tes.CredentialRequestHandler 0% 0% 0%
com.aws.greengrass.tes.CredentialRequestHandler$TESCache 0% 0% 0%
com.aws.greengrass.tes.HttpServerImpl 0% 0% 0%
com.aws.greengrass.tes.LazyCredentialProvider 12% 12% 0%
com.aws.greengrass.tes.TokenExchangeService 0% 0% 0%
com.aws.greengrass.componentmanager.converter.RecipeLoader 72% 86% 59%
com.aws.greengrass.componentmanager.converter.RecipeLoader$RecipeFormat 100% 100% 0%
com.aws.greengrass.lifecyclemanager.Periodicity 55% 64% 47%
com.aws.greengrass.lifecyclemanager.LogManagerHelper 100% 100% 0%
com.aws.greengrass.lifecyclemanager.UnloadableService 25% 25% 0%
com.aws.greengrass.lifecyclemanager.RunWithPathOwnershipHandler 89% 96% 83%
com.aws.greengrass.lifecyclemanager.KernelAlternatives 16% 19% 14%
com.aws.greengrass.lifecyclemanager.ShellRunner$Default 73% 76% 71%
com.aws.greengrass.lifecyclemanager.GreengrassService 89% 89% 88%
com.aws.greengrass.lifecyclemanager.Lifecycle$DesiredStateUpdatedEvent 100% 100% 0%
com.aws.greengrass.lifecyclemanager.GenericExternalService 71% 77% 65%
com.aws.greengrass.lifecyclemanager.GreengrassService$RunStatus 100% 100% 0%
com.aws.greengrass.lifecyclemanager.Lifecycle 81% 83% 80%
com.aws.greengrass.lifecyclemanager.Kernel 58% 57% 58%
com.aws.greengrass.lifecyclemanager.KernelMetricsEmitter 100% 100% 100%
com.aws.greengrass.lifecyclemanager.Lifecycle$StateEvent 100% 100% 0%
com.aws.greengrass.lifecyclemanager.KernelCommandLine 56% 61% 51%
com.aws.greengrass.lifecyclemanager.GenericExternalService$RunResult 100% 100% 0%
com.aws.greengrass.lifecyclemanager.Kernel$1 0% 0% 0%
com.aws.greengrass.lifecyclemanager.KernelLifecycle 77% 78% 76%
com.aws.greengrass.lifecyclemanager.PluginService 67% 68% 66%
com.aws.greengrass.lifecyclemanager.UpdateSystemPolicyService 84% 84% 83%
com.aws.greengrass.util.platforms.unix.linux.CgroupManager 73% 86% 60%
com.aws.greengrass.util.platforms.unix.linux.LinuxSystemResourceController 69% 73% 65%
com.aws.greengrass.util.platforms.unix.linux.LinuxPlatform 100% 100% 0%
com.aws.greengrass.util.platforms.unix.linux.CgroupV1 0% 0% 0%
com.aws.greengrass.util.platforms.unix.linux.CgroupV2 74% 89% 60%
com.aws.greengrass.deployment.converter.DeploymentDocumentConverter 72% 79% 65%
com.aws.greengrass.ipc.AuthenticationHandler 30% 35% 25%
com.aws.greengrass.ipc.IPCEventStreamService 73% 80% 66%
com.aws.greengrass.jna.Kernel32Ex 0% 0% 0%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$UpdateConfigurationOperationHandler 68% 73% 63%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent 78% 81% 75%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$ConfigurationUpdateOperationHandler 76% 90% 62%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$GetConfigurationOperationHandler 67% 78% 57%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$SendConfigurationValidityReportOperationHandler 78% 90% 66%
com.aws.greengrass.builtin.services.configstore.ConfigStoreIPCEventStreamAgent$ValidateConfigurationUpdatesOperationHandler 95% 95% 0%
com.aws.greengrass.ipc.common.DefaultOperationHandler 0% 0% 0%
com.aws.greengrass.security.SecurityService$DefaultCryptoKeyProvider 24% 23% 25%
com.aws.greengrass.security.SecurityService 38% 51% 25%
com.aws.greengrass.provisioning.ProvisioningPluginFactory 100% 100% 0%
com.aws.greengrass.provisioning.ProvisioningConfigUpdateHelper 75% 100% 50%
com.aws.greengrass.componentmanager.builtins.GreengrassRepositoryDownloader 0% 0% 0%
com.aws.greengrass.componentmanager.builtins.S3Downloader 10% 17% 3%
com.aws.greengrass.componentmanager.builtins.ArtifactDownloaderFactory 52% 63% 42%
com.aws.greengrass.componentmanager.builtins.ArtifactDownloader 16% 21% 11%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$UpdateStateOperationHandler 60% 60% 0%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$DeferComponentUpdateHandler 88% 88% 0%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent 59% 61% 56%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$SubscribeToComponentUpdateOperationHandler 57% 64% 50%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$PauseComponentHandler 56% 62% 50%
com.aws.greengrass.builtin.services.lifecycle.LifecycleIPCEventStreamAgent$ResumeComponentHandler 56% 62% 50%
com.aws.greengrass.builtin.services.pubsub.PubSubIPCEventStreamAgent$PublishToTopicOperationHandler 70% 90% 50%
com.aws.greengrass.builtin.services.pubsub.SubscriptionTrie 70% 76% 64%
com.aws.greengrass.builtin.services.pubsub.PubSubIPCEventStreamAgent 66% 73% 58%
com.aws.greengrass.builtin.services.pubsub.PubSubIPCEventStreamAgent$SubscribeToTopicOperationHandler 97% 94% 100%
com.aws.greengrass.telemetry.MetricsPayload 0% 0% 0%
com.aws.greengrass.telemetry.MetricsAggregator 43% 49% 38%
com.aws.greengrass.telemetry.MetricsAggregator$1 0% 0% 0%
com.aws.greengrass.telemetry.AggregatedMetric 33% 33% 0%
com.aws.greengrass.telemetry.TelemetryAgent 58% 70% 46%
com.aws.greengrass.telemetry.TelemetryConfiguration 30% 51% 10%
com.aws.greengrass.telemetry.PeriodicMetricsEmitter 100% 100% 0%
com.aws.greengrass.telemetry.TelemetryAgent$1 20% 20% 0%
com.aws.greengrass.telemetry.SystemMetricsEmitter 100% 100% 100%
com.aws.greengrass.deployment.DeploymentConfigMerger 69% 69% 68%
com.aws.greengrass.deployment.IotJobsHelper$IotJobsClientFactory 100% 100% 0%
com.aws.greengrass.deployment.DeploymentConfigMerger$AggregateServicesChangeManager 77% 74% 80%
com.aws.greengrass.deployment.DeviceConfiguration 69% 73% 65%
com.aws.greengrass.deployment.DeploymentDocumentDownloader 14% 14% 0%
com.aws.greengrass.deployment.DeploymentQueue 61% 68% 55%
com.aws.greengrass.deployment.DeploymentService 69% 70% 68%
com.aws.greengrass.deployment.EndpointSwitchState 29% 41% 16%
com.aws.greengrass.deployment.IotJobsHelper$LatestQueuedJobs 19% 19% 0%
com.aws.greengrass.deployment.KernelUpdateDeploymentTask 18% 28% 7%
com.aws.greengrass.deployment.DynamicComponentConfigurationValidator 85% 82% 87%
com.aws.greengrass.deployment.DefaultDeploymentTask 68% 76% 61%
com.aws.greengrass.deployment.DeploymentDirectoryManager 64% 78% 50%
com.aws.greengrass.deployment.IotJobsHelper$WrapperMqttConnectionFactory 100% 100% 0%
com.aws.greengrass.deployment.IotJobsHelper 35% 42% 28%
com.aws.greengrass.deployment.IotJobsHelper$1 14% 14% 0%
com.aws.greengrass.deployment.EndpointSwitchPreflightValidator 10% 10% 0%
com.aws.greengrass.deployment.ThingGroupHelper 27% 38% 16%
com.aws.greengrass.deployment.ShadowDeploymentListener 40% 49% 32%
com.aws.greengrass.deployment.ShadowDeploymentListener$1 14% 14% 0%
com.aws.greengrass.deployment.DeploymentStatusKeeper 81% 91% 71%
com.aws.greengrass.deployment.IotJobsClientWrapper 35% 41% 30%
com.aws.greengrass.util.orchestration.SystemServiceUtilsFactory 0% 0% 0%
com.aws.greengrass.util.orchestration.ProcdUtils 0% 0% 0%
com.aws.greengrass.util.orchestration.SystemServiceUtils 0% 0% 0%
com.aws.greengrass.util.orchestration.InitUtils 0% 0% 0%
com.aws.greengrass.util.orchestration.SystemdUtils 0% 0% 0%
com.aws.greengrass.util.orchestration.WinswUtils 0% 0% 0%
com.aws.greengrass.testing.TestFeatureParameters 83% 100% 66%
com.aws.greengrass.testing.TestFeatureParameters$1 100% 100% 0%
com.aws.greengrass.ipc.modules.PubSubIPCService 81% 81% 0%
com.aws.greengrass.ipc.modules.AuthorizationService 100% 100% 0%
com.aws.greengrass.ipc.modules.ComponentMetricIPCService 69% 69% 0%
com.aws.greengrass.ipc.modules.MqttProxyIPCService 75% 75% 0%
com.aws.greengrass.ipc.modules.LifecycleIPCService 86% 86% 0%
com.aws.greengrass.ipc.modules.ConfigStoreIPCService 100% 100% 0%
com.aws.greengrass.easysetup.GreengrassSetup 0% 0% 0%
com.aws.greengrass.easysetup.DeviceProvisioningHelper 0% 0% 0%

Minimum allowed coverage is 58%

Generated by 🐒 cobertura-action against db427a5

runWithRetry(DifferentiatedRetryConfig) tracked one retryInterval shared by
every config in the list, and slept on it before clamping to the matched
config's ceiling. A config with a high ceiling could therefore ramp the
interval and leave a config with a much lower ceiling sleeping far past its
own.

Both existing callers hid this. DeploymentDocumentDownloader pairs two configs
that are both flat at 1 minute, and the single-config runWithRetry overload
delegates through fromRetryConfig, where one config cannot interfere with
another. Pairing configs whose ceilings differ, as the docker downloader now
does with 32 minutes and 2 minutes, makes the behaviour reachable: several
DockerServiceUnavailableException failures ramp the interval toward 32 minutes,
and an UnknownDockerPullException arriving afterwards sleeps for up to that
long despite its own 2 minute ceiling.

Track the interval per config, initialized from each config's own
initialRetryInterval. This also removes the lazy zero-initialization, which
previously meant a config's initialRetryInterval only applied when its
exception happened to be the first failure.

Behaviour is unchanged for a single config and for two configs with equal
intervals, so neither existing caller is affected.

The new test pairs a config ramping 200ms to 30s with one fixed at 10ms and
asserts total elapsed time. It fails at 6178ms against the shared interval and
passes at 2275ms with the fix.
…tures

Two DockerImageDownloaderTest cases built an UnknownDockerPullException whose
message was "connection reset by peer". That string is in CONNECTION_ERRORS, so
DefaultDockerClient can never produce an UnknownDockerPullException carrying it,
and the fixture implied a combination that cannot occur. Use the same
unrecognized message the third case already used.

Add classification cases for the connection error strings that had none:
network is down, host is unreachable, connection aborted, context deadline
exceeded, and server misbehaving.
The test asserted elapsed time under 3100ms, against a maximum of 3010ms for
the fixed code, leaving 90ms of slack across five Thread.sleep calls.
Thread.sleep guarantees only a minimum, so overshoot on a loaded machine could
fail the assertion spuriously.

The gap between the two cases works out to half the initial interval, because
the leaked sleep is at least the ramped interval's half while the noise is the
jitter spread of the sleeps preceding it. Sleeps late in a ramp dominate that
spread, so one sleep on a large interval separates the cases far better than
several on small ones.

Ramp with a single 2s interval instead of four from 200ms. The fixed code now
takes at most 2010ms and the shared interval at least 3000ms, so a 2500ms
threshold leaves roughly 490ms either side. The test also runs faster,
measuring 1932ms rather than 2275ms, and still fails against the shared
interval, measuring 5641ms.
@aws-kevinrickard aws-kevinrickard changed the title fix: retry unrecognized docker pull errors instead of failing immediately fix: retry docker pull network errors instead of failing deployments Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants