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

Revert "Enabling ConvertPdbsToWindowsPdbs (#8007)" #8034

Merged
merged 1 commit into from
Oct 13, 2021
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 eng/publishing/v3/publish-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ jobs:
/p:DotNetBuildsPublicChecksumsUriBase64='$(dotnetbuilds-public-container-checksum-uri-base64)'
/p:DotNetBuildsInternalUriBase64='$(dotnetbuilds-internal-container-uri-base64)'
/p:DotNetBuildsInternalChecksumsUriBase64='$(dotnetbuilds-internal-container-checksum-uri-base64)'
/p:ConvertPortablePdbsToWindowsPdbs='true'
- template: /eng/common/templates/steps/publish-logs.yml
parameters:
StageLabel: '${{ parameters.stageName }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
<InternalChecksumsFeedKey>$(InternalChecksumsAzureAccountKey)</InternalChecksumsFeedKey>
<AllowFeedOverrides Condition="'$(AllowFeedOverrides)' == ''">false</AllowFeedOverrides>
<UseStreamingPublishing Condition="'$(UseStreamingPublishing)' == ''">false</UseStreamingPublishing>
<ConvertPortablePdbsToWindowsPdbs Condition="'$(ConvertPortablePdbsToWindowsPdbs)' == ''">false</ConvertPortablePdbsToWindowsPdbs>
<ArtifactsBasePath Condition="'$(ArtifactsBasePath)' == ''">$(BlobBasePath)</ArtifactsBasePath>
<NonStreamingPublishingMaxClients Condition="'$(NonStreamingPublishingMaxClients)' == ''">12</NonStreamingPublishingMaxClients>
<StreamingPublishingMaxClients Condition="'$(UseStreamingPublishing)' == 'true' and '$(StreamingPublishingMaxClients)' == ''">16</StreamingPublishingMaxClients>
Expand Down Expand Up @@ -173,7 +172,6 @@
FeedKeys="@(FeedKey)"
FeedSasUris="@(FeedSasUri)"
FeedOverrides="@(FeedOverride)"
ConvertPortablePdbsToWindowsPdbs="$(ConvertPortablePdbsToWindowsPdbs)"
/>
</Target>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public async Task TemporarySymbolDirectoryDoesNotExists()
};
var path = TestInputs.GetFullPath("Symbol");
var buildAsset = new Dictionary<string, HashSet<Asset>>();
await task.HandleSymbolPublishingAsync(path, MsdlToken, SymWebToken, "", false, false, buildAsset, null, path);
await task.HandleSymbolPublishingAsync(path, MsdlToken, SymWebToken, "", false, buildAsset, null, path);
Assert.True(task.Log.HasLoggedErrors);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ public class PublishArtifactsInManifest : MSBuildTaskBase
/// </summary>
public bool PublishSpecialClrFiles { get; set; }

public bool ConvertPortablePdbsToWindowsPdbs { get; set; }

/// <summary>
/// If true, safety checks only print messages and do not error
/// - Internal asset to public feed
Expand Down Expand Up @@ -344,7 +342,6 @@ internal PublishArtifactsInManifestBase ConstructPublishingV3Task(BuildModel bui
MsdlToken = this.MsdlToken,
SymbolPublishingExclusionsFile = this.SymbolPublishingExclusionsFile,
PublishSpecialClrFiles = this.PublishSpecialClrFiles,
ConvertPortablePdbsToWindowsPdbs = this.ConvertPortablePdbsToWindowsPdbs,
BuildQuality = this.BuildQuality,
ArtifactsBasePath = this.ArtifactsBasePath,
AzdoApiToken = this.AzdoApiToken,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,20 +396,18 @@ public void CheckForStableAssetsInNonIsolatedFeeds()
/// <param name="symbolPublishingExclusionsFile">Right now we do not add any files to this, so this is going to be null</param>
/// <param name="publishSpecialClrFiles">If true, the special coreclr module indexed files like DBI, DAC and SOS are published</param>
/// <param name="clientThrottle">To avoid starting too many processes</param>
/// <param name="convertPortablePdbsToWindowsPdbs">If true, convert protable pdbs to windows pdbs</param>
/// <returns>Task</returns>
public async Task PublishSymbolsUsingStreamingAsync(
string pdbArtifactsBasePath,
string msdlToken,
string symWebToken,
string symbolPublishingExclusionsFile,
bool publishSpecialClrFiles,
bool convertPortablePdbsToWindowsPdbs,
Dictionary<string, HashSet<Asset>> buildAssets,
SemaphoreSlim clientThrottle)
{
Log.LogMessage(MessageImportance.High,
$"Performing symbol publishing... \nExpirationInDays : {ExpirationInDays} \nConvertPortablePdbsToWindowsPdb : {convertPortablePdbsToWindowsPdbs} \ndryRun: false ");
$"Performing symbol publishing... \nExpirationInDays : {ExpirationInDays} \nConvertPortablePdbsToWindowsPdb : false \ndryRun: false ");
var symbolCategory = TargetFeedContentType.Symbols;

using HttpClient httpClient = CreateAzdoClient(AzureDevOpsOrg, false, AzureProject);
Expand Down Expand Up @@ -504,7 +502,7 @@ await PublishSymbolsHelper.PublishAsync(
null,
excludeFiles,
ExpirationInDays,
convertPortablePdbsToWindowsPdbs,
false,
publishSpecialClrFiles,
null,
false,
Expand Down Expand Up @@ -602,14 +600,12 @@ await PublishSymbolsHelper.PublishAsync(
/// <param name="temporarySymbolsLocation">Path to Symbol.nupkgs</param>
/// <param name="clientThrottle">To avoid starting too many processes</param>
/// <param name="publishSpecialClrFiles">If true, the special coreclr module indexed files like DBI, DAC and SOS are published</param>
/// <param name="convertPortablePdbsToWindowsPdbs">If true, convert protable pdbs to windows pdbs</param>
public async Task HandleSymbolPublishingAsync (
string pdbArtifactsBasePath,
string msdlToken,
string symWebToken,
string symbolPublishingExclusionsFile,
bool publishSpecialClrFiles,
bool convertPortablePdbsToWindowsPdbs,
Dictionary<string, HashSet<Asset>> buildAssets,
SemaphoreSlim clientThrottle = null,
string temporarySymbolsLocation = null)
Expand All @@ -622,7 +618,6 @@ await PublishSymbolsUsingStreamingAsync(
symWebToken,
symbolPublishingExclusionsFile,
publishSpecialClrFiles,
convertPortablePdbsToWindowsPdbs,
buildAssets,
clientThrottle);
}
Expand All @@ -634,7 +629,6 @@ await PublishSymbolsfromBlobArtifactsAsync(
symWebToken,
symbolPublishingExclusionsFile,
publishSpecialClrFiles,
convertPortablePdbsToWindowsPdbs,
temporarySymbolsLocation);
}
}
Expand All @@ -648,14 +642,12 @@ await PublishSymbolsfromBlobArtifactsAsync(
/// <param name="symbolPublishingExclusionsFile">Right now we do not add any files to this, so this is going to be null</param>
/// <param name="temporarySymbolsLocation">Path to Symbol.nupkgs</param>
/// <param name="publishSpecialClrFiles">If true, the special coreclr module indexed files like DBI, DAC and SOS are published</param>
/// <param name="convertPortablePdbsToWindowsPdbs">If true, convert protable pdbs to windows pdbs</param>
public async Task PublishSymbolsfromBlobArtifactsAsync(
string pdbArtifactsBasePath,
string msdlToken,
string symWebToken,
string symbolPublishingExclusionsFile,
bool publishSpecialClrFiles,
bool convertPortablePdbsToWindowsPdbs,
string temporarySymbolsLocation = null)
{
if (Directory.Exists(temporarySymbolsLocation))
Expand Down Expand Up @@ -690,7 +682,7 @@ public async Task PublishSymbolsfromBlobArtifactsAsync(
var serverPath = server.Key;
var token = server.Value;;
Log.LogMessage(MessageImportance.High,
$"Performing symbol publishing...\nSymbolServerPath : ${serverPath} \nExpirationInDays : {ExpirationInDays} \nConvertPortablePdbsToWindowsPdb : {convertPortablePdbsToWindowsPdbs} \ndryRun: false \nTotal number of symbol files : {fileEntries.Length} ");
$"Performing symbol publishing...\nSymbolServerPath : ${serverPath} \nExpirationInDays : {ExpirationInDays} \nConvertPortablePdbsToWindowsPdb : false \ndryRun: false \nTotal number of symbol files : {fileEntries.Length} ");

try
{
Expand All @@ -702,7 +694,7 @@ await PublishSymbolsHelper.PublishAsync(
filesToSymbolServer,
null,
ExpirationInDays,
convertPortablePdbsToWindowsPdbs,
false,
publishSpecialClrFiles,
null,
false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public class PublishArtifactsInManifestV3 : PublishArtifactsInManifestBase

public bool AllowFeedOverrides { get; set; }

public bool ConvertPortablePdbsToWindowsPdbs { get; set;}

public ITaskItem[] FeedKeys { get; set; }
public ITaskItem[] FeedSasUris { get; set; }

Expand Down Expand Up @@ -195,7 +193,6 @@ await Task.WhenAll(new Task[]
SymWebToken,
SymbolPublishingExclusionsFile,
PublishSpecialClrFiles,
ConvertPortablePdbsToWindowsPdbs,
buildAssets,
clientThrottle,
temporarySymbolsLocation)
Expand Down