-
Notifications
You must be signed in to change notification settings - Fork 84
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
util: set group:user on extracted tar members #1025
Conversation
Set the gid:uid on the tar file members as we extract them from the build archive, so they are owned by a real user in both the container and on the host. Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1025 +/- ##
==========================================
+ Coverage 80.75% 90.59% +9.84%
==========================================
Files 15 14 -1
Lines 977 1085 +108
==========================================
+ Hits 789 983 +194
+ Misses 188 102 -86 ☔ View full report in Codecov by Sentry. |
Did you check that this is not much slower? |
I didn't pay close attention, but the resulting builds were just as fast. My ath79 live test using Live testing strategy:
I usually do a few owut runs with and without |
Great thanks for checking |
Ok, got solid numbers... I added a little timer, so we can measure wall time for a chunk of code, looks like this:
So the timings below are for the whole open/set-uids/extract sequence. Did three builds, extracted this from the logs.
Then looked at the extracted file sizes. It appears that untar time is purely a function of the file sizes, and overall is of no consequence.
|
Thanks for checking. Back in the day I terribly slowed down ASU by relying on pure python tar extraction |
Set the gid:uid on the tar file members as we extract them from the build archive, so they are owned by a real user in both the container and on the host.
This came about from two things: part of documenting setup of a local server, and attempting to write host-based tools to manage build storage.