Skip to content

Commit

Permalink
Make forbidden dependency check for model dirs (#267) (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
drbasic authored Jan 30, 2024
1 parent 94b68cb commit 4b0274a
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/storage/disk_agent/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

SRCS(
compare_configs.cpp
config.cpp
Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/storage/disk_registry/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

#INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

SRCS(
agent_counters.cpp
agent_list.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

SRCS(
config.cpp
)
Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/storage/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

GENERATE_ENUM_SERIALIZATION(channel_data_kind.h)

PEERDIR(
Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/storage/partition/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

#INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

GENERATE_ENUM_SERIALIZATION(mixed_index_cache.h)
GENERATE_ENUM_SERIALIZATION(operation_status.h)

Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/storage/partition2/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

GENERATE_ENUM_SERIALIZATION(alloc.h)
GENERATE_ENUM_SERIALIZATION(operation_status.h)

Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/storage/partition_common/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

SRCS(
blob_markers.cpp
fresh_blob.cpp
Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/storage/partition_nonrepl/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

SRCS(
processing_blocks.cpp
)
Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/storage/service/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

SRCS(
ping_metrics.cpp
)
Expand Down
2 changes: 2 additions & 0 deletions cloud/blockstore/libs/storage/volume/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

#INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

GENERATE_ENUM_SERIALIZATION(checkpoint.h)

SRCS(
Expand Down
14 changes: 14 additions & 0 deletions cloud/deny_ydb_dependency.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CHECK_DEPENDENT_DIRS(
DENY ALL
contrib/ydb

EXCEPT contrib/ydb/library/actors
EXCEPT contrib/ydb/library/services
EXCEPT contrib/ydb/library/yql/providers/generic/connector/api/common
EXCEPT contrib/ydb/library/yql/public/types
EXCEPT contrib/ydb/public/lib/validation/

EXCEPT GLOB contrib/ydb/**/proto
EXCEPT GLOB contrib/ydb/**/protos
EXCEPT GLOB contrib/ydb/**/protos/annotations
)
2 changes: 2 additions & 0 deletions cloud/filestore/libs/storage/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY(filestore-libs-storage-model)

INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

GENERATE_ENUM_SERIALIZATION(
channel_data_kind.h
)
Expand Down
2 changes: 2 additions & 0 deletions cloud/filestore/libs/storage/tablet/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

#INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

GENERATE_ENUM_SERIALIZATION(alloc.h)

SRCS(
Expand Down
2 changes: 2 additions & 0 deletions cloud/storage/core/libs/tablet/model/ya.make
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LIBRARY()

INCLUDE(${ARCADIA_ROOT}/cloud/deny_ydb_dependency.inc)

SRCS(
commit.cpp
partial_blob_id.cpp
Expand Down

0 comments on commit 4b0274a

Please sign in to comment.