Skip to content
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

Merge dev17.7.x to main #9173

Merged
merged 5 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .sscignore

This file was deleted.

6 changes: 0 additions & 6 deletions eng/pipelines/official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ variables:
# Opt out of automatically injecting Codesign Validation into the pipeline. We run Codesign Validation as part of the Compliance pipeline.
# See: https://aka.ms/gdn-injection
runCodesignValidationInjection: false
# Suspend enforcement of NuGet Single Feed Policy. See:
# - https://aka.ms/nugetmultifeed
# - https://docs.opensource.microsoft.com/tools/nuget_security_analysis/nuget_security_analysis/
# - https://docs.opensource.microsoft.com/tools/cg/how-to/nuget-multifeed-configuration/
# - https://onebranch.visualstudio.com/OneBranch/_wiki/wikis/OneBranch.wiki/5205/TSG-Build-Broken-Due-to-Using-Multiple-Feeds?anchor=setting-nugetsecurityanalysiswarninglevel-in-cdp
NugetSecurityAnalysisWarningLevel: none
# Allows CodeQL to run on our Build job.
# https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/codeql/configuring-codeql3000-ado-pipelines
Codeql.Enabled: true
Expand Down
6 changes: 0 additions & 6 deletions eng/pipelines/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ variables:
# Opt out of automatically injecting Codesign Validation into the pipeline.
# See: https://aka.ms/gdn-injection
runCodesignValidationInjection: false
# Suspend enforcement of NuGet Single Feed Policy. See:
# - https://aka.ms/nugetmultifeed
# - https://docs.opensource.microsoft.com/tools/nuget_security_analysis/nuget_security_analysis/
# - https://docs.opensource.microsoft.com/tools/cg/how-to/nuget-multifeed-configuration/
# - https://onebranch.visualstudio.com/OneBranch/_wiki/wikis/OneBranch.wiki/5205/TSG-Build-Broken-Due-to-Using-Multiple-Feeds?anchor=setting-nugetsecurityanalysiswarninglevel-in-cdp
NugetSecurityAnalysisWarningLevel: none

###################################################################################################################################################################
# STAGES
Expand Down
38 changes: 1 addition & 37 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -1,44 +1,8 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->

<!-- Reference documentation: https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file -->
<!-- TODO: Migrate to Central Feed Services (CFS) when public feeds with upstream sources are available. -->
<!-- For details: https://eng.ms/docs/cloud-ai-platform/developer-services/one-engineering-system-1es/1es-docs/secure-supply-chain/project-artemis/central-feed-services-cfs -->
<configuration>
<packageSources>
<clear />
<!-- CPS components including: Microsoft.VisualStudio.ProjectSystem -->
<add key="vs-impl" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-impl/nuget/v3/index.json" />
<add key="vs-impl-archived" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-impl-archived/nuget/v3/index.json" />
<!-- Microsoft.VisualStudio components -->
<add key="vssdk" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vssdk/nuget/v3/index.json" />
<add key="vssdk-archived" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vssdk-archived/nuget/v3/index.json" />
<!--
Various packages including:
Microsoft.DiaSymReader.Pdb2Pdb
Microsoft.CodeAnalysis
Microsoft.CodeAnalysis.Features
NuGet.VisualStudio
-->
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<!--
Various packages including:
xunit
xunit.assert
xunit.extensibility.core
xunit.extensibility.execution
XliffTasks
Microsoft.VisualStudioEng.MicroBuild.Plugins.SwixBuild
-->
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
<!--
Public components including:
Nerdbank.GitVersioning
Codecov
-->
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<add key="dotnet-project-system-public-packages" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json" />
</packageSources>
<!-- Clear the machine-defined disabled package sources, which may include one of our package sources defined above. -->
<disabledPackageSources>
<clear />
</disabledPackageSources>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -722,11 +722,9 @@ private bool CheckBuiltFromInputFiles(Log log, in TimestampCache timestampCache,
return true;
}

private bool CheckCopyToOutputDirectoryItems(Log log, UpToDateCheckImplicitConfiguredInput state, IEnumerable<(string Path, ImmutableArray<CopyItem> CopyItems)> copyItemsByProject, ConfiguredFileSystemOperationAggregator fileSystemAggregator, bool? isBuildAccelerationEnabled, CancellationToken token)
private bool CheckCopyToOutputDirectoryItems(Log log, UpToDateCheckImplicitConfiguredInput state, IEnumerable<(string Path, ImmutableArray<CopyItem> CopyItems)> copyItemsByProject, ConfiguredFileSystemOperationAggregator fileSystemAggregator, bool? isBuildAccelerationEnabled, SolutionBuildContext solutionBuildContext, CancellationToken token)
{
ITimestampCache? timestampCache = _solutionBuildContextProvider.CurrentSolutionBuildContext?.CopyItemTimestamps;

Assumes.NotNull(timestampCache);
ITimestampCache timestampCache = solutionBuildContext.CopyItemTimestamps;

string outputFullPath = Path.Combine(state.MSBuildProjectDirectory, state.OutputRelativeOrFullPath);

Expand Down Expand Up @@ -973,10 +971,12 @@ private async Task<bool> IsUpToDateInternalAsync(
//
// In either case, we construct an event here lazily so that we can correctly test for the
// existence of copy items in CheckCopyToOutputDirectoryItems.
if (_solutionBuildContextProvider.CurrentSolutionBuildContext is null)
SolutionBuildContext? solutionBuildContext = _solutionBuildContextProvider.CurrentSolutionBuildContext;
if (solutionBuildContext is null)
{
_solutionBuildEventListener.NotifySolutionBuildStarting();
Assumes.NotNull(_solutionBuildContextProvider.CurrentSolutionBuildContext);
solutionBuildContext = _solutionBuildContextProvider.CurrentSolutionBuildContext;
Assumes.NotNull(solutionBuildContext);
}

globalProperties.TryGetValue(FastUpToDateCheckIgnoresKindsGlobalPropertyName, out string? ignoreKindsString);
Expand Down Expand Up @@ -1083,7 +1083,7 @@ private async Task<bool> IsUpToDateInternalAsync(
!CheckInputsAndOutputs(logger, lastSuccessfulBuildStartTimeUtc, timestampCache, implicitState, ignoreKinds, token) ||
!CheckBuiltFromInputFiles(logger, timestampCache, implicitState, token) ||
!CheckMarkers(logger, timestampCache, implicitState, isBuildAccelerationEnabled, fileSystemOperations) ||
!CheckCopyToOutputDirectoryItems(logger, implicitState, copyInfo.ItemsByProject, configuredFileSystemOperations, isBuildAccelerationEnabled, token))
!CheckCopyToOutputDirectoryItems(logger, implicitState, copyInfo.ItemsByProject, configuredFileSystemOperations, isBuildAccelerationEnabled, solutionBuildContext, token))
{
return (false, checkedConfigurations);
}
Expand Down