Skip to content

Commit 3cd7c82

Browse files
fix: free disk space in CreateAzureSdkForNetPR pipeline stage (#10407)
The SubmitPr stage was hitting 95% disk usage. Three changes to reduce it: - Download only build_artifacts_csharp instead of all pipeline artifacts - Add disk cleanup step to remove Docker data, ghc, and Boost from runner - Clean up node_modules and npm cache after build, before sdk checkout Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c0a1559 commit 3cd7c82

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/http-client-csharp/eng/pipeline/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ extends:
106106
jobs:
107107
- job: CreatePR
108108
timeoutInMinutes: 90
109+
variables:
110+
# Redirect temp and cache directories to Agent.TempDirectory (a separate, larger partition)
111+
# to avoid running out of disk space on the root partition during generation
112+
TMPDIR: $(Agent.TempDirectory)
113+
NUGET_PACKAGES: $(Agent.TempDirectory)/nuget
114+
npm_config_cache: $(Agent.TempDirectory)/npm-cache
109115
steps:
110116
- checkout: self
111117
- pwsh: |
@@ -150,6 +156,7 @@ extends:
150156
workingFile: $(Build.SourcesDirectory)/packages/http-client-csharp/.npmrc
151157

152158
- download: current
159+
artifact: build_artifacts_csharp
153160
displayName: Download pipeline artifacts
154161

155162
- pwsh: |

0 commit comments

Comments
 (0)