Repository navigation
utils: relax the error when tar extraction filters are unavailable - #745
Conversation
|
Implementing this as a policy would require a lot of work. The extraction might run when building, updating layers, on jenkins jobs, |
|
For the unittests I do not see the error in the logs? 🤔 |
|
You need to view the raw logs and then search for "finished: FAIL". But yeah, all the tests logging makes it rather hard to follow. |
Python of Debians 12 did not support PEP 706 (Filter for tarfile.extractall) raising the `Refusing to extract tar file: Python version is too old to do this safely` error. As this is still a supported version of debian relax the error to warning level and continue without the extraction filter. Also change the order of the PEP 706 + CVE-2025-4517 test. First check if the `data_filter` is available before checking for it's fix. Fixes BobBuildTool#744.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #745 +/- ##
=======================================
Coverage 90.43% 90.44%
=======================================
Files 60 60
Lines 17587 17590 +3
=======================================
+ Hits 15905 15909 +4
+ Misses 1682 1681 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
:/ |
Thanks. I'll put some fix for that on top. This has been a problem since a long time. |
|
Just because I noticed this... Tests should go into a separate commit. That makes cherry-picks for stable branches easier. |
Python of Debians 12 did not support PEP 706 (Filter for tarfile.extractall) raising the
Refusing to extract tar file: Python version is too old to do this safelyerror. As this is still a supported version of debian relax the error to warning level and continue without the extraction filter.Fixes #744.