-
Notifications
You must be signed in to change notification settings - Fork 321
Fix disk space issue in .NET PR creation by implementing sparse checkout #9082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+39
−5
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ce issue Co-authored-by: JoshLove-msft <[email protected]>
Copilot
AI
changed the title
[WIP] Fix .NET PR script timeout issue due to low disk space
Fix disk space issue in .NET PR creation by implementing sparse checkout
Nov 25, 2025
Copilot finished work on behalf of
JoshLove-msft
November 25, 2025 03:26
christothes
approved these changes
Nov 25, 2025
jsquire
approved these changes
Nov 25, 2025
github-merge-queue bot
pushed a commit
that referenced
this pull request
Nov 25, 2025
PR #9082 switched to sparse checkout but omitted `sdk/core/Azure.Core/src/Shared`, causing build failures when Azure test projects reference shared source files like `TrimmingAttribute.cs`, `RawRequestUriBuilder.cs`, etc. ### Changes - Added `sdk/core/Azure.Core/src/Shared` to sparse checkout pattern in `Submit-AzureSdkForNetPr.ps1` ```powershell git sparse-checkout set eng/packages/http-client-csharp eng sdk/core/Azure.Core/src/Shared ``` <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Build is now failing in the Update PR</issue_title> > <issue_description>#9082 updated to use sparse checkout but we are missing the Azure.Core shared source files: > > CSC : error CS2001: Source file '/tmp/azure-sdk-for-net-20251125-171710/eng//../sdk/core/Azure.Core/src/Shared/TrimmingAttribute.cs' could not be found. [/tmp/azure-sdk-for-net-20251125-171710/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/_Specs_.Azure.Example.Basic.csproj::TargetFramework=net8.0] > CSC : error CS2001: Source file '/tmp/azure-sdk-for-net-20251125-171710/eng//../sdk/core/Azure.Core/src/Shared/RawRequestUriBuilder.cs' could not be found. [/tmp/azure-sdk-for-net-20251125-171710/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj::TargetFramework=net8.0] > CSC : error CS2001: Source file '/tmp/azure-sdk-for-net-20251125-171710/eng//../sdk/core/Azure.Core/src/Shared/TypeFormatters.cs' could not be found. [/tmp/azure-sdk-for-net-20251125-171710/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj::TargetFramework=net8.0] > CSC : error CS2001: Source file '/tmp/azure-sdk-for-net-20251125-171710/eng//../sdk/core/Azure.Core/src/Shared/RequestHeaderExtensions.cs' could not be found. [/tmp/azure-sdk-for-net-20251125-171710/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj::TargetFramework=net8.0] > CSC : error CS2001: Source file '/tmp/azure-sdk-for-net-20251125-171710/eng//../sdk/core/Azure.Core/src/Shared/AppContextSwitchHelper.cs' could not be found. [/tmp/azure-sdk-for-net-20251125-171710/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj::TargetFramework=net8.0] > CSC : error CS2001: Source file '/tmp/azure-sdk-for-net-20251125-171710/eng//../sdk/core/Azure.Core/src/Shared/ClientDiagnostics.cs' could not be found. [/tmp/azure-sdk-for-net-20251125-171710/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj::TargetFramework=net8.0] > CSC : error CS2001: Source file '/tmp/azure-sdk-for-net-20251125-171710/eng//../sdk/core/Azure.Core/src/Shared/DiagnosticScopeFactory.cs' could not be found. [/tmp/azure-sdk-for-net-20251125-171710/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj::TargetFramework=net8.0] > CSC : error CS2001: Source file '/tmp/azure-sdk-for-net-20251125-171710/eng//../sdk/core/Azure.Core/src/Shared/DiagnosticScope.cs' could not be found. [/tmp/azure-</issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> - Fixes #9091 <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/microsoft/typespec/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: JoshLove-msft <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
Submit-AzureSdkForNetPr.ps1script was performing a full clone ofazure-sdk-for-net(several GB), causing the pipeline to run out of disk space and timeout.Changes
git clonewith sparse checkout using cone modeeng/directory (containsPackages.Data.propsandpackages/http-client-csharp/)--depth 1) to minimize historyOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.