zuul-jobs/roles/prepare-workspace-git
Lukas Kranz be72e626e8 Make prepare-workspace-git fail faster.
In case of aws spot instances, the node can drop the connection anytime.
Ansible loops do not fail when the first item fails, instead they execute all items before reporting the failure.
This leads to a big overhead, if we sync repositories, when the node has dropped the connection beforehand.
Therefore i used include_tasks, which fails for the first unsuccessful item.

Change-Id: Id6079a2cda10a825384d52d47750d9c05d323e00
2024-03-21 07:34:30 +01:00
..
defaults prepare-workspace-git: Add ability to define synced pojects 2024-02-28 10:56:48 -08:00
tasks Make prepare-workspace-git fail faster. 2024-03-21 07:34:30 +01:00
README.rst prepare-workspace-git: Add ability to define synced pojects 2024-02-28 10:56:48 -08:00

Mirror the local git repos to remote nodes

This role uses git operations (unlike :zuulprepare-workspace which uses rsync) to mirror the locally prepared git repos to the remote nodes while taking advantage of cached repos on the node if they exist. This role works generically regardless of the existence of a cached repo on the node.

The cached repos need to be placed using the canonical name under the cached_repos_root directory.

Role Variables