aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dist/test.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2023-11-15 09:50:01 -0500
committerJonathan Amsterdam <jba@google.com>2024-01-24 13:01:26 +0000
commit8b23b7b04234424791e26b8d2d26f61ef1311a9f (patch)
treed0cebc42f94025d062d5669bf27046d3025b67a6 /src/cmd/dist/test.go
parentb4e7d630bc6fbf654a20a4bebda94a8150811bea (diff)
downloadgo-8b23b7b04234424791e26b8d2d26f61ef1311a9f.tar.gz
go-8b23b7b04234424791e26b8d2d26f61ef1311a9f.zip
src/cmd/relnote, doc/next: add release note check
Add a test that every file in api/next has corresponding release note fragments. Vendor in golang.org/x/build/relnote, which brings along some other things. Modify dist/test.go to configure the test to run on some trybots. For #64169. Change-Id: If87d11350ea6b2605bc3ab31c491fa28f1d6ee7d Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/go/+/556995 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/cmd/dist/test.go')
-rw-r--r--src/cmd/dist/test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
index 5e62bbf4c2..fa6a0dd84d 100644
--- a/src/cmd/dist/test.go
+++ b/src/cmd/dist/test.go
@@ -902,8 +902,11 @@ func (t *tester) registerTests() {
// so we really only need to run this check once anywhere to get adequate coverage.
// To help developers avoid trybot-only failures, we try to run on typical developer machines
// which is darwin,linux,windows/amd64 and darwin/arm64.
+ //
+ // The same logic applies to the release notes that correspond to each api/next file.
if goos == "darwin" || ((goos == "linux" || goos == "windows") && goarch == "amd64") {
t.registerTest("API check", &goTest{variant: "check", pkg: "cmd/api", timeout: 5 * time.Minute, testFlags: []string{"-check"}})
+ t.registerTest("API release note check", &goTest{variant: "check", pkg: "cmd/relnote", testFlags: []string{"-check"}})
}
}