-
-
Notifications
You must be signed in to change notification settings - Fork 340
#189 separate review instructions for log4net #190
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
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ef1f9ef
#189 separate review instructions for log4net
FreeAndNil 428d723
implemented release verification in powershell for windows #190
FreeAndNil 75c9677
implemented release verification in powershell for windows #190
FreeAndNil ce9eca1
implemented release verification in powershell for windows #190
FreeAndNil 97a9389
implemented release verification in powershell for windows #190
FreeAndNil 091821a
added missing license header #190
FreeAndNil ec8bd4e
#189 separate Vote result from announcement
FreeAndNil f140eb3
#189 Link to Github rc no longer needed
FreeAndNil 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -27,9 +27,6 @@ release version 2.0.123: | |
- currently, this _must_ happen on a windows machine because of older | ||
.net framework requirements which cannot be met on a Linux machine | ||
(or at least, I haven't figured out how - in particular CF) | ||
- TODO: the following are still manual and need to be built into the `release` script: | ||
- log4net.build: update package.version property | ||
- pom.xml: update version | ||
4. Sign release artifacts (zips & nupkg) under `build/artifacts` | ||
- eg `gpg --armor --output log4net-2.0.123.nupkg.asc --detach-sig log4net-2.0.123.nupkg` | ||
- there is an accompanying `sign-log4net-libraries.sh/ps1` under scripts which you could invoke if you cd | ||
|
@@ -58,12 +55,12 @@ release version 2.0.123: | |
- `svn co https://dist.apache.org/repos/dist/dev/logging -N apache-dist-logging-dev` | ||
- `cd apache-dist-logging-dev` | ||
- `svn up log4net` | ||
- copy in source & binary artifacts to respective locations | ||
- `svn delete *` | ||
- `mkdir 2.0.123` | ||
- copy all artifacts to the new folder | ||
- `svn add *` | ||
- `svn commit` | ||
- check https://dist.apache.org/repos/dist/dev/logging/log4net/binaries/ | ||
and https://dist.apache.org/repos/dist/dev/logging/log4net/source/ | ||
- `svn commit -m 'log4net 2.0.123'` | ||
- check https://dist.apache.org/repos/dist/dev/logging/log4net/2.0.123/ | ||
13. raise a vote on the log4net mailing list ([email protected]) - see MailTemplate.txt | ||
14. wait | ||
15. when the vote has 3 or more +1's, it's time to go live! | ||
|
@@ -82,4 +79,5 @@ release version 2.0.123: | |
- `git pull --rebase` | ||
- `git merge asf-staging` | ||
18. rename the release at github, eg to `rel/2.0.123` | ||
- double-check that the `rel` tag is created | ||
- double-check that the `rel` tag is created | ||
19. apply the next version by calling `./scripts/update-version.ps1 2.0.123 2.0.124` |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
Param ( | ||
[Parameter()] | ||
[System.IO.DirectoryInfo]$Directory | ||
) | ||
|
||
Set-StrictMode -Version Latest | ||
$ErrorActionPreference = 'Stop' | ||
if (!$Directory) | ||
{ | ||
$Directory = $PSScriptRoot | ||
} | ||
|
||
function Verify-Hash | ||
{ | ||
param | ||
( | ||
[Parameter(Mandatory=$true, HelpMessage='The file containing the hash.')] | ||
[System.IO.FileInfo]$File | ||
) | ||
$Line = @(Get-Content $File.FullName)[0] | ||
$Fields = $Line -split '\s+' | ||
$Hash = $Fields[0].Trim().ToUpper() | ||
$Filename = $Fields[1].Trim() | ||
if ($Filename.StartsWith("*")) | ||
{ | ||
$Filename = $Filename.Substring(1).Trim() | ||
} | ||
|
||
$ComputedHash = (Get-FileHash -Algorithm 'SHA512' "$($File.DirectoryName)/$Filename").Hash.ToUpper() | ||
|
||
if($Hash -eq $ComputedHash) | ||
{ | ||
"$($Filename): Passed" | ||
} | ||
else | ||
{ | ||
Write-Error "$($Filename): Not Passed" -ErrorAction Continue | ||
Write-Error "Read from file: $Hash" -ErrorAction Continue | ||
Write-Error "Computed: $ComputedHash" -ErrorAction Continue | ||
} | ||
} | ||
|
||
foreach ($File in Get-ChildItem $Directory *.sha512) | ||
{ | ||
Verify-Hash $File | ||
} | ||
|
||
Invoke-WebRequest https://downloads.apache.org/logging/KEYS -OutFile $Directory/KEYS | ||
gpg --import -q $Directory/KEYS | ||
|
||
foreach ($File in Get-ChildItem $Directory *.asc) | ||
{ | ||
gpg --verify $File | ||
} | ||
|
||
Expand-Archive $Directory/*source*.zip -DestinationPath $Directory/src | ||
$VersionDirectory = "$Directory/src/$(@(Get-ChildItem $Directory/src)[0])" | ||
$VersionDirectory | ||
pushd $VersionDirectory |
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
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
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
FreeAndNil marked this conversation as resolved.
Show resolved
Hide resolved
|
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 |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to you under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<document> | ||
<properties> | ||
<title>Apache log4net release verification</title> | ||
</properties> | ||
|
||
<body> | ||
<section id ="release.verification" name="Release verification"> | ||
<p> | ||
Releases of log4net can be verified with following steps: | ||
</p> | ||
<ul> | ||
<li> | ||
Windows (PowerShell) | ||
<ol> | ||
<li> | ||
Prerequisites | ||
<pre class="code">winget install -e --id GnuPG.Gpg4win | ||
winget install -e --id TortoiseSVN.TortoiseSVN</pre> | ||
</li> | ||
<li> | ||
Check out the release distribution | ||
<pre class="code">svn co https://dist.apache.org/repos/dist/dev/logging/log4net/source/{releaseVersion} log4net-{releaseVersion} | ||
pushd log4net-{releaseVersion}</pre> | ||
</li> | ||
<li> | ||
Verify and extract | ||
<pre class="code">& ./verify-release.ps1</pre> | ||
</li> | ||
<li> | ||
<p>Verify the build</p> | ||
<pre class="code">winget install -e --id Mono.Mono | ||
winget install Microsoft.DotNet.SDK.8 | ||
dotnet test ./src/log4net.sln</pre> | ||
</li> | ||
</ol> | ||
</li> | ||
<li> | ||
Linux | ||
<ol> | ||
<li> | ||
<p>Check out the release distribution</p> | ||
<pre class="code">svn co https://dist.apache.org/repos/dist/dev/logging/log4net/{releaseVersion} log4net-{releaseVersion} && cd $_</pre> | ||
</li> | ||
<li> | ||
<p>Verify checksums</p> | ||
<pre class="code">sha512sum --check *.sha512</pre> | ||
</li> | ||
<li> | ||
<p>Import the release manager GPG keys, unless you haven’t earlier done so</p> | ||
<pre class="code">wget -O - https://downloads.apache.org/logging/KEYS | gpg --import</pre> | ||
</li> | ||
<li> | ||
<p>Verify signatures</p> | ||
<pre class="code">for sigFile in *.asc; do gpg --verify $sigFile; done</pre> | ||
</li> | ||
<li> | ||
<p>Extract sources</p> | ||
<pre class="code">umask 0022 | ||
unzip -q *-src.zip -d src | ||
cd src</pre> | ||
</li> | ||
<li> | ||
<p>Verify the build</p> | ||
<ul> | ||
<li>install <a href="https://docs.docker.com/engine/install/">docker</a> (if you haven't already) </li> | ||
<li> | ||
<pre class="code">docker build -t log4net-builder . | ||
docker run -it log4net-builder | ||
# this will | ||
# - install all dependencies in the container | ||
# - build src/log4net.sln | ||
# inside the container run | ||
dotnet test /logging-log4net/src/log4net.sln</pre> | ||
</li> | ||
</ul> | ||
</li> | ||
</ol> | ||
</li> | ||
</ul> | ||
</section> | ||
</body> | ||
</document> |
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.
Uh oh!
There was an error while loading. Please reload this page.