| Summary: | When saving ptest artefacts for failed tests, recursive directories are being copied | ||
|---|---|---|---|
| Product: | [QA/Testing] Package Testing (ptest) | Reporter: | Richard Purdie <richard.purdie> |
| Component: | ptest | Assignee: | Alexis Lothoré <alexis.lothore> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | High | CC: | alexandre.belloni, alexis.lothore, randy.macleod |
| Version: | unspecified | ||
| Target Milestone: | 5.1 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Richard Purdie
2024-06-30 22:22:07 UTC
I see two ways of fixing this without spawning an over-complicated solution evaluating each file to check if any is a symlink: - create an archive with all the files we want to retrieve, and then scp/uncompress this archive - switch to rsync I kind of remember that there was constraints which prevented rsync usage for this use case, but I don't remember the details. I will check again and come up with a fix for this (In reply to Alexis Lothoré from comment #1) > I see two ways of fixing this without spawning an over-complicated solution > evaluating each file to check if any is a symlink: > - create an archive with all the files we want to retrieve, and then > scp/uncompress this archive I'd worry that we don't have the space on target to be able to do this in many cases unfortunately. > - switch to rsync > > I kind of remember that there was constraints which prevented rsync usage > for this use case, but I don't remember the details. I will check again and > come up with a fix for this The issue with this one would be the requirement to have rsync in the target image which we can't always guarantee either. There may be a third option which is to pipe tar over ssh since tar can handle symlinks and loops. The rsync solution is probably most viable/easiest? |