]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
teuthology/repo_utils: Optimize repository cloning via bare repositories and worktrees clone-once 2207/head
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 4 Dec 2024 08:16:13 +0000 (03:16 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Wed, 27 May 2026 15:43:18 +0000 (11:43 -0400)
commitb57d834107bd84495610693836a25043a58a19f8
tree98d9f5cd6e6a5662ddeb2791eae2d79af97c7da5
parent4383c30b53c7c579eb561ff8dbd8285eecb898d7
teuthology/repo_utils: Optimize repository cloning via bare repositories and worktrees

Repeatedly performing full clones of the QA suite and other repositories
for different commits or branches slows down testing iterations and
consumes excess disk space and I/O.

This commit introduces an optimization that initializes a single bare
clone of a target repository. It subsequently utilizes git worktree to
provision lightweight, isolated workspaces for requested commits. This
reduces redundant network fetches and significantly accelerates
repository checkout operations.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
teuthology/repo_utils.py