Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-132: Fix race condition when referencing the same archived dependencies in multiple places #133

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

ascopes
Copy link
Owner

@ascopes ascopes commented Mar 19, 2024

Fixes GH-132.

Repeated dependencies are not currently de-duplicated from the classpath which leads to concurrency issues from race conditions when unpacking the same path in multiple places.

This also now deals with normalizing paths to ensure that they are handled consistently and only once even if using relative/non-normalised path patterns.

@ascopes ascopes added the bug Something isn't working label Mar 19, 2024
@ascopes ascopes self-assigned this Mar 19, 2024
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.21%. Comparing base (dbf36b6) to head (d4775a6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
+ Coverage   83.17%   83.21%   +0.05%     
==========================================
  Files          23       23              
  Lines         778      780       +2     
  Branches       49       49              
==========================================
+ Hits          647      649       +2     
  Misses        110      110              
  Partials       21       21              
Files Coverage Δ
...rotobufmavenplugin/source/ProtoSourceResolver.java 81.36% <100.00%> (+0.66%) ⬆️

@ascopes ascopes merged commit f4a9b04 into main Mar 19, 2024
15 checks passed
@ascopes ascopes deleted the bugfix/GH-132 branch March 19, 2024 19:00
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.

Race Condition during .proto file creation
1 participant