From 46773c930bc99d12e22121d42247688f28972d33 Mon Sep 17 00:00:00 2001 From: Brendan Walsh Date: Thu, 15 Aug 2024 15:24:28 -0700 Subject: [PATCH] chore: optimize git checkouts --- pipeline.yaml | 13 +++++++++++++ templates/checkout.yml | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 templates/checkout.yml diff --git a/pipeline.yaml b/pipeline.yaml index 0e75e509c1..fb46411bab 100644 --- a/pipeline.yaml +++ b/pipeline.yaml @@ -64,6 +64,7 @@ jobs: pool: vmImage: ubuntu-20.04 steps: + - template: templates/checkout.yml - task: AzureCLI@2 displayName: 'Scala Style Check' inputs: @@ -147,6 +148,7 @@ jobs: # synapse-internal: # TEST-CLASS: "com.microsoft.azure.synapse.ml.nbtest.SynapseExtension.SynapseExtensionsTests" steps: + - template: templates/checkout.yml #- template: templates/ivy_cache.yml - template: templates/update_cli.yml - template: templates/conda.yml @@ -176,6 +178,7 @@ jobs: # pool: # vmImage: ubuntu-20.04 # steps: +# - template: templates/checkout.yml # - task: AzureCLI@2 # displayName: 'Get Docker Tag + Version' # inputs: @@ -250,6 +253,7 @@ jobs: pool: vmImage: ubuntu-20.04 steps: + - template: templates/checkout.yml - template: templates/update_cli.yml - bash: | echo '##vso[task.setvariable variable=tag]'$(git tag -l --points-at HEAD) @@ -369,6 +373,7 @@ jobs: cognitive: PACKAGE: "cognitive" steps: + - template: templates/checkout.yml #- template: templates/ivy_cache.yml - template: templates/update_cli.yml - template: templates/conda.yml @@ -438,6 +443,7 @@ jobs: cognitive: PACKAGE: "cognitive" steps: + - template: templates/checkout.yml #- template: templates/ivy_cache_2.yml - template: templates/update_cli.yml - template: templates/conda.yml @@ -496,6 +502,7 @@ jobs: pool: vmImage: ubuntu-20.04 steps: + - template: templates/checkout.yml - template: templates/conda.yml - bash: df -H @@ -505,6 +512,7 @@ jobs: pool: vmImage: ubuntu-20.04 steps: + - template: templates/checkout.yml #- template: templates/ivy_cache.yml - template: templates/update_cli.yml - template: templates/conda.yml @@ -545,6 +553,10 @@ jobs: vmImage: ubuntu-20.04 steps: - checkout: self + fetchDepth: 1 + clean: true + submodules: false + lfs: false persistCredentials: true - template: templates/update_cli.yml - template: templates/conda.yml @@ -692,6 +704,7 @@ jobs: vw: PACKAGE: "vw" steps: + - template: templates/checkout.yml #- template: templates/ivy_cache.yml - template: templates/update_cli.yml - task: AzureCLI@2 diff --git a/templates/checkout.yml b/templates/checkout.yml new file mode 100644 index 0000000000..977867297b --- /dev/null +++ b/templates/checkout.yml @@ -0,0 +1,6 @@ +steps: + - checkout: self + fetchDepth: 1 + clean: true + submodules: false + lfs: false