-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support container to container copy #11049
Conversation
@containers/podman-maintainers PTAL |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan, vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The tests look good, but I wonder if they could be cut down a little? Each one takes over ten minutes (and the |
It looks like the ten-minute problem is caused by #10701: there are a lot of |
Yes, the tests are noticeably slow. They used to run much faster. I have absolutely no idea what may be the cause, so I'll try bisecting. |
I do not notice a difference between Podman v3.0.1-rhel and v3.2.3 on my machine. Could it be conmon? |
Scratch that. Found a reproducer and the difference is very noticeable. |
/hold |
With the commit from #11055, the execution time of the cp tests on my machine dropped from ~8 min down to 3min 40sec. I will still look into reducing the number of tests a bit. |
Implement container to container copy. Previously data could only be copied from/to the host. Fixes: containers#7370 Co-authored-by: Mehul Arora <[email protected]> Signed-off-by: Valentin Rothberg <[email protected]>
Reduce the amount of `podman exec`s in the cp system tests. Exec is expensive and a number of them could easily be combined into the container command. This cuts down the costs of running the tests by around 25 percent on my local machine. Signed-off-by: Valentin Rothberg <[email protected]>
Rebased on top of the exec fixes. I also took a shot at reducing the exec's in the cp tests and cut down the execution time by around 25 percent on my machine. |
The exec changes cut test time on my laptop from 3:46 to 3:36 (4% improvement). How did you get 25%? Are you comparing to old-slow-broken-exec time? (Edit: not that I'm complaining! Shaving 10 seconds from CI makes me happy!) |
Old & slow: > 8min |
LGTM! |
/lgtm |
/hold cancel |
Consolidate and simplify code in `podman cp` a bit. PR containers#11049 introduced some code duplicates that were worth tackling. [NO TESTS NEEDED] Signed-off-by: Valentin Rothberg <[email protected]>
Implement container to container copy. Previously data could only be
copied from/to the host.
Fixes: #7370
Co-authored-by: Mehul Arora [email protected]
Signed-off-by: Valentin Rothberg [email protected]