You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this resource with global resources enabled, we are running into three issues:
If more than one build references the metadata resource concurrently then it will share the same checking container meaning that the metadata that is reported can only be correct for one build. Any other builds that are also referencing this resource will end up with incorrect metadata from the other, unrelated build, potentially from a different pipeline, potentially from a different team.
Similarly, if another build runs soon after a previous one finishing, Concourse will use the cached version of this resource and will thus report incorrect metadata from a previous build. This can be seen with the following log message on the get step of the metadata resource: INFO: found existing resource cache.
The get step of the metadata resource can get blocked with the following message: INFO: waiting to acquire resource lock if another build is already running which has a lock on the metadata resource.
If my understanding of this from the base resource type is correct, it is possible for resource types to enforce UniqueVersionHistory - In the case of the metadata resource, I believe this should be enabled as we will always want it to be unique to avoid the aforementioned issues occurring if this resource is used across multiple pipelines and/or teams.
The text was updated successfully, but these errors were encountered:
When using this resource with global resources enabled, we are running into three issues:
get
step of themetadata
resource:INFO: found existing resource cache
.get
step of themetadata
resource can get blocked with the following message:INFO: waiting to acquire resource lock
if another build is already running which has a lock on the metadata resource.If my understanding of this from the base resource type is correct, it is possible for resource types to enforce
UniqueVersionHistory
- In the case of the metadata resource, I believe this should be enabled as we will always want it to be unique to avoid the aforementioned issues occurring if this resource is used across multiple pipelines and/or teams.The text was updated successfully, but these errors were encountered: