-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
78430: backupccl: datadrivenify the restore OnFailOrCancel tests r=msbutler a=adityamaru This change ports all the "cleanup on failed or canceled restore" tests to the datadriven framework. To make this possible new instructions have been added to the datadriven framework, please refer to the header comment for details about each one. Informs: #77129 Release note: None 79167: bazel: update arguments passed to `configure` for dev macOS arm builds r=mari-crl a=rickystewart Release note: None 79236: dev: `lint` should honor the number of CPUs when building cockroach r=irfansharif a=rickystewart Release note: None 79242: docs: generate swagger docs w/ bazel r=mari-crl,rail a=rickystewart Also build in CI as well as `dev generate docs`. Closes #77395. Release note: None Co-authored-by: Aditya Maru <[email protected]> Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
16 changed files
with
694 additions
and
328 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_path") | ||
|
||
genrule( | ||
name = "swagger", | ||
srcs = [ | ||
":swagger_go_path", | ||
], | ||
outs = ["spec.json"], | ||
cmd = """ | ||
GO_REL_PATH=`dirname $(location @go_sdk//:bin/go)` | ||
GO_ABS_PATH=`cd $$GO_REL_PATH && pwd` | ||
env PATH=$$GO_ABS_PATH HOME=$(GENDIR) GOPATH=$$(cd $(location :swagger_go_path) && pwd) GO111MODULE=off \ | ||
$(location @com_github_go_swagger_go_swagger//cmd/swagger) generate spec -w $(location :swagger_go_path)/src/github.com/cockroachdb/cockroach/pkg --scan-models -t bazel -o $@ | ||
""", | ||
exec_tools = [ | ||
"@com_github_go_swagger_go_swagger//cmd/swagger", | ||
"@go_sdk//:bin/go", | ||
], | ||
) | ||
|
||
go_path( | ||
name = "swagger_go_path", | ||
deps = [ | ||
"//pkg/server", | ||
], | ||
) |
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.