fix(release): stamp current package in audit snapshot
This commit is contained in:
@@ -222,6 +222,16 @@ try {
|
|||||||
Copy-Item -LiteralPath $entry.Value -Destination $destination
|
Copy-Item -LiteralPath $entry.Value -Destination $destination
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$stagedGoNoGoPath = Join-Path $stagingDirectory 'operations\go-no-go.md'
|
||||||
|
$goNoGoText = Get-Content -Raw -Encoding UTF8 -LiteralPath $stagedGoNoGoPath
|
||||||
|
$goNoGoPackageLinePattern = '(?m)^\|[^\r\n]*output/aug1-release/bangdao-aug1-[^\r\n]*$'
|
||||||
|
if (-not [regex]::IsMatch($goNoGoText, $goNoGoPackageLinePattern)) {
|
||||||
|
throw 'Go/No-Go snapshot does not contain the release-package table row.'
|
||||||
|
}
|
||||||
|
$goNoGoPackageLine = "| Release package snapshot | ``output/aug1-release/$packageName``; runtime ``$runtimeShort``; operations ``$operationsShort``. ZIP byte size and SHA-256 are external verification facts because an archive cannot embed its own final hash. |"
|
||||||
|
$goNoGoText = [regex]::Replace($goNoGoText, $goNoGoPackageLinePattern, $goNoGoPackageLine, 1)
|
||||||
|
Write-Utf8 -Path $stagedGoNoGoPath -Content $goNoGoText
|
||||||
|
|
||||||
$readme = @(
|
$readme = @(
|
||||||
'# Bangdao August 1 Android controlled-test release package',
|
'# Bangdao August 1 Android controlled-test release package',
|
||||||
'',
|
'',
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ $requiredFragments = @(
|
|||||||
"'operations/go-no-go.md'",
|
"'operations/go-no-go.md'",
|
||||||
"'operations/business-content-and-five-channel-signoff.md'",
|
"'operations/business-content-and-five-channel-signoff.md'",
|
||||||
'Release package already exists and will not be overwritten',
|
'Release package already exists and will not be overwritten',
|
||||||
|
'Go/No-Go snapshot does not contain the release-package table row',
|
||||||
|
'archive cannot embed its own final hash',
|
||||||
'Release package expected 20 files',
|
'Release package expected 20 files',
|
||||||
'ZIP verification expected 20 entries',
|
'ZIP verification expected 20 entries',
|
||||||
'ZIP entry hash mismatch',
|
'ZIP entry hash mismatch',
|
||||||
|
|||||||
Reference in New Issue
Block a user