mirror of
https://github.com/inspec/inspec
synced 2024-11-15 01:17:08 +00:00
8e8dc7631e
* CHEF-3832: Fix for InSpec Parallel fails to fetch remote profiles due to cache contention. This fix creates the write exclusive lock on the cache directory of profile till write operation is finished for git fetcher Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> * Refactored to have locking and unlocking logic inside cache. Cache directory is not required for archived directories and this is currently only required by git fetcher Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> * REFACTOR: adds method in fetcher to return true if requires cache locking mechanism to avoid cache contention Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> * Adds exception handling Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> * Handles interruption in cache creation process to avoid empty cache directory creation or currupted data Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> * Refactored to handle interruption through SystemExit Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> * Fixed the failing test. While creating lock cache_key need to be extracted from the respective fetcher. Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> --------- Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io> |
||
---|---|---|
.. | ||
bundles | ||
inspec | ||
matchers | ||
plugins | ||
source_readers | ||
inspec.rb |