mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-09 16:00:59 +00:00
Prepare v6.0.4 release
This commit is contained in:
parent
4a597fa425
commit
1d7fa6c4bf
12 changed files with 103 additions and 20 deletions
|
|
@ -253,6 +253,7 @@ func TestCurrentStablePatchReleasePacketTracksInstallMetadata(t *testing.T) {
|
|||
if !ok {
|
||||
t.Skip("current release is not a stable patch release")
|
||||
}
|
||||
releaseBranch := requiredReleaseBranchForVersion(t, version)
|
||||
|
||||
releaseNotesPath := repoFile("docs", "releases", "RELEASE_NOTES_v"+version+".md")
|
||||
changelogPath := repoFile("docs", "releases", "V6_CHANGELOG_v"+version+".md")
|
||||
|
|
@ -265,7 +266,7 @@ func TestCurrentStablePatchReleasePacketTracksInstallMetadata(t *testing.T) {
|
|||
assertFileContainsAll(t, changelogPath,
|
||||
"Version: `v"+version+"`",
|
||||
"Rollback target: `v"+previous+"`",
|
||||
"Promotion path: stable patch hotfix from `pulse/v6-release`",
|
||||
"Promotion path: stable patch hotfix from `"+releaseBranch+"`",
|
||||
)
|
||||
assertFileContainsAll(t, repoFile("docs", "RELEASE_NOTES.md"),
|
||||
"docs/releases/RELEASE_NOTES_v"+version+".md",
|
||||
|
|
|
|||
|
|
@ -23,6 +23,20 @@ func currentReleaseVersion(t *testing.T) string {
|
|||
return version
|
||||
}
|
||||
|
||||
func requiredReleaseBranchForVersion(t *testing.T, version string) string {
|
||||
t.Helper()
|
||||
cmd := exec.Command("python3", repoFile("scripts", "release_control", "control_plane.py"), "--branch-for-version", version)
|
||||
output, err := cmd.Output()
|
||||
if err != nil {
|
||||
t.Fatalf("resolve release branch for %s: %v", version, err)
|
||||
}
|
||||
branch := strings.TrimSpace(string(output))
|
||||
if branch == "" {
|
||||
t.Fatalf("release branch for %s is empty", version)
|
||||
}
|
||||
return branch
|
||||
}
|
||||
|
||||
func isPrereleaseVersion(version string) bool {
|
||||
return strings.Contains(version, "-")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue