Skip to content

fix: free disk space in CreateAzureSdkForNetPR pipeline stage#10407

Merged
JoshLove-msft merged 1 commit intomicrosoft:mainfrom
JoshLove-msft:fix/submitpr-disk-space
Apr 17, 2026
Merged

fix: free disk space in CreateAzureSdkForNetPR pipeline stage#10407
JoshLove-msft merged 1 commit intomicrosoft:mainfrom
JoshLove-msft:fix/submitpr-disk-space

Conversation

@JoshLove-msft
Copy link
Copy Markdown
Contributor

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

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Apr 16, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 16, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-csharp@10407

commit: 2abb833

@github-actions
Copy link
Copy Markdown
Contributor

No changes needing a change description found.

Comment thread packages/http-client-csharp/eng/pipeline/publish.yml Outdated
The CreateAzureSdkForNetPR stage was running out of disk space (95%+)
during generation. Redirect NUGET_PACKAGES, npm_config_cache, and
TMPDIR to Agent.TempDirectory which is on a separate, larger partition
on Azure DevOps hosted agents.

Also limit artifact download to only build_artifacts_csharp instead
of downloading all pipeline artifacts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JoshLove-msft JoshLove-msft force-pushed the fix/submitpr-disk-space branch from e2592a3 to 2abb833 Compare April 17, 2026 15:34
Copy link
Copy Markdown
Contributor

@jorgerangel-msft jorgerangel-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach is much cleaner than the sudo 😄

@JoshLove-msft JoshLove-msft added this pull request to the merge queue Apr 17, 2026
Merged via the queue into microsoft:main with commit 3cd7c82 Apr 17, 2026
29 checks passed
@JoshLove-msft JoshLove-msft deleted the fix/submitpr-disk-space branch April 17, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants