Skip to content

Fix masking permission errors during file locking - #369

Merged
greenbonebot merged 1 commit into
mainfrom
fix-permission-error-during-file-locking
Aug 11, 2026
Merged

Fix masking permission errors during file locking#369
greenbonebot merged 1 commit into
mainfrom
fix-permission-error-during-file-locking

Conversation

@bjoernricks

Copy link
Copy Markdown
Contributor

What

Fix masking permission errors during file locking

Why

Don't hide permission errors on other files while holding a lock on a lock file. Before the "normal" permission errors where interpreted as permission errors on the lock file itself and therefore converted to a FileLockingError. With this change only the PermissionError on the lock file itself is a FileLockingError and other PermissionErrors are raised to the user of flock_wait instead.

References

Closes #364

Checklist

  • Tests

Don't hide permission errors on other files while holding a lock on a
lock file. Before the "normal" permission errors where interpreted as
permission errors on the lock file itself and therefore converted to a
FileLockingError. With this change only the PermissionError on the lock
file itself is a FileLockingError and other PermissionErrors are raised
to the user of flock_wait instead.

Closes #364
@bjoernricks
bjoernricks requested review from a team as code owners August 10, 2026 13:46
@greenbonebot
greenbonebot enabled auto-merge (rebase) August 10, 2026 13:46
@github-actions

Copy link
Copy Markdown

Conventional Commits Report

😢 No conventional commits found.

👉 Learn more about the conventional commits usage at Greenbone.

@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.75000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.94%. Comparing base (804a5cf) to head (300b17d).

Files with missing lines Patch % Lines
greenbone/feed/sync/helper.py 93.75% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #369      +/-   ##
==========================================
- Coverage   99.36%   98.94%   -0.42%     
==========================================
  Files           7        7              
  Lines         470      475       +5     
==========================================
+ Hits          467      470       +3     
- Misses          3        5       +2     

☔ View full report in Codecov by Harness.
📢 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.

@bjoernricks bjoernricks added the patch release Create a new patch release after PR is merged label Aug 10, 2026
@greenbonebot
greenbonebot merged commit e833a34 into main Aug 11, 2026
24 of 26 checks passed
@greenbonebot
greenbonebot deleted the fix-permission-error-during-file-locking branch August 11, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch release Create a new patch release after PR is merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misleading lock-file PermissionError can mask failures inside feed sync

3 participants