Skip to content

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Aug 5, 2017

For certain testing, we need builds with symbols. Adding the ability to package builds with symbols for this purpose

I enabled for all packaging types except AppImage.

I forced the option to add symbols into the package name, except for Release/Linux (the Linux Release configuration). This will allow this special package type to be easily identified.

Copy link
Member

@daxian-dbw daxian-dbw Aug 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe .NET CLI generates portable pdb by default on Linux/OSX. See https://github.com/OmniSharp/omnisharp-vscode/wiki/Portable-PDBs#how-to-generate-portable-pdbs.
So the LinuxDebug may not be necessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, even for Windows the PDBs that are generated are portable. Hence, for code coverage we explicitly make the DebugType as full, which is Windows style full PDBs.

Copy link
Member Author

@TravisEz13 TravisEz13 Aug 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS > dir  ./powershell/src/powershell-unix/bin/Linux/netcoreapp2.0/osx.10.12-x64/publish/*.pdb -Recurse          


    Directory: /Users/travisplunk/git/powershell/src/powershell-unix/bin/Linux/netcoreapp2.0/osx.10.12-x64/publish


Mode                LastWriteTime         Length Name                                                                                                                 
----                -------------         ------ ----                                                                                                                 
------           8/7/17   9:57 AM            236 Microsoft.PowerShell.SDK.pdb                                                                                         
------           8/7/17   9:57 AM            488 powershell.pdb                                                                                                       


PS > dir  ./src/powershell-unix/bin/LinuxDebug/netcoreapp2.0/osx.10.12-x64/publish/*.pdb -Recurse     


    Directory: /Users/travisplunk/git/powershell/src/powershell-unix/bin/LinuxDebug/netcoreapp2.0/osx.10.12-x64/publish


Mode                LastWriteTime         Length Name                                                                                                                 
----                -------------         ------ ----                                                                                                                 
------           8/5/17   9:10 AM         184768 Microsoft.PowerShell.Commands.Management.pdb                                                                         
------           8/5/17   9:10 AM         242416 Microsoft.PowerShell.Commands.Utility.pdb                                                                            
------           8/5/17   9:10 AM          78996 Microsoft.PowerShell.ConsoleHost.pdb                                                                                 
------           8/5/17   9:10 AM          29848 Microsoft.PowerShell.CoreCLR.AssemblyLoadContext.pdb                                                                 
------           8/5/17   9:10 AM          39696 Microsoft.PowerShell.CoreCLR.Eventing.pdb                                                                            
------           8/5/17   9:10 AM          87268 Microsoft.PowerShell.PSReadLine.pdb                                                                                  
------           8/5/17   9:10 AM            236 Microsoft.PowerShell.SDK.pdb                                                                                         
------           8/5/17   9:10 AM          42868 Microsoft.PowerShell.Security.pdb                                                                                    
------           8/5/17  11:42 AM            488 powershell.pdb                                                                                                       
------           8/5/17   9:10 AM        2916020 System.Management.Automation.pdb          

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they are generated, they are not included in the publish directory.

Copy link
Member

@daxian-dbw daxian-dbw Aug 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are generated. However, when specifying -Crossgen, those .pdb files will be removed during Start-Crossgen.
For the same reason, you shouldn't specify -Crossgen when packing debug packages.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to double check -- we don't change the existing names of the release packages, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but, I'll update this code, as when I wrote it I assumed Release was the only Release configuration

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, even for Windows the PDBs that are generated are portable. Hence, for code coverage we explicitly make the DebugType as full, which is Windows style full PDBs.

@TravisEz13
Copy link
Member Author

I changed this to only allow packaging with symbols for now by removing crossgen from the build. I've updated the PR Description.

@daxian-dbw daxian-dbw dismissed adityapatwardhan’s stale review August 8, 2017 22:31

new commits were pushed.

@daxian-dbw
Copy link
Member

@adityapatwardhan The comments are addressed. Can you please take another look?

@TravisEz13
Copy link
Member Author

@adityapatwardhan any update?

Copy link
Member

@adityapatwardhan adityapatwardhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daxian-dbw daxian-dbw merged commit 8bf386e into PowerShell:master Aug 9, 2017
@TravisEz13 TravisEz13 deleted the DebugPackages branch August 9, 2017 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Maintainers-Build specific to affecting the build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants