forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
77250: release: fetch release blockers r=rail a=celiala This commit implements the Week -1 task of fetching the list of open release blockers for the specified releaseSeries, and summarizing and sorting the blocker list by project name (if any). #### Implementation Notes This PR associates a release blocker with the most recently-added project, so that we report the correct number of open blockers. If you're using roashdash to verify open blocker data, note that https://roachdash.crdb.dev/ groups things by project, which means that if an issue belongs to multiple projects, that issue will appear under both projects. (I.e. the old release process was sometimes double-counting and over reporting the number of open blockers, if an issue was assigned to multiple project). ### Manual Testing Confirmed blockers for older production release branch (21.2) and upcoming 22.1 release (which as on March 9 is still `master`, since the 22.1 branch hasn't been cut yet). ``` # Test 1: generates alpha email # --next-version v22.1.0-alpha.3 # --release-series 22.1 # SMTP_PASSWORD=$MY_SMTP_PWD SMTP_USER=$MY_SMTP_USER GITHUB_TOKEN=$MY_GITHUB_TOKEN \ $(bazel info bazel-bin)/pkg/cmd/release/release_/release post-blockers \ --release-series 22.1 \ --smtp-user $MY_SMTP_USER --smtp-host smtp.gmail.com --smtp-port 587 \ --to $MY_TO_EMAIL \ --template-dir ./pkg/cmd/release/templates \ --prep-date 2022-04-01 --publish-date 2022-05-01 \ --next-version v22.1.0-alpha.3 ``` <img width="500" src="https://user-images.githubusercontent.com/3051672/157559211-1a2985bd-a8fc-4f5c-8ae9-575101351412.png"> ``` # Test 2: generates email for stable release, no need to set `next-version` parameter # --release-series 21.1 SMTP_PASSWORD=$MY_SMTP_PWD SMTP_USER=$MY_SMTP_USER GITHUB_TOKEN=$MY_GITHUB_TOKEN \ $(bazel info bazel-bin)/pkg/cmd/release/release_/release post-blockers \ --release-series 21.1 \ --smtp-user $MY_SMTP_USER --smtp-host smtp.gmail.com --smtp-port 587 \ --to $MY_TO_EMAIL \ --template-dir ./pkg/cmd/release/templates \ --prep-date 2022-04-01 --publish-date 2022-05-01 ``` <img width="500" src="https://user-images.githubusercontent.com/3051672/157559564-e6b7af11-3b30-4064-a5ff-17443e4ce341.png"> Release note: None Release justification: non-production code change. Co-authored-by: Celia La <[email protected]>
- Loading branch information
Showing
9 changed files
with
684 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -810,6 +810,16 @@ def go_deps(): | |
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bonitoo-io/go-sql-bigquery/com_github_bonitoo_io_go_sql_bigquery-v0.3.4-1.4.0.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_bradleyfalzon_ghinstallation_v2", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/bradleyfalzon/ghinstallation/v2", | ||
sha256 = "cb473a9105ac77549a8e04a989cc95e72dc615b3993b9ee16d75da8c6ef23bd4", | ||
strip_prefix = "github.com/bradleyfalzon/ghinstallation/[email protected]", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/bradleyfalzon/ghinstallation/v2/com_github_bradleyfalzon_ghinstallation_v2-v2.0.3.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_broady_gogeohash", | ||
build_file_proto_mode = "disable_global", | ||
|
@@ -3432,14 +3442,34 @@ def go_deps(): | |
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-github/v27/com_github_google_go_github_v27-v27.0.4.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_google_go_github_v39", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/google/go-github/v39", | ||
sha256 = "e8c6bb1c02f57d533559b4125a7f931c55901c9e2560bd688770314c27bcef4f", | ||
strip_prefix = "github.com/google/go-github/[email protected]", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-github/v39/com_github_google_go_github_v39-v39.0.0.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_google_go_github_v42", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/google/go-github/v42", | ||
sha256 = "250d7e937ea6b1d06a95168dba8708db6cc1f447ffe94712d0e2a82540ea01c9", | ||
strip_prefix = "github.com/google/go-github/[email protected]", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-github/v42/com_github_google_go_github_v42-v42.0.0.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "com_github_google_go_querystring", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/google/go-querystring", | ||
sha256 = "1c0a0b81b921ee270e47e05cf0bf8df4475de850671e553c07740849068d4f9f", | ||
strip_prefix = "github.com/google/go-querystring@v1.0.0", | ||
sha256 = "a6aafc01f5602e6177928751074e325792a654e1d92f0e238b8e8739656dd72b", | ||
strip_prefix = "github.com/google/go-querystring@v1.1.0", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-querystring/com_github_google_go_querystring-v1.0.0.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/google/go-querystring/com_github_google_go_querystring-v1.1.0.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -9015,10 +9045,10 @@ def go_deps(): | |
name = "org_golang_x_crypto", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "golang.org/x/crypto", | ||
sha256 = "c8c5cf6be93366723efffb4d1a71dde0da4a77886186c890de1b6821ee30cb3d", | ||
strip_prefix = "golang.org/x/[email protected]20220112180741-5e0467b6c7ce", | ||
sha256 = "882c2c5b949711073e3cc937d7e0bac965aae7ffefcc556b8fd7966f2349127a", | ||
strip_prefix = "golang.org/x/[email protected]20220307211146-efcb8507fb70", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/crypto/org_golang_x_crypto-v0.0.0-20220112180741-5e0467b6c7ce.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/crypto/org_golang_x_crypto-v0.0.0-20220307211146-efcb8507fb70.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -9075,20 +9105,20 @@ def go_deps(): | |
name = "org_golang_x_net", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "golang.org/x/net", | ||
sha256 = "75a58bccc53fccc844e501fa7a21daf3230f55dba680df730099918a6e90aa79", | ||
strip_prefix = "golang.org/x/[email protected]20220121210141-e204ce36a2ba", | ||
sha256 = "fb6a68784dabf543c3d90fc35598bdd9c356f22bddc59c8f820de6db7ea6a039", | ||
strip_prefix = "golang.org/x/[email protected]20220225172249-27dd8689420f", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/net/org_golang_x_net-v0.0.0-20220121210141-e204ce36a2ba.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/net/org_golang_x_net-v0.0.0-20220225172249-27dd8689420f.zip", | ||
], | ||
) | ||
go_repository( | ||
name = "org_golang_x_oauth2", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "golang.org/x/oauth2", | ||
sha256 = "7317b4f8c045bf2840b67cf2981cee14facc6d38a86b2781b62b32c0600f607c", | ||
strip_prefix = "golang.org/x/[email protected]20211104180415-d3ed0bb246c8", | ||
sha256 = "f67c8da0113402471bd476d772e1f4e20907cb3d12c413c0c445e0f4c906b002", | ||
strip_prefix = "golang.org/x/[email protected]20220309155454-6242fa91716a", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/oauth2/org_golang_x_oauth2-v0.0.0-20211104180415-d3ed0bb246c8.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/oauth2/org_golang_x_oauth2-v0.0.0-20220309155454-6242fa91716a.zip", | ||
], | ||
) | ||
go_repository( | ||
|
This file contains 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 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 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
Oops, something went wrong.