Skip to content

Commit 790e26d

Browse files
jingyushao-engtfx-copybara
authored andcommitted
test config changes
PiperOrigin-RevId: 588570342
1 parent db3acbf commit 790e26d

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

ml_metadata/metadata_store/BUILD

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ cc_library(
475475
ml_metadata_cc_test(
476476
name = "metadata_store_cc_test",
477477
srcs = ["metadata_store_test.cc"],
478+
env = {
479+
"ASAN_OPTIONS": "detect_odr_violation=0",
480+
},
478481
deps = [
479482
":metadata_store",
480483
":metadata_store_test_suite",
@@ -549,6 +552,9 @@ cc_library(
549552
ml_metadata_cc_test(
550553
name = "metadata_store_factory_test",
551554
srcs = ["metadata_store_factory_test.cc"],
555+
env = {
556+
"ASAN_OPTIONS": "detect_odr_violation=0",
557+
},
552558
deps = [
553559
":metadata_access_object_factory",
554560
":metadata_store",
@@ -898,6 +904,9 @@ cc_test(
898904
# list.
899905
cc_test(
900906
name = "standalone_postgresql_metadata_access_object_test",
907+
env = {
908+
"ASAN_OPTIONS": "detect_odr_violation=0",
909+
},
901910
tags = [
902911
"local",
903912
"manual",

ml_metadata/ml_metadata.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
This module contains build rules for ml_metadata in OSS.
1616
"""
1717

18-
load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library", "py_proto_library")
1918
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2019
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
20+
load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library", "py_proto_library")
2121

2222
def ml_metadata_cc_test(
2323
name,
2424
srcs = [],
2525
deps = [],
26+
env = {},
2627
tags = [],
2728
args = [],
2829
size = None,
@@ -32,6 +33,7 @@ def ml_metadata_cc_test(
3233
name = name,
3334
srcs = srcs,
3435
deps = deps,
36+
env = env,
3537
tags = tags,
3638
args = args,
3739
size = size,

0 commit comments

Comments
 (0)