Closed adarshan-intel closed 2 months ago
Third, please never paste text as screenshots of it...
@dimakuv - A customer has reported an issue where their build system is designed to execute multiple jobs concurrently to generate several independent GSC images. Although this approach will result in a sequential process, I believe it serves as an effective temporary solution to resolve their current situation.
Description of the changes
This PR adds a lock to the Docker image pruning process to prevent race conditions and breaking the code
How to test this PR?
To test this PR, create a script that signs multiple images in parallel in background using
&
. Then, attempt to trigger the race condition while performing thegsc sign
operation. This should help you encounter the issue. Example script LinkAdding locking mechanism should fix the issue.
This change is