Repository navigation
Propagate local storage upload errors when locking is disabled - #2204
Merged
micafer merged 7 commits intoNov 8, 2026
Merged
Conversation
Apache-ai: Code and regression tests prepared with OpenAI Codex.
JunaidAhamed-7777
marked this pull request as ready for review
November 1, 2026 04:49
Contributor
|
Hi! The GitHub Actions workflow runs for this PR have expired because they were awaiting maintainer approval for more than 30 days. Could you please push a new commit to your PR branch (an empty commit is fine) to trigger fresh workflow runs? I'll approve the new runs once they appear. Thanks! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #2204 +/- ##
=======================================
Coverage 83.60% 83.61%
=======================================
Files 352 352
Lines 82138 82161 +23
Branches 8814 8816 +2
=======================================
+ Hits 68671 68694 +23
Misses 10594 10594
Partials 2873 2873
🚀 New features to boost your workflow:
|
Contributor
|
Please add the entry in the changelog. |
micafer
enabled auto-merge
November 7, 2026 18:48
auto-merge was automatically disabled
November 8, 2026 06:52
Head branch was pushed to by a user without write access
micafer
enabled auto-merge
November 8, 2026 08:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
NoOpLockLocalStorage.__exit__returns the exception object. A truthy return suppresses that exception, so disabling locking can cause a failed upload to report success. ReturnFalseso the original error propagates.The regressions cover a source stream that yields data and then raises
OSError, a missing source file uploaded over an existing destination, and a successful streamed upload with locking disabled.Reproduction
On
trunkatbd9cbb3e393bc42f57684481e7c62e9293007584, Python 3.12.14 on Linux:With this change, the original
OSErrorpropagates. This does not change partial-file cleanup or the locking-enabled implementation. The bug report is included here; there is no separate tracking issue.Status
Draft. Human review and hosted CI are pending.
Validation
pytest -q libcloud/test/storage/test_local.py libcloud/test/storage/test_base.py: 35 passed.git diff --checkpass for the changed files.Checklist