Faster Azure DevOps Pipelines (

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • Speed up your Azure DevOps Pipelines! By combining Shallow Fetch and turning off the Sync Tags option you can dramatically decrease the amount of time it takes to fetch your git repo.
    David Paquette is software engineer at Microsoft working on the Azure DevOps team.
    Documentation:
    learn.microsof...

ความคิดเห็น • 3

  •  8 หลายเดือนก่อน +1

    nice improvement. ours run in 2 seconds with tags (we dont really use tags) and shallow copy turned off, so i have to find other ways to improve our pipeline

  • @thenatureofnurture6336
    @thenatureofnurture6336 2 ปีที่แล้ว +1

    Great tip!

  • @grumpydeveloper69
    @grumpydeveloper69 2 ปีที่แล้ว +1

    Completely unrelated rant 🙂
    I did not know that tags were being downloaded. Using shallow copies with gitversioning (such as minver) does not work since the commit height since the last release tag can't be calculated. At first I thought this might solve the issue, but it does not. I don't know of any solution except setting a git depth to fetch every commit up until a certain depth.
    Thanks for the info I might have to check other parameters too see whether something can be done instead of increasing the fetch depth which feel a workaround since, s you explained fetching the enitre repo will be a lot slower