Skip to content

Allow retries for all major remote copy methods#167

Open
pevogam wants to merge 2 commits into
avocado-framework:mainfrom
pevogam:remote-copy-retries
Open

Allow retries for all major remote copy methods#167
pevogam wants to merge 2 commits into
avocado-framework:mainfrom
pevogam:remote-copy-retries

Conversation

@pevogam
Copy link
Copy Markdown
Contributor

@pevogam pevogam commented May 29, 2026

Resolves #166.

Comment thread aexpect/remote.py Fixed
Comment thread aexpect/remote.py Fixed
@pevogam pevogam force-pushed the remote-copy-retries branch 4 times, most recently from 9d5a509 to adb7ef2 Compare May 29, 2026 14:25
For certain categories of transient network errors allowing more
resilience to remote copy operations is highly desirable where
the copy should at least be retried a configurable number of times
in (standard) one second intervals.

Add corresponding test contract and reorder the test cases in sync
with the original API funtions ordering.

Signed-off-by: Plamen Dimitrov <plamen.dimitrov@intra2net.com>
@pevogam pevogam force-pushed the remote-copy-retries branch from adb7ef2 to 5ff5046 Compare May 29, 2026 14:50
Signed-off-by: Plamen Dimitrov <plamen.dimitrov@intra2net.com>
@pevogam pevogam force-pushed the remote-copy-retries branch from e994271 to c7e9319 Compare May 29, 2026 15:43
@pevogam
Copy link
Copy Markdown
Contributor Author

pevogam commented May 29, 2026

@ldoktor While the first commit is final on my side, I added a second commit here which is questionable - it adds retries to some more exotic copy methods and I would like to hear your opinion about it. Do you think such extension is worth it? It will be much harder to test at least in one case it indents a long and complex function into a loop and try block which might have a better way of achieving, e.g. via nc_copy_between_remotes_retry method or such. Let me know your thoughts whether you are for this second commit or against it or for an alternation of some kind.

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.

Retriable copies for the remote module

2 participants