Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
release: always set current version as min upgradeable version (#17446)
Browse files Browse the repository at this point in the history
* release: always set current version as min upgradeable version

* ci: bump MINIMUM_UPGRADEABLE_VERSION to 3.23.0
  • Loading branch information
bobheadxi authored and Dave Try committed Jan 20, 2021
1 parent 009acb0 commit 74903f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions dev/release/src/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,8 @@ cc @${config.captainGitHubUsername}
`comby -in-place 'latestReleaseDockerServerImageBuild = newBuild(":[1]")' "latestReleaseDockerServerImageBuild = newBuild(\\"${release.version}\\")" cmd/frontend/internal/app/updatecheck/handler.go`,
`comby -in-place 'latestReleaseDockerComposeOrPureDocker = newBuild(":[1]")' "latestReleaseDockerComposeOrPureDocker = newBuild(\\"${release.version}\\")" cmd/frontend/internal/app/updatecheck/handler.go`,

// Support previous release for now
notPatchRelease
? `comby -in-place 'env["MINIMUM_UPGRADEABLE_VERSION"] = ":[1]"' 'env["MINIMUM_UPGRADEABLE_VERSION"] = "${previous.version}"' enterprise/dev/ci/ci/*.go`
: 'echo "Skipping bumping of upgradable version for patch release"',
// Support current release as the "previous release" going forward
`comby -in-place 'env["MINIMUM_UPGRADEABLE_VERSION"] = ":[1]"' 'env["MINIMUM_UPGRADEABLE_VERSION"] = "${release.version}"' enterprise/dev/ci/ci/*.go`,

// Add a stub to add upgrade guide entries
notPatchRelease
Expand Down
2 changes: 1 addition & 1 deletion enterprise/dev/ci/ci/pipeline-steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func triggerE2EandQA(c Config, commonEnv map[string]string) func(*bk.Pipeline) {
env["VAGRANT_SERVICE_ACCOUNT"] = "buildkite@sourcegraph-ci.iam.gserviceaccount.com"

// Test upgrades from mininum upgradeable Sourcegraph version - updated by release tool
env["MINIMUM_UPGRADEABLE_VERSION"] = "3.22.0"
env["MINIMUM_UPGRADEABLE_VERSION"] = "3.23.0"

env["DOCKER_CLUSTER_IMAGES_TXT"] = clusterDockerImages(images.SourcegraphDockerImages)

Expand Down

0 comments on commit 74903f9

Please sign in to comment.