Calculate docker instance label based on the hash of the config #2683
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.
Fixes #2647
The issue can occur when multiple runners are sharing the same docker socket, and they are executing within a container.
The well known directory is going to be the same for both runners, assuming they are executing the same image.
So when docker instance is calculated, the paths within the container are going to be exactly the same, one runner can remove resources owned by the other runner.
The fix uses the
.runner
file, which is unique per runner to calculate instance label, which should eliminate collision issues.