Skip to content

Commit

Permalink
Remove unnecessary sources from the test used nuget.config file to re…
Browse files Browse the repository at this point in the history
…duce 429s
  • Loading branch information
marcpopMSFT committed Dec 2, 2022
1 parent 204fdac commit b9c1539
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
17 changes: 14 additions & 3 deletions build/RunTestsOnHelix.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@ robocopy %HELIX_CORRELATION_PAYLOAD%\t\TestExecutionDirectoryFiles %TestExecutio
REM call dotnet new so the first run message doesn't interfere with the first test
dotnet new --debug:ephemeral-hive
REM avoid potetial concurrency issues when nuget is creating nuget.config
dotnet nuget list source
dotnet nuget list source --configfile %TestExecutionDirectory%\nuget.config
REM We downloaded a special zip of files to the .nuget folder so add that as a source
dotnet new nugetconfig
dotnet nuget add source %DOTNET_ROOT%\.nuget --configfile nuget.config
dotnet nuget add source %DOTNET_ROOT%\.nuget --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source dotnet6-transport --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source dotnet6-internal-transport --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source dotnet7-transport --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source dotnet7-internal-transport --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source richnav --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source vs-impl --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source dotnet-libraries-transport --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source dotnet-tools-transport --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source dotnet-libraries --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source dotnet-tools --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget remove source dotnet-eng --configfile %TestExecutionDirectory%\nuget.config
dotnet nuget list source --configfile %TestExecutionDirectory%\nuget.config
17 changes: 14 additions & 3 deletions build/RunTestsOnHelix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ cp -a $HELIX_CORRELATION_PAYLOAD/t/TestExecutionDirectoryFiles/. $TestExecutionD
# call dotnet new so the first run message doesn't interfere with the first test
dotnet new --debug:ephemeral-hive
# We downloaded a special zip of files to the .nuget folder so add that as a source
dotnet new nugetconfig
dotnet nuget add source $DOTNET_ROOT/.nuget --configfile nuget.config
dotnet nuget list source
dotnet nuget add source $DOTNET_ROOT/.nuget --configfile $TestExecutionDirectory/nuget.config
dotnet nuget list source --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source dotnet6-transport --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source dotnet6-internal-transport --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source dotnet7-transport --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source dotnet7-internal-transport --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source richnav --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source vs-impl --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source dotnet-libraries-transport --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source dotnet-tools-transport --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source dotnet-libraries --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source dotnet-tools --configfile $TestExecutionDirectory/nuget.config
dotnet nuget remove source dotnet-eng --configfile $TestExecutionDirectory/nuget.config
dotnet nuget list source --configfile $TestExecutionDirectory/nuget.config

0 comments on commit b9c1539

Please sign in to comment.