Skip to content

[utils] Fail immediately on extraction errors#9926

Merged
mudler merged 1 commit into
mudler:masterfrom
RinZ27:fix/extraction-robustness
May 21, 2026
Merged

[utils] Fail immediately on extraction errors#9926
mudler merged 1 commit into
mudler:masterfrom
RinZ27:fix/extraction-robustness

Conversation

@RinZ27
Copy link
Copy Markdown
Contributor

@RinZ27 RinZ27 commented May 21, 2026

Ensuring archive extraction integrity is critical for maintaining a stable runtime environment. This change modifies ExtractArchive to disable the ContinueOnError flag. By failing immediately upon any extraction error, we prevent models or backends from being left in a partially extracted and inconsistent state, which could otherwise lead to undefined behavior or silent failures during model loading.

Notes for Reviewers
The modification is focused strictly on the mytar configuration within pkg/utils/untar.go. Existing archive tests were verified to ensure no regressions in path validation or standard extraction logic.

Signed commits

  • Yes, I signed my commits.

Setting ContinueOnError to false ensures that ExtractArchive does not
leave the model or backend directory in an inconsistent state if a
partial failure occurs. This improves robustness against malformed
archives or unexpected I/O issues during installation.

Signed-off-by: RinZ27 <222222878+RinZ27@users.noreply.github.com>
@mudler mudler merged commit a7f6cc8 into mudler:master May 21, 2026
54 checks passed
@RinZ27 RinZ27 deleted the fix/extraction-robustness branch May 22, 2026 12:15
@localai-bot localai-bot added the bug Something isn't working label May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants