mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
bb5722cd1b
* Moved SandboxFixture and IT tests to Sandbox-on-X changelog_begin changelog_end * Addressed review comments
105 lines
3.5 KiB
Python
105 lines
3.5 KiB
Python
# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load(
|
|
"//bazel_tools:scala.bzl",
|
|
"da_scala_benchmark_jmh",
|
|
"da_scala_library",
|
|
)
|
|
load(
|
|
"//rules_daml:daml.bzl",
|
|
"daml_compile",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "sandbox-perf-lib",
|
|
srcs = glob(["src/perf/lib/**/*.scala"]),
|
|
scala_deps = [
|
|
"@maven//:com_typesafe_akka_akka_actor",
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//bazel_tools/runfiles:scala_runfiles",
|
|
"//daml-lf/archive:daml_lf_archive_reader",
|
|
"//daml-lf/data",
|
|
"//language-support/scala/bindings",
|
|
"//ledger-api/rs-grpc-akka",
|
|
"//ledger-api/rs-grpc-bridge",
|
|
"//ledger-api/testing-utils",
|
|
"//ledger/caching",
|
|
"//ledger/ledger-api-client",
|
|
"//ledger/ledger-api-common",
|
|
"//ledger/ledger-api-domain",
|
|
"//ledger/ledger-configuration",
|
|
"//ledger/ledger-resources",
|
|
"//ledger/participant-integration-api",
|
|
"//ledger/participant-integration-api:participant-integration-api-tests-lib",
|
|
"//ledger/sandbox-common",
|
|
"//ledger/sandbox-common:sandbox-common-scala-tests-lib",
|
|
"//ledger/sandbox-on-x:sandbox-classic-server",
|
|
"//ledger/test-common",
|
|
"//ledger/test-common:dar-files-default-lib",
|
|
"//libs-scala/ports",
|
|
"//libs-scala/postgresql-testing",
|
|
"//libs-scala/resources",
|
|
"//libs-scala/resources-akka",
|
|
"//libs-scala/resources-grpc",
|
|
"@io_bazel_rules_scala//jmh:jmh_core",
|
|
"@maven//:ch_qos_logback_logback_classic",
|
|
],
|
|
)
|
|
|
|
daml_compile(
|
|
name = "LargeTransaction",
|
|
srcs = ["src/perf/resources/damls/LargeTransaction.daml"],
|
|
enable_scenarios = True,
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
da_scala_benchmark_jmh(
|
|
name = "sandbox-perf",
|
|
srcs = glob(["src/perf/benches/**/*.scala"]),
|
|
data = [
|
|
"//ledger/sandbox-perf:LargeTransaction.dar",
|
|
"//ledger/test-common:model-tests-default.dar",
|
|
"@postgresql_dev_env//:all",
|
|
],
|
|
scala_deps = [
|
|
"@maven//:com_typesafe_akka_akka_actor",
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":sandbox-perf-lib",
|
|
"//bazel_tools/runfiles:scala_runfiles",
|
|
"//daml-lf/archive:daml_lf_1.dev_archive_proto_java",
|
|
"//daml-lf/archive:daml_lf_archive_reader",
|
|
"//daml-lf/data",
|
|
"//daml-lf/engine",
|
|
"//daml-lf/interpreter",
|
|
"//daml-lf/language",
|
|
"//daml-lf/scenario-interpreter",
|
|
"//daml-lf/transaction",
|
|
"//language-support/scala/bindings",
|
|
"//ledger-api/rs-grpc-akka",
|
|
"//ledger-api/rs-grpc-bridge",
|
|
"//ledger-api/testing-utils",
|
|
"//ledger/ledger-api-client",
|
|
"//ledger/ledger-api-common",
|
|
"//ledger/ledger-api-domain",
|
|
"//ledger/participant-state",
|
|
"//ledger/sandbox-classic",
|
|
"//ledger/sandbox-classic:sandbox-classic-scala-tests-lib",
|
|
"//ledger/sandbox-common",
|
|
"//ledger/sandbox-common:sandbox-common-scala-tests-lib",
|
|
"//ledger/test-common",
|
|
"//ledger/test-common:dar-files-default-lib",
|
|
"//libs-scala/concurrent",
|
|
"@maven//:ch_qos_logback_logback_classic",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
],
|
|
)
|