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
Remove XML files for min-size package #18189
base: master
Are you sure you want to change the base?
Conversation
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? |
| @@ -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" | |||
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 -- $StackTrace is a built-in variable, so should use a different name.
| @@ -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 | |||
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.
Also for fixing a PSSA warning -- not used variable.
| @@ -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 | |||
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 block is for building mariner package, not min-size.
|
Perhaps it makes sense to remove resource dll-s too - we have many subfolders with them. |
|
I think it's up to the user of the min-size package to further prune the files based on their scenario. For example, you may want to leave the |
|
@adityapatwardhan The test build https://dev.azure.com/mscodehub/PowerShellCore/_build/results?buildId=299968&view=results finished successfully. I have check the produced |


PR Summary
Remove XML files for min-size package.
The min-size package is supposed to:
However, not sure since when, the min-size package for Windows started to have XML files. This PR removes the XML files for Windows min-size package.
Test run build: https://dev.azure.com/mscodehub/PowerShellCore/_build/results?buildId=299968&view=results
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.