diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 86dbf702..919ba5f0 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -34,7 +34,7 @@ jobs: - os: macos-latest sudo-command: "sudo" bazel-command: "bazelisk" - bazel-config: "" + bazel-config: "--config=asan --copt -U_FORTIFY_SOURCE --copt=-D_FORTIFY_SOURCE=1" output-user_root: "" - os: ubuntu-latest sudo-command: "sudo" diff --git a/test/grpc/streaming/streaming.cc b/test/grpc/streaming/streaming.cc index 048c3a1f..4f4b0b6a 100644 --- a/test/grpc/streaming/streaming.cc +++ b/test/grpc/streaming/streaming.cc @@ -66,6 +66,8 @@ void test_client_behavior( ::grpc::InsecureChannelCredentials(), pool.Borrow()); + // We are taking 'Task' instead of template here because of perfomance things. + // We are limited by the environment, so it allows to use less resourses. auto call = [&]() -> Task::Of<::grpc::Status>::Raises { return [&]() { return client.Call< diff --git a/test/grpc/streaming/streaming.h b/test/grpc/streaming/streaming.h index c0b23981..b5ddc71b 100644 --- a/test/grpc/streaming/streaming.h +++ b/test/grpc/streaming/streaming.h @@ -41,6 +41,9 @@ using stout::Borrowable; // _[AfterReply|BeforeReply] // _[OneRequest|TwoRequests] +// We are taking 'Task' instead of template here because of perfomance things. +// Environment we are running on has some RAM limits, so it allows to use less +// resourses while building. void test_client_behavior( Task::From< ClientCall<