Skip to content

Fix extraction of tarballs in py3.14#6304

Open
arif-ali wants to merge 1 commit into
avocado-framework:masterfrom
arif-ali:avocado-arif-py314-extract-trusted
Open

Fix extraction of tarballs in py3.14#6304
arif-ali wants to merge 1 commit into
avocado-framework:masterfrom
arif-ali:avocado-arif-py314-extract-trusted

Conversation

@arif-ali
Copy link
Copy Markdown
Contributor

@arif-ali arif-ali commented May 6, 2026

Use fully_trusted_filter for extraction to restore previous method

Closes: #6302

@mr-avocado mr-avocado Bot moved this to Review Requested in Default project May 6, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements extraction_filter support for archive extraction to align with Python 3.12 security features. The review feedback suggests restricting the filter application to tar archives to avoid compatibility issues with zip files and removing a redundant attribute assignment in the uncompress function that is already handled by the extract method.

Comment thread avocado/utils/archive.py Outdated
Comment thread avocado/utils/archive.py Outdated
Use fully_trusted_filter for extraction to restore previous method

Closes: avocado-framework#6302

Signed-off-by: Arif Ali <arif-ali@ubuntu.com>
@arif-ali arif-ali force-pushed the avocado-arif-py314-extract-trusted branch from d18989d to 98d6104 Compare May 6, 2026 11:05
@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.31%. Comparing base (cbea52d) to head (98d6104).
⚠️ Report is 54 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6304      +/-   ##
==========================================
- Coverage   73.84%   72.31%   -1.54%     
==========================================
  Files         206      206              
  Lines       22565    23260     +695     
==========================================
+ Hits        16663    16820     +157     
- Misses       5902     6440     +538     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arif-ali
Copy link
Copy Markdown
Contributor Author

any thoughts on this at all, as we're facing this issue in our pipelines, and could really do with getting this resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Review Requested

Development

Successfully merging this pull request may close these issues.

the extract() function in tarball has changed in python3.14 and causes issues in avocado

1 participant