Skip to content

Commit

Permalink
release-branch: v5.2.0 bake constants and static content (#57264)
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Oct 2, 2023
1 parent c80b023 commit 785a2ca
Show file tree
Hide file tree
Showing 7 changed files with 293 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import styles from './BatchChangesListIntro.module.scss'
* Ie. After 5.0 is cut, this should be bumped to 5.1, and so on. This ensures we
* always render the right changelog.
*/
const CURRENT_VERSION = '5.1'
const CURRENT_VERSION = '5.2'
/**
* SHOW_CHANGELOG has to be set to true when a changelog entry is added for a release.
* After every release, this will be set back to `false`. Chromatic will also verify
Expand Down
3 changes: 3 additions & 0 deletions cmd/migrator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ genrule(
"schema-descriptions/v5.1.8-internal_database_schema.codeinsights.json",
"schema-descriptions/v5.1.8-internal_database_schema.codeintel.json",
"schema-descriptions/v5.1.8-internal_database_schema.json",
"schema-descriptions/v5.1.9-internal_database_schema.codeinsights.json",
"schema-descriptions/v5.1.9-internal_database_schema.codeintel.json",
"schema-descriptions/v5.1.9-internal_database_schema.json",
],
cmd = "$(location generate.sh) $(@D)",
tags = ["requires-network"],
Expand Down
2 changes: 1 addition & 1 deletion cmd/migrator/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ git_versions=(
v4.4.0 v4.4.1 v4.4.2
v4.5.0 v4.5.1
v5.0.0 v5.0.1 v5.0.2 v5.0.3 v5.0.4
v5.1.0 v5.1.1 v5.1.2 v5.1.3 v5.1.4 v5.1.5 v5.1.6 v5.1.7 v5.1.8)
v5.1.0 v5.1.1 v5.1.2 v5.1.3 v5.1.4 v5.1.5 v5.1.6 v5.1.7 v5.1.8 v5.1.9)

for version in "${git_versions[@]}"; do
download_github "${version}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"github.com/sourcegraph/sourcegraph/internal/oobmigration"
)

// NOTE: This should be kept up-to-date with cmd/migrator/build.sh so that we "bake in"
// NOTE: This should be kept up-to-date with cmd/migrator/generate.sh so that we "bake in"
// fallback schemas everything we support migrating to. The release tool automates this upgrade, so don't touch this :)
// This should be the last minor version since patch releases only happen in the release branch.
const maxVersionString = "5.1.0"
const maxVersionString = "5.2.0"

// MaxVersion is the highest known released version at the time the migrator was built.
var MaxVersion = func() oobmigration.Version {
Expand Down
284 changes: 284 additions & 0 deletions internal/database/migration/shared/data/stitched-migration-graph.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions internal/database/migration/stitch/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var ignoreMap = map[string]struct{}{
"migrations_test.go": {},
"README.md": {},
"squashed.sql": {},
"BUILD.bazel": {},
}

// readRawMigrations reads migrations from a locally available git revision for the given schema.
Expand Down
2 changes: 1 addition & 1 deletion internal/src-cli/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ package srccli
// as the suggested download with this instance.
//
// At the time of a Sourcegraph release, this is always the latest src-cli version.
const MinimumVersion = "5.1.2"
const MinimumVersion = "5.2.0"

0 comments on commit 785a2ca

Please sign in to comment.