Skip to content

test/system: add --command-timeout to skopeo copy calls#1815

Merged
debarshiray merged 2 commits into
containers:mainfrom
debarshiray:wip/rishi/test-system-libs-helpers-skopeo-copy-timeout
Jul 3, 2026
Merged

test/system: add --command-timeout to skopeo copy calls#1815
debarshiray merged 2 commits into
containers:mainfrom
debarshiray:wip/rishi/test-system-libs-helpers-skopeo-copy-timeout

Conversation

@debarshiray

Copy link
Copy Markdown
Member

For some reason, calls to skopeo copy sometimes hang indefinitely. Avoid
this issue by specifying --command-timeout with reasonable values
(longer for call which must fetch over the network).

#1811

@debarshiray debarshiray force-pushed the wip/rishi/test-system-libs-helpers-skopeo-copy-timeout branch from df15463 to 6897fc9 Compare July 3, 2026 13:25

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request reformats several skopeo copy commands in test/system/libs/helpers.bash to span multiple lines. However, the feedback highlights that the --command-timeout option—which is crucial for preventing indefinite hangs during image copying—is missing from all modified commands. The reviewer recommends adding appropriate timeouts (ranging from 2 to 15 minutes depending on whether the copy is local or over the network) and provides concrete code suggestions for each instance.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread test/system/libs/helpers.bash Outdated
Comment thread test/system/libs/helpers.bash Outdated
Comment thread test/system/libs/helpers.bash Outdated
Comment thread test/system/libs/helpers.bash Outdated
For some reason, calls to 'skopeo copy' to populate the local temporary
Docker registry are sometimes hanging indefinitely.  Everything was fine
on the 28th of May [1].  The problem started with Fedora Rawhide on the
30th of May [2], and spread to Fedora 44 on the 4th of June [3].

Avoid the indefinite hangs and make skopeo(1) fail sooner by using
reasonable timeouts - longer for remote network I/O and shorter for
local.

[1] containers#1799

[2] containers#1798

[3] containers#1769

containers#1811
containers#1815

Signed-off-by: Rolv Apneseth <rolv.apneseth@gmail.com>
@debarshiray debarshiray merged commit 4c92e63 into containers:main Jul 3, 2026
2 of 3 checks passed
@debarshiray debarshiray deleted the wip/rishi/test-system-libs-helpers-skopeo-copy-timeout branch July 3, 2026 21:35
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