Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tst/integration/agent/proxy_local_container_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

pytestmark = [pytest.mark.integration, pytest.mark.int_test_slow]

TASK_DOCKERFILE = """FROM mirror.gcr.io/library/debian:bookworm-slim
TASK_DOCKERFILE = """FROM public.ecr.aws/docker/library/debian:bookworm-slim
RUN mkdir -p /work && echo hello > /work/greeting.txt
WORKDIR /work
"""
Expand Down
2 changes: 1 addition & 1 deletion tst/integration/cli/run_bundle_task_image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_a_task_container_from_an_image_folder_is_built_by_the_first_run_alone(s
root = state / "bundle"
(root / "artifacts/task-image").mkdir(parents=True)
(root / "artifacts/task-image/Dockerfile").write_text(
"FROM mirror.gcr.io/library/debian:bookworm-slim\nRUN echo built > /built\n")
"FROM public.ecr.aws/docker/library/debian:bookworm-slim\nRUN echo built > /built\n")
(root / "tasks").mkdir()
(root / "tasks/grade.json").write_text(TASK)
builds, build = [], host_images._build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

pytestmark = pytest.mark.integration

IMAGE = "mirror.gcr.io/library/debian:bookworm-slim"
IMAGE = "public.ecr.aws/docker/library/debian:bookworm-slim"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Fast tests hit pull limits

The two changed task-step tests run in integration-local, which has no base-image pre-pull step. Only the slow and gateway jobs prepare the ECR name. If the fast runner lacks this Debian image, these tests now pull directly from public ECR and can fail on its documented shared-IP pull limits before reaching their assertions. Keep the mirror references for these tests, or prepare Debian in the fast job too.

Knowledge Base Used: Pull release image bases through the mirror before CI builds

Prompt To Fix With AI
This is a comment left during a code review.
Path: tst/integration/task_step/test_run_container_result_files_local.py
Line: 22

Comment:
**Fast tests hit pull limits**

The two changed task-step tests run in `integration-local`, which has no base-image pre-pull step. Only the slow and gateway jobs prepare the ECR name. If the fast runner lacks this Debian image, these tests now pull directly from public ECR and can fail on its documented shared-IP pull limits before reaching their assertions. Keep the mirror references for these tests, or prepare Debian in the fast job too.

**Knowledge Base Used:** [Pull release image bases through the mirror before CI builds](https://app.greptile.com/-/switch-tenant?tenant=scale-ai&next=%2Fcustom-context%2Fknowledge-base%2Fscaleapi%2Fagentenv-framework%2F-%2Freverts%2Fincident-mitigation_275-20261022-ecr-base-pull-rate-limit-bc3db30.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Cursor Fix in Claude Code Fix in Codex



@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async def test_runs_of_an_image_artifact_build_it_once_and_teardown_leaves_it_fo
suffix = uuid.uuid4().hex[:8]
(local_backends / "image").mkdir()
(local_backends / "image/Dockerfile").write_text(
f"FROM mirror.gcr.io/library/debian:bookworm-slim\nRUN echo {suffix} > /built\n")
f"FROM public.ecr.aws/docker/library/debian:bookworm-slim\nRUN echo {suffix} > /built\n")
image = DockerImageArtifact.put_context(f"rdc4-img-{suffix}", description="a task image",
context_path=str(local_backends / "image"), dockerfile_path="Dockerfile",
platform=None)
Expand Down
Loading