Skip to content

[shim] Don't check image downloaded size#2903

Merged
un-def merged 1 commit intomasterfrom
issue_2503_shim_fix_pull_error_image_size_mismatch
Jul 15, 2025
Merged

[shim] Don't check image downloaded size#2903
un-def merged 1 commit intomasterfrom
issue_2503_shim_fix_pull_error_image_size_mismatch

Conversation

@un-def
Copy link
Copy Markdown
Collaborator

@un-def un-def commented Jul 14, 2025

Sometimes dockerd emits less "Download complete" messages than expected, but the image is pulled successfully.
The reason is unclear, but, anyway, this check is redundant since we also rely on the status message, which is emitted only in the case of succesfull pull.

In addition, this patch adds/changes the following:

  • Write dockerd pull stream (JSON Lines) to {runnerDir}/pull.log — useful for debugging (in conjunction with DSTACK_SERVER_KEEP_SHIM_TASKS=1)
  • Use errorDetail.message instead of deprecated error
  • Move ctx.Err() check upper, otherwise it's shadowed by pull errors

Fixes: #2503

Sometimes dockerd emits less "Download complete" messages than
expected, but the image is pulled successfully.
The reason is unclear, but, anyway, this check is redundant since
we also rely on the status message, which is emitted only
in the case of succesfull pull.

In addition, this patch adds/changes the following:

* Write dockerd pull stream (JSON Lines) to {runnerDir}/pull.log —
  useful for debugging (in conjunction with
  DSTACK_SERVER_KEEP_SHIM_TASKS=1)
* Use `errorDetail.message` instead of deprecated `error`
* Move `ctx.Err()` check upper, otherwise it's shadowed by pull errors

Fixes: #2503
@un-def un-def requested a review from r4victor July 14, 2025 17:52
@un-def un-def merged commit e3b292d into master Jul 15, 2025
26 checks passed
@un-def un-def deleted the issue_2503_shim_fix_pull_error_image_size_mismatch branch July 15, 2025 07:20
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.

[Bug]: pullImage error when the image is actually pulled successfully

2 participants