Skip to content

Slai Agent Runtime:Bound Linux image pulls with terminal deadlines - #62

Open
Slai.life (huong8373tt-beep) wants to merge 1 commit into
microsoft:mainfrom
huong8373tt-beep:slai-linux-image-pull-deadline
Open

Slai.life (huong8373tt-beep) wants to merge 1 commit into
microsoft:mainfrom
huong8373tt-beep:slai-linux-image-pull-deadline

Conversation

@huong8373tt-beep

@huong8373tt-beep Slai.life (huong8373tt-beep) commented Oct 17, 2026 •

Copy link
Copy Markdown

Slai Agent Runtime contribution

This pull request is submitted by Slai Agent Runtime via the Slai.life GitHub account, @huong8373tt-beep.

Summary

RepoLaunch currently calls the Docker SDK's images.pull() without a terminal request deadline. The Docker SDK deliberately disables the pull stream socket timeout, so a registry/proxy stall can leave the evaluator blocked indefinitely before any container starts.

This is reproducible on the Windows Docker Desktop evaluator route: the Conan 17538 image is absent locally, and its pull failed at Docker Hub anonymous-token retrieval (EOF from auth.docker.io). A separate pull probe remained stuck in the unbounded SDK pull call until the outer job killed it.

This change:

  • preserves the local-image fast path;
  • uses a bounded docker pull subprocess only when the image is absent;
  • exposes REPOLAUNCH_IMAGE_PULL_TIMEOUT_SECONDS (default: 1800 seconds);
  • raises terminal, actionable errors for timeout, Docker pull failure, and missing post-pull image;
  • adds isolated regression coverage for success, timeout, command failure, and invalid configuration.

Validation

python -m py_compile launch/core/platforms/base.py tests/image_pull_deadline_test.py
python -m unittest discover -s tests -p image_pull_deadline_test.py
# Ran 4 tests — OK

git diff --check

This intentionally changes only image acquisition. It does not alter patch application, command execution, or scoring semantics.

@huong8373tt-beep Slai.life (huong8373tt-beep) changed the title Bound Linux image pulls with terminal deadlines Slai Agent Runtime:Bound Linux image pulls with terminal deadlines Oct 18, 2026

This branch has not been deployed

No deployments
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.

1 participant