Repository navigation
Remove XML files for min-size package #18189
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
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1602,14 +1602,14 @@ function Show-PSPesterError | |
| $description = $testFailure.description | ||
| $name = $testFailure.name | ||
| $message = $testFailure.failure.message | ||
| $StackTrace = $testFailure.failure."stack-trace" | ||
| $stack_trace = $testFailure.failure."stack-trace" | ||
| } | ||
| elseif ($PSCmdlet.ParameterSetName -eq 'object') | ||
| { | ||
| $description = $testFailureObject.Describe + '/' + $testFailureObject.Context | ||
| $name = $testFailureObject.Name | ||
| $message = $testFailureObject.FailureMessage | ||
| $StackTrace = $testFailureObject.StackTrace | ||
| $stack_trace = $testFailureObject.StackTrace | ||
| } | ||
| else | ||
| { | ||
|
|
@@ -1621,7 +1621,7 @@ function Show-PSPesterError | |
| Write-Log -isError -message "message:" | ||
| Write-Log -isError -message $message | ||
| Write-Log -isError -message "stack-trace:" | ||
| Write-Log -isError -message $StackTrace | ||
| Write-Log -isError -message $stack_trace | ||
|
|
||
| } | ||
|
|
||
|
|
@@ -1659,14 +1659,14 @@ function Test-XUnitTestResults | |
| $description = $failure.type | ||
| $name = $failure.method | ||
| $message = $failure.failure.message | ||
| $StackTrace = $failure.failure.'stack-trace' | ||
| $stack_trace = $failure.failure.'stack-trace' | ||
|
|
||
| Write-Log -isError -message ("Description: " + $description) | ||
| Write-Log -isError -message ("Name: " + $name) | ||
| Write-Log -isError -message "message:" | ||
| Write-Log -isError -message $message | ||
| Write-Log -isError -message "stack-trace:" | ||
| Write-Log -isError -message $StackTrace | ||
| Write-Log -isError -message $stack_trace | ||
| Write-Log -isError -message " " | ||
| } | ||
|
|
||
|
|
@@ -2846,7 +2846,6 @@ assembly | |
| # only create an assembly group if we have tests | ||
| if ( $tCases.count -eq 0 -and ! $includeEmpty ) { continue } | ||
| $tGroup = $tCases | Group-Object result | ||
| $total = $tCases.Count | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also for fixing a PSSA warning -- not used variable. |
||
| $asm = [testassembly]::new() | ||
| $asm.environment = $environment | ||
| $asm."run-date" = $rundate | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4587,7 +4587,6 @@ function Invoke-AzDevOpsLinuxPackageBuild { | |
| # Remove symbol files, xml document files. | ||
| Remove-Item "${buildFolder}\*.pdb", "${buildFolder}\*.xml" -Force | ||
|
|
||
|
|
||
| ## Build 'linux-arm' and create 'tar.gz' package for it. | ||
| ## Note that 'linux-arm' can only be built on Ubuntu environment. | ||
| $buildFolder = "${env:SYSTEM_ARTIFACTSDIRECTORY}/${arm32LinuxBuildFolder}" | ||
|
|
@@ -4600,14 +4599,14 @@ function Invoke-AzDevOpsLinuxPackageBuild { | |
| # Remove symbol files. | ||
| Remove-Item "${buildFolder}\*.pdb" -Force | ||
| } elseif ($BuildType -eq 'rpm') { | ||
| ## Build 'min-size' | ||
| ## Build for Mariner | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This block is for building mariner package, not min-size. |
||
| $options = Get-PSOptions | ||
| Write-Verbose -Verbose "---- Min-Size ----" | ||
| Write-Verbose -Verbose "---- Mariner ----" | ||
| Write-Verbose -Verbose "options.Output: $($options.Output)" | ||
| Write-Verbose -Verbose "options.Top $($options.Top)" | ||
| $binDir = Join-Path -Path $options.Top -ChildPath 'bin' | ||
| if (Test-Path -Path $binDir) { | ||
| Write-Verbose -Verbose "Remove $binDir, to get a clean build for min-size package" | ||
| Write-Verbose -Verbose "Remove $binDir, to get a clean build for Mariner package" | ||
| Remove-Item -Path $binDir -Recurse -Force | ||
| } | ||
|
|
||
|
|
||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to fix a warning from PSSA --
$StackTraceis a built-in variable, so should use a different name.