Skip to content

Commit

Permalink
update(grpc): 1.62.1.bcr.1 with Bazel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
grencez committed Jun 3, 2024
1 parent 91719e7 commit 3e8d7d6
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 39 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test_bazel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ jobs:
uses: actions/checkout@v4

- name: Build
run: bazel build //...
run: >
bazel build
--disk_cache=~/.cache/bazel
//...
- name: Test
run: bazel test //...
run: >
bazel test
--disk_cache=~/.cache/bazel
//...
9 changes: 4 additions & 5 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ module(
version = "0.0.0",
)

bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "rules_license", version = "0.0.8")
bazel_dep(name = "rules_proto", version = "6.0.0")
bazel_dep(name = "rules_proto", version = "6.0.0.bcr.1")

bazel_dep(
name = "abseil-cpp",
version = "20240116.2",
repo_name = "com_google_absl")
bazel_dep(
name = "grpc",
version = "1.48.1.bcr.3",
version = "1.62.1.bcr.1",
repo_name = "com_github_grpc_grpc")

bazel_dep(
Expand All @@ -23,7 +22,7 @@ bazel_dep(
git_override(
module_name = "fildesh",
remote = "https://github.com/fildesh/fildesh.git",
commit="29ef2da4a4c4aeda9c0af917b95fc2c493d4f96d",
commit="11ff65ed78103bc1b1caefb1deb8fa42110eea08",
)
bazel_dep(
name = "rules_sxproto",
Expand All @@ -32,5 +31,5 @@ bazel_dep(
git_override(
module_name = "rules_sxproto",
remote = "https://github.com/rendezqueue/rules_sxproto.git",
commit="70827d3da93c4aefaeee3627a9d091a975d1377b",
commit="c720229ebe571b470efc6b34fda182308e56c1c8",
)
33 changes: 22 additions & 11 deletions test/scenario/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,36 +1,47 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@fildesh//tool/bazel:fildesh_test.bzl", "fildesh_test")
load("@rules_proto//proto:defs.bzl", "proto_library")
load("scenario.bzl", "rendezqueue_scenario_test")

bzl_library(
name = "scenario_bzl",
srcs = ["scenario.bzl"],
)
load("@rules_sxproto//sxproto:defs.bzl", "sxproto_data")

proto_library(
name = "scenario_proto",
testonly = 1,
srcs = ["scenario.proto"],
deps = ["//proto:rendezqueue_proto"],
testonly = 1,
)

cc_proto_library(
name = "scenario_cc_proto",
deps = [":scenario_proto"],
testonly = 1,
deps = [":scenario_proto"],
)

cc_binary(
name = "ccgrpc_expect",
testonly = 1,
srcs = [
"ccgrpc_expect.cc",
],
deps = [
":scenario_cc_proto",
"//src/ccgrpc:rendezqueue_protobuf_impl_cc",
],
testonly = 1,
)

rendezqueue_scenario_test(name = "basic")
sxproto_data(
name = "basic_binpb",
testonly = 1,
src = "basic.sxpb",
proto_deps = [":scenario_proto"],
proto_message = "rendezqueue.TrySwapScenario",
)

fildesh_test(
name = "basic_ccgrpc_expect_test",
srcs = ["//test/scenario:ccgrpc_expect.fildesh"],
input_by_option = {
"scenario_data": ":basic_binpb",
},
tool_by_alias = {
"expect_test": "//test/scenario:ccgrpc_expect",
},
)
21 changes: 0 additions & 21 deletions test/scenario/scenario.bzl

This file was deleted.

0 comments on commit 3e8d7d6

Please sign in to comment.