mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
23d8451b98
The migration script from #7344 ensures that there are no more values in Sandbox Classic DB encoded with Value version < 6. Hence, we do not need anymore a special EngineConfig to maintain backward compatibility of Sandbox classic DB. CHANGELOG_BEGIN CHANGELOG_END
89 lines
2.6 KiB
Python
89 lines
2.6 KiB
Python
# Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load(
|
|
"//bazel_tools:scala.bzl",
|
|
"da_scala_library",
|
|
"da_scala_test",
|
|
"da_scala_test_suite",
|
|
"lf_scalacopts",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "engine",
|
|
srcs = glob(["src/main/**/*.scala"]),
|
|
scalacopts = lf_scalacopts,
|
|
tags = ["maven_coordinates=com.daml:daml-lf-engine:__VERSION__"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//daml-lf/data",
|
|
"//daml-lf/interpreter",
|
|
"//daml-lf/language",
|
|
"//daml-lf/transaction",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
"@maven//:org_typelevel_paiges_core_2_12",
|
|
],
|
|
)
|
|
|
|
da_scala_test_suite(
|
|
name = "tests",
|
|
srcs = glob(
|
|
[
|
|
"src/test/**/*Spec.scala",
|
|
"src/test/**/*Test.scala",
|
|
],
|
|
exclude = [
|
|
"src/test/**/LargeTransactionTest.scala",
|
|
],
|
|
),
|
|
data = [
|
|
"//daml-lf/tests:BasicTests.dar",
|
|
"//daml-lf/tests:Optional.dar",
|
|
],
|
|
scalacopts = lf_scalacopts,
|
|
deps = [
|
|
":engine",
|
|
"//bazel_tools/runfiles:scala_runfiles",
|
|
"//daml-lf/archive:daml_lf_archive_reader",
|
|
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
|
|
"//daml-lf/data",
|
|
"//daml-lf/interpreter",
|
|
"//daml-lf/language",
|
|
"//daml-lf/parser",
|
|
"//daml-lf/transaction",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
"@maven//:com_storm_enroute_scalameter_core_2_12",
|
|
"@maven//:org_scalatest_scalatest_2_12",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
],
|
|
)
|
|
|
|
da_scala_test(
|
|
name = "test-large-transaction",
|
|
timeout = "moderate",
|
|
srcs = glob([
|
|
"src/test/**/LargeTransactionTest.scala",
|
|
"src/test/**/InMemoryPrivateLedgerData.scala",
|
|
]),
|
|
data = [
|
|
"//daml-lf/tests:LargeTransaction.dar",
|
|
],
|
|
# We setup a large heap size to reduce as much as possible GC overheads.
|
|
initial_heap_size = "2g",
|
|
max_heap_size = "2g",
|
|
scalacopts = lf_scalacopts,
|
|
deps = [
|
|
":engine",
|
|
"//bazel_tools/runfiles:scala_runfiles",
|
|
"//daml-lf/archive:daml_lf_archive_reader",
|
|
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
|
|
"//daml-lf/data",
|
|
"//daml-lf/language",
|
|
"//daml-lf/transaction",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
"@maven//:com_storm_enroute_scalameter_core_2_12",
|
|
"@maven//:org_scalatest_scalatest_2_12",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
],
|
|
)
|