mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 00:35:25 +03:00
Refactor integrity checker into published "tools" lib + binary [KVL-557] (#7888)
* Document new integrity checker options * Remove v2 from the bazel target in README * Refactor integrity checker into published "tools" lib + binary CHANGELOG_BEGIN CHANGELOG_END * Refine split * Release tools lib * Generalize IntegrityChecker.run * Use glob for test source definition * Widen glob for tools-tests to all (future) tool tests, not just integritycheck * Simplify test source globs * Simplify tools lib source glob * Fix build
This commit is contained in:
parent
d5baaff50c
commit
26c8a123d4
@ -10,22 +10,18 @@ load(
|
||||
"lf_scalacopts",
|
||||
)
|
||||
|
||||
da_scala_binary(
|
||||
name = "integrity-check",
|
||||
srcs = glob(["integrity-check/src/main/scala/ledger/participant/state/kvutils/tools/integritycheck/**/*.scala"]),
|
||||
main_class = "com.daml.ledger.participant.state.kvutils.tools.integritycheck.Main",
|
||||
resources = glob(["src/main/resources/*"]),
|
||||
da_scala_library(
|
||||
name = "tools",
|
||||
srcs = glob(["src/main/scala/**/*.scala"]),
|
||||
resources = glob(["src/main/resources/**/*"]),
|
||||
tags = ["maven_coordinates=com.daml:participant-state-kvutils-tools:__VERSION__"],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
runtime_deps = [
|
||||
"@maven//:ch_qos_logback_logback_classic",
|
||||
],
|
||||
deps = [
|
||||
"//daml-lf/data",
|
||||
"//daml-lf/engine",
|
||||
"//ledger/ledger-api-health",
|
||||
"//ledger/ledger-on-memory",
|
||||
"//ledger/ledger-resources",
|
||||
"//ledger/metrics",
|
||||
"//ledger/participant-integration-api",
|
||||
@ -44,10 +40,49 @@ da_scala_binary(
|
||||
],
|
||||
)
|
||||
|
||||
da_scala_test(
|
||||
name = "tools-tests",
|
||||
size = "small",
|
||||
srcs = glob(["src/test/scala/**/*.scala"]),
|
||||
deps = [
|
||||
"//ledger/participant-state/kvutils",
|
||||
"//ledger/participant-state/kvutils/tools",
|
||||
"@maven//:com_google_protobuf_protobuf_java",
|
||||
"@maven//:org_mockito_mockito_core",
|
||||
"@maven//:org_scalatest_scalatest_2_12",
|
||||
],
|
||||
)
|
||||
|
||||
da_scala_binary(
|
||||
name = "integrity-check",
|
||||
srcs = glob(["integrity-check/src/main/scala/ledger/participant/state/kvutils/tools/integritycheck/**/*.scala"]),
|
||||
main_class = "com.daml.ledger.participant.state.kvutils.tools.integritycheck.Main",
|
||||
resources = glob(["src/main/resources/*"]),
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
runtime_deps = [
|
||||
"@maven//:ch_qos_logback_logback_classic",
|
||||
],
|
||||
deps = [
|
||||
"//ledger/ledger-api-health",
|
||||
"//ledger/ledger-on-memory",
|
||||
"//ledger/metrics",
|
||||
"//ledger/participant-state",
|
||||
"//ledger/participant-state/kvutils",
|
||||
"//ledger/participant-state/kvutils:daml_kvutils_java_proto",
|
||||
"//ledger/participant-state/kvutils/tools",
|
||||
"@maven//:com_google_protobuf_protobuf_java",
|
||||
"@maven//:com_typesafe_akka_akka_actor_2_12",
|
||||
"@maven//:com_typesafe_akka_akka_stream_2_12",
|
||||
"@maven//:io_dropwizard_metrics_metrics_core",
|
||||
],
|
||||
)
|
||||
|
||||
da_scala_test(
|
||||
name = "integrity-check-tests",
|
||||
size = "small",
|
||||
srcs = glob(["integrity-check/src/test/scala/ledger/participant/state/kvutils/tools/integritycheck/**/*.scala"]),
|
||||
srcs = glob(["integrity-check/src/test/**/*.scala"]),
|
||||
deps = [
|
||||
":integrity-check",
|
||||
"//daml-lf/data",
|
||||
@ -55,11 +90,11 @@ da_scala_test(
|
||||
"//ledger/metrics",
|
||||
"//ledger/participant-state",
|
||||
"//ledger/participant-state/kvutils",
|
||||
"//ledger/participant-state/kvutils/tools",
|
||||
"@maven//:com_google_protobuf_protobuf_java",
|
||||
"@maven//:com_typesafe_akka_akka_actor_2_12",
|
||||
"@maven//:com_typesafe_akka_akka_stream_2_12",
|
||||
"@maven//:io_dropwizard_metrics_metrics_core",
|
||||
"@maven//:org_mockito_mockito_core",
|
||||
"@maven//:org_scalatest_scalatest_2_12",
|
||||
],
|
||||
)
|
||||
|
@ -111,6 +111,8 @@
|
||||
type: jar-scala
|
||||
- target: //ledger/participant-state/kvutils/app:app
|
||||
type: jar-scala
|
||||
- target: //ledger/participant-state/kvutils/tools:tools
|
||||
type: jar-scala
|
||||
- target: //ledger/participant-state/protobuf:ledger_configuration_java_proto
|
||||
type: jar-proto
|
||||
- target: //ledger/participant-state-index:participant-state-index
|
||||
|
Loading…
Reference in New Issue
Block a user