Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Create Start-PSRelease helper function#2753

Merged
mirichmo merged 1 commit into
PowerShell:masterPowerShell/PowerShell:masterfrom
vors:start-psreleasevors/PowerShell:start-psreleaseCopy head branch name to clipboard
Dec 12, 2016
Merged

Create Start-PSRelease helper function#2753
mirichmo merged 1 commit into
PowerShell:masterPowerShell/PowerShell:masterfrom
vors:start-psreleasevors/PowerShell:start-psreleaseCopy head branch name to clipboard

Conversation

@vors

@vors vors commented Nov 21, 2016

Copy link
Copy Markdown
Collaborator

Addresses first two items in #2712
The intention is to make release process easier and put safety checks everywhere to reduce the probability of creating a bad package.

The command is wrapper of Start-PSPackage that follows https://github.com/PowerShell/PowerShell/blob/master/docs/maintainers/releasing.md

  • releasing.md updated
  • verified on Windows
  • verified on macOS
  • verified on Linux

Usage

Start-PSRelease -CommitSHA1 <commit> -Name v6.0.0-alpha.13

Comment thread build.psm1
try {
# check that we are in the right location
if ($IsWindows) {
if ($PSScriptRoot -ne "C:\PowerShell") {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How necessary is this? We can create packages out of arbitrary directories can't we?

If it is required, what about this instead?
(Join-Path $env:systemdrive "PowerShell")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is to make pdb paths uniformed. See https://github.com/PowerShell/PowerShell/blob/172b2234fc5a82df0350cddeb6f91837b7999225/docs/maintainers/releasing.md#preparing
For the same reason, we don't want any divergancy from C:\PowerShell

Comment thread build.psm1
try {
# make sure that we have up-to-date version of build tools
Start-PSBootstrap -Package
# run the clean build that will use temporarely tag

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

temporary

Comment thread build.psm1
if ($untrackedFiles) {
throw "There are untracked files (run 'git clean -fdx'): $untrackedFiles"
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Check that the current branch != master?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It doesn't matter as far as the commit is right, which is checked above in

if ((git rev-parse HEAD) -ne $CommitSHA1) {

Comment thread build.psm1
# run the clean build that will use temporarely tag
Start-PSBuild -Clean -Crossgen -PSModuleRestore
# make the package
Start-PSPackage

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Start-PSBuild + Start-PSPackage must be paired when producing multiple packages from the same repo. For example, we now need to run the pair 4 times with different argument sets to produce the Windows packages.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point. I don't have a windows machine anymore to test the build, but it should be a loop for windows here.
Then for Linux, we should probably replace it by a docker build call.

@mirichmo

mirichmo commented Dec 9, 2016

Copy link
Copy Markdown
Member

@vors I kind of want this merged, even in an incomplete state so that we can continue adding to it. I scripted Windows image generation during the last release and I could add that as my contribution to this function.

@vors

vors commented Dec 12, 2016

Copy link
Copy Markdown
Collaborator Author

@mirichmo great, want to merge it then?

@mirichmo mirichmo merged commit cb378be into PowerShell:master Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.