Skip to content

Add zip file cache validation#256

Merged
pombredanne merged 2 commits intoaboutcode-org:mainfrom
boschglobal:bad-zip-file
Mar 11, 2026
Merged

Add zip file cache validation#256
pombredanne merged 2 commits intoaboutcode-org:mainfrom
boschglobal:bad-zip-file

Conversation

@MarcelBochtler
Copy link
Contributor

No description provided.

@MarcelBochtler MarcelBochtler changed the title Validate zip files to validate cache files Add cache validation and atomic file operations Nov 28, 2025
@MarcelBochtler MarcelBochtler force-pushed the bad-zip-file branch 2 times, most recently from ccf48ca to c752c84 Compare November 28, 2025 16:32
@MarcelBochtler MarcelBochtler marked this pull request as ready for review November 28, 2025 16:35
@MarcelBochtler MarcelBochtler force-pushed the bad-zip-file branch 15 times, most recently from f26de2e to d905d6f Compare January 13, 2026 14:29
Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
@MarcelBochtler MarcelBochtler force-pushed the bad-zip-file branch 5 times, most recently from b3339a1 to ae2efad Compare January 14, 2026 10:04
We've seen corrupted wheel files in Python Inspector's cache leading to
`BadZipFile` exceptions.
Add additional validation that ensures that files that will be reused
from the cache are actual zip files.

Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
@MarcelBochtler MarcelBochtler changed the title Add cache validation and atomic file operations Add cache validation Jan 14, 2026
@MarcelBochtler MarcelBochtler changed the title Add cache validation Add zip file cache validation Jan 14, 2026
@kerstin-bosch
Copy link

@pombredanne: Hi Philippe, a further python topic :) Unfortunately, the PR has been open for 3 months now. This fix is very important to us!! Would it be possible to review it soon or let us know what is still missing or when this would be possible? Thanks! Best regards Kerstin

Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

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

Thanks! ... merging. Note that a good way to bring this up the queue is with the weekly community calls!

@pombredanne pombredanne merged commit b9df6f9 into aboutcode-org:main Mar 11, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants