mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
ci: pull the Firelens router from Docker Hub and correct why (#4622)
* ci: pull the Firelens router from Docker Hub and correct why A post-merge run showed the ECR Public quota is per runner IP and per byte, not specific to the docker/library mirror: the Firelens router failed with "toomanyrequests: Data limit exceeded" right after the same job had pulled two Lambda runtimes from ECR Public. The router is the same image AWS publishes on Docker Hub (same manifest, config and layer digests on both architectures), so the Firelens test now names it there, through a TestImages pin the prefetch reads. The Lambda runtimes stay on ECR Public: their Docker Hub copies lag by more than a year and some tags are missing. The TestImages Javadoc now gives the corrected reason. * ci: annotate a stale, unreadable or misrouted prefetch The prefetch already writes a line when a key names a class that no longer exists or when a TestImages pin cannot be read, but only into a log nobody reads unless a shard fails. The results step now turns those lines into workflow warning annotations, and adds one more: an image prefetched from ECR Public that is not a Lambda runtime, since everything else the tests start is carried by Docker Hub and belongs there. The prefetch stays best-effort, so these are annotations, not failures. * ci: warn on a misrouted prefetch whether or not its pull succeeded The routing warning matched only "prefetched" lines, so an image on the wrong registry whose pull failed on the quota, the very case the warning is for, produced only the raw failure line. It now matches "prefetch failed" lines too.
This commit is contained in:
1 parent
3b70ce0827
commit
ac706264a3
4 files changed
+29
-14
No files matched your search
+1
-1
@@ -37,7 +37,7 @@ class EcsContainerManagerFirelensDockerIntegrationTest {
|
||||
private static final String IMAGE = TestImages.BUSYBOX;
|
||||
/** A real FireLens router image: Floci writes the generated config to its own
|
||||
* {@code /fluent-bit/etc}, which no minimal image carries. */
|
||||
private static final String ROUTER_IMAGE = "public.ecr.aws/aws-observability/aws-for-fluent-bit:3";
|
||||
private static final String ROUTER_IMAGE = TestImages.FLUENT_BIT;
|
||||
|
||||
@Inject
|
||||
EcsContainerManager containerManager;
|
||||
|
||||
@@ -5,13 +5,14 @@ package io.github.hectorvent.floci.testing;
|
||||
* {@code .github/ci/prefetch-images.sh} reads the values from this file, the way it reads the
|
||||
* sidecar pins from {@code application.yml}, so the prefetch cannot drift from the tests.
|
||||
* <p>
|
||||
* The Docker library images are named the Docker Hub way, not through the
|
||||
* {@code public.ecr.aws/docker/library} mirror. That mirror has an anonymous quota of its own,
|
||||
* shared by runner IP and often spent before a job starts: on one CI job the first pull of the
|
||||
* job, {@code docker/library/busybox} from that mirror, failed with
|
||||
* {@code toomanyrequests: Data limit exceeded}, while the same runner pulled {@code busybox} from
|
||||
* Docker Hub seven seconds later and a 116 MiB {@code lambda/} image from ECR Public half a
|
||||
* minute after that. GitHub-hosted runners pull Docker Hub without a limit.
|
||||
* Every image that Docker Hub also carries is named the Docker Hub way. ECR Public meters
|
||||
* anonymous pulls by runner IP and by bytes, and GitHub-hosted runners share those IPs, so a job
|
||||
* can arrive with the quota already spent or spend it itself: on CI the mirror at
|
||||
* {@code public.ecr.aws/docker/library} failed on the first pull of a job, and the Firelens
|
||||
* router failed right after the same job had pulled two Lambda runtimes from ECR Public, both
|
||||
* with {@code toomanyrequests: Data limit exceeded}. GitHub-hosted runners pull Docker Hub
|
||||
* without a limit. The Lambda runtimes stay on ECR Public: their Docker Hub copies lag by more
|
||||
* than a year and some tags are missing there.
|
||||
*/
|
||||
public final class TestImages {
|
||||
|
||||
@@ -26,6 +27,9 @@ public final class TestImages {
|
||||
|
||||
public static final String PYTHON_ALPINE = "python:3.12-alpine";
|
||||
|
||||
/** The same image AWS publishes at {@code public.ecr.aws/aws-observability/aws-for-fluent-bit:3}. */
|
||||
public static final String FLUENT_BIT = "amazon/aws-for-fluent-bit:3";
|
||||
|
||||
private TestImages() {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user