2021-01-01 21:49:51 +03:00
|
|
|
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2020-01-16 15:02:16 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
load(
|
|
|
|
"//bazel_tools:scala.bzl",
|
|
|
|
"da_scala_binary",
|
|
|
|
"da_scala_library",
|
2020-01-24 17:33:11 +03:00
|
|
|
"da_scala_test_suite",
|
2021-01-13 13:35:46 +03:00
|
|
|
"silencer_plugin",
|
2020-01-16 15:02:16 +03:00
|
|
|
)
|
|
|
|
load("//ledger/ledger-api-test-tool:conformance.bzl", "conformance_test")
|
2021-06-29 01:51:48 +03:00
|
|
|
load("@oracle//:index.bzl", "oracle_testing")
|
2020-01-16 15:02:16 +03:00
|
|
|
|
|
|
|
supported_databases = [
|
|
|
|
{
|
2020-01-22 18:54:51 +03:00
|
|
|
"name": "h2-memory",
|
2020-01-24 17:33:11 +03:00
|
|
|
"runtime_deps": [
|
|
|
|
"@maven//:com_h2database_h2",
|
|
|
|
],
|
2020-01-16 15:02:16 +03:00
|
|
|
"conformance_test_tags": [
|
|
|
|
"manual",
|
|
|
|
],
|
|
|
|
"conformance_test_server_args": [
|
2020-01-22 18:54:51 +03:00
|
|
|
"--jdbc-url=jdbc:h2:mem:daml-on-sql-conformance-test",
|
|
|
|
],
|
2020-01-16 15:02:16 +03:00
|
|
|
},
|
2020-01-24 17:33:11 +03:00
|
|
|
{
|
|
|
|
"name": "postgresql",
|
2020-01-22 18:54:51 +03:00
|
|
|
"runtime_deps": [
|
2020-01-24 17:33:11 +03:00
|
|
|
"@maven//:org_postgresql_postgresql",
|
2020-01-22 18:54:51 +03:00
|
|
|
],
|
2020-01-24 17:33:11 +03:00
|
|
|
"conformance_test_server_main": "com.daml.ledger.on.sql.MainWithEphemeralPostgresql",
|
2020-01-22 18:54:51 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sqlite-memory",
|
|
|
|
"runtime_deps": [
|
|
|
|
"@maven//:org_xerial_sqlite_jdbc",
|
|
|
|
],
|
2020-01-24 17:33:11 +03:00
|
|
|
"conformance_test_server_args": [
|
2020-01-29 13:34:00 +03:00
|
|
|
"--jdbc-url=jdbc:sqlite:file:daml-on-sql-conformance-test?mode=memory&cache=shared",
|
2020-01-24 17:33:11 +03:00
|
|
|
],
|
2020-01-22 18:54:51 +03:00
|
|
|
},
|
2020-01-16 15:02:16 +03:00
|
|
|
]
|
|
|
|
|
2020-01-28 19:16:23 +03:00
|
|
|
all_database_runtime_deps = {dep: None for db in supported_databases for dep in db["runtime_deps"]}.keys()
|
|
|
|
|
2020-01-16 15:02:16 +03:00
|
|
|
da_scala_library(
|
|
|
|
name = "ledger-on-sql",
|
|
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
2021-04-26 22:46:14 +03:00
|
|
|
plugins = [
|
|
|
|
silencer_plugin,
|
|
|
|
],
|
2020-01-16 15:02:16 +03:00
|
|
|
resources = glob(["src/main/resources/**/*"]),
|
2021-01-13 13:35:46 +03:00
|
|
|
scala_deps = [
|
|
|
|
"@maven//:com_typesafe_akka_akka_actor",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
|
|
|
"@maven//:org_playframework_anorm_anorm",
|
|
|
|
"@maven//:org_playframework_anorm_anorm_tokenizer",
|
2021-05-12 00:54:14 +03:00
|
|
|
"@maven//:org_scala_lang_modules_scala_collection_compat",
|
2021-01-13 13:35:46 +03:00
|
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
|
|
],
|
2020-08-14 17:15:30 +03:00
|
|
|
tags = ["maven_coordinates=com.daml:ledger-on-sql:__VERSION__"],
|
2020-01-16 15:02:16 +03:00
|
|
|
visibility = [
|
|
|
|
"//visibility:public",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//daml-lf/data",
|
2020-04-30 18:06:21 +03:00
|
|
|
"//daml-lf/engine",
|
2020-02-26 11:31:26 +03:00
|
|
|
"//language-support/scala/bindings",
|
2020-05-20 16:51:45 +03:00
|
|
|
"//ledger/caching",
|
2020-01-16 15:02:16 +03:00
|
|
|
"//ledger/ledger-api-common",
|
Sandbox & kvutils: Use the existing ledger ID if no ledger ID is specified. (#4607)
* sandbox: If the ledger ID isn't provided, use the one in the database.
Previously, we would fail if working against an existing ledger, and not
explicitly providing the ledger ID. This was the case even if the ledger
ID was randomly generated initially.
CHANGELOG_BEGIN
- [Sandbox] If no ledger ID is provided when running against an existing
ledger, use the existing ID. Previously, Sandbox would fail to start.
CHANGELOG_END
* sandbox: The ReadOnlySqlLedger should always receive a ledger ID.
It's read-only; it can't create one.
* sandbox: Stop using `equal` in SqlLedgerSpec.
* sandbox: Test that the ledger ID is as specified in SqlLedgerSpec.
* sandbox: Let the top-level runner handle a ledger ID mismatch.
And clean up the log text.
* sandbox: Initialize the ledger properly when the ID is dynamic.
* sandbox: Use `Vector`, not `List`, for SqlLedger initialization.
Append with Vector, good. List, bad.
* ledger-api-common: Make `LedgerApiMode.Dynamic` an object.
And add Java-style static factory methods.
* kvutils/app | ledger-on-{memory,sql}: Make `ledgerId` optional.
It should be generated or retrieved from the persistence layer by the
ledger itself.
* kvutils: Make the ledger ID optional in the tests.
* ledger-on-sql: Store the ledger ID, and reject conflicting IDs.
* ledger-on-sql: Make more things final.
* ledger-on-sql: Document the `ledger_meta.table_key` column better.
* sandbox: Don't hardcode the number of packages in the test DAR.
It changes.
* ledger-on-sql: Merge the `head` resource owner with the `dispatcher`.
* sandbox: Use backticks to simplify pattern match in ReadOnlySqlLedger.
* ledger-on-sql: Extract methods in `owner`.
2020-02-20 13:35:16 +03:00
|
|
|
"//ledger/ledger-api-domain",
|
2020-01-16 15:02:16 +03:00
|
|
|
"//ledger/ledger-api-health",
|
2021-07-15 16:03:19 +03:00
|
|
|
"//ledger/ledger-configuration",
|
2021-07-15 18:53:03 +03:00
|
|
|
"//ledger/ledger-offset",
|
2020-10-20 12:26:28 +03:00
|
|
|
"//ledger/ledger-resources",
|
2020-04-16 14:11:06 +03:00
|
|
|
"//ledger/metrics",
|
2020-01-16 15:02:16 +03:00
|
|
|
"//ledger/participant-state",
|
|
|
|
"//ledger/participant-state/kvutils",
|
2020-10-02 18:16:05 +03:00
|
|
|
"//libs-scala/concurrent",
|
2020-01-22 18:54:51 +03:00
|
|
|
"//libs-scala/contextualized-logging",
|
2020-01-23 18:59:01 +03:00
|
|
|
"//libs-scala/resources",
|
2020-10-20 12:26:28 +03:00
|
|
|
"//libs-scala/resources-akka",
|
2021-01-25 12:32:36 +03:00
|
|
|
"//libs-scala/resources-grpc",
|
2020-01-16 15:02:16 +03:00
|
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
|
|
"@maven//:com_zaxxer_HikariCP",
|
2020-03-24 22:41:19 +03:00
|
|
|
"@maven//:io_dropwizard_metrics_metrics_core",
|
2020-01-28 19:16:23 +03:00
|
|
|
"@maven//:org_flywaydb_flyway_core",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-02-06 20:34:17 +03:00
|
|
|
da_scala_library(
|
|
|
|
name = "ledger-on-sql-app",
|
|
|
|
srcs = glob(["src/app/scala/**/*.scala"]),
|
|
|
|
resources = glob(["src/app/resources/**/*"]),
|
2021-01-13 18:30:43 +03:00
|
|
|
scala_deps = [
|
|
|
|
"@maven//:com_github_scopt_scopt",
|
|
|
|
"@maven//:com_typesafe_akka_akka_actor",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
|
|
|
],
|
2020-02-06 20:34:17 +03:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":ledger-on-sql",
|
|
|
|
"//daml-lf/data",
|
2020-04-30 18:06:21 +03:00
|
|
|
"//daml-lf/engine",
|
2020-02-26 11:31:26 +03:00
|
|
|
"//language-support/scala/bindings",
|
2020-05-20 16:51:45 +03:00
|
|
|
"//ledger/caching",
|
2020-02-26 11:31:26 +03:00
|
|
|
"//ledger/ledger-api-auth",
|
2020-02-06 20:34:17 +03:00
|
|
|
"//ledger/ledger-api-health",
|
2021-07-15 16:03:19 +03:00
|
|
|
"//ledger/ledger-configuration",
|
2020-10-20 12:26:28 +03:00
|
|
|
"//ledger/ledger-resources",
|
2020-05-05 17:55:29 +03:00
|
|
|
"//ledger/metrics",
|
2020-07-17 18:06:06 +03:00
|
|
|
"//ledger/participant-integration-api",
|
2020-02-06 20:34:17 +03:00
|
|
|
"//ledger/participant-state",
|
|
|
|
"//ledger/participant-state/kvutils",
|
|
|
|
"//ledger/participant-state/kvutils/app",
|
|
|
|
"//libs-scala/contextualized-logging",
|
2020-03-03 11:59:15 +03:00
|
|
|
"//libs-scala/ports",
|
2020-02-06 20:34:17 +03:00
|
|
|
"//libs-scala/resources",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-01-28 19:16:23 +03:00
|
|
|
da_scala_binary(
|
|
|
|
name = "app",
|
|
|
|
main_class = "com.daml.ledger.on.sql.Main",
|
|
|
|
visibility = ["//visibility:public"],
|
2020-08-31 17:40:35 +03:00
|
|
|
runtime_deps = [
|
|
|
|
"@maven//:ch_qos_logback_logback_classic",
|
|
|
|
"@maven//:ch_qos_logback_logback_core",
|
|
|
|
] + all_database_runtime_deps,
|
2020-01-28 19:16:23 +03:00
|
|
|
deps = [
|
2020-02-06 20:34:17 +03:00
|
|
|
":ledger-on-sql-app",
|
2020-01-16 15:02:16 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-01-24 17:33:11 +03:00
|
|
|
da_scala_library(
|
|
|
|
name = "ledger-on-sql-test-lib",
|
|
|
|
srcs = glob(["src/test/lib/scala/**/*.scala"]),
|
2021-01-13 18:30:43 +03:00
|
|
|
scala_deps = [
|
|
|
|
"@maven//:com_github_scopt_scopt",
|
|
|
|
"@maven//:com_typesafe_akka_akka_actor",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
|
|
|
"@maven//:org_scalactic_scalactic",
|
2021-08-13 02:19:35 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_core",
|
2021-08-26 14:43:12 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_flatspec",
|
|
|
|
"@maven//:org_scalatest_scalatest_matchers_core",
|
|
|
|
"@maven//:org_scalatest_scalatest_shouldmatchers",
|
2021-08-13 02:19:35 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_wordspec",
|
2021-08-26 14:43:12 +03:00
|
|
|
"@maven//:org_scalaz_scalaz_core",
|
2021-01-13 18:30:43 +03:00
|
|
|
],
|
2020-01-24 17:33:11 +03:00
|
|
|
visibility = [
|
|
|
|
"//visibility:public",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":ledger-on-sql",
|
2020-02-06 20:34:17 +03:00
|
|
|
":ledger-on-sql-app",
|
2020-01-24 17:33:11 +03:00
|
|
|
"//daml-lf/data",
|
2020-04-30 18:06:21 +03:00
|
|
|
"//daml-lf/engine",
|
2020-02-26 11:31:26 +03:00
|
|
|
"//language-support/scala/bindings",
|
2020-01-28 19:16:23 +03:00
|
|
|
"//ledger-api/rs-grpc-bridge",
|
|
|
|
"//ledger-api/testing-utils",
|
2020-05-20 16:51:45 +03:00
|
|
|
"//ledger/caching",
|
2020-01-24 17:33:11 +03:00
|
|
|
"//ledger/ledger-api-health",
|
2021-07-15 16:03:19 +03:00
|
|
|
"//ledger/ledger-configuration",
|
2020-10-20 12:26:28 +03:00
|
|
|
"//ledger/ledger-resources",
|
2020-05-05 17:55:29 +03:00
|
|
|
"//ledger/metrics",
|
2020-07-17 18:06:06 +03:00
|
|
|
"//ledger/participant-integration-api",
|
2020-01-24 17:33:11 +03:00
|
|
|
"//ledger/participant-state",
|
|
|
|
"//ledger/participant-state/kvutils",
|
2020-01-28 19:16:23 +03:00
|
|
|
"//ledger/participant-state/kvutils:kvutils-tests-lib",
|
2020-01-24 17:33:11 +03:00
|
|
|
"//ledger/participant-state/kvutils/app",
|
2021-08-26 14:43:12 +03:00
|
|
|
"//libs-scala/concurrent",
|
2020-01-28 19:16:23 +03:00
|
|
|
"//libs-scala/contextualized-logging",
|
2021-06-29 01:51:48 +03:00
|
|
|
"//libs-scala/oracle-testing",
|
2020-03-03 11:59:15 +03:00
|
|
|
"//libs-scala/ports",
|
2020-01-24 17:33:11 +03:00
|
|
|
"//libs-scala/postgresql-testing",
|
|
|
|
"//libs-scala/resources",
|
2021-08-26 14:43:12 +03:00
|
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
|
|
"@maven//:io_dropwizard_metrics_metrics_core",
|
2021-08-13 02:19:35 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_compatible",
|
2020-01-24 17:33:11 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_test_suite(
|
2020-01-16 15:02:16 +03:00
|
|
|
name = "ledger-on-sql-tests",
|
|
|
|
srcs = glob(["src/test/suite/**/*.scala"]),
|
|
|
|
data = [
|
2021-07-27 10:27:03 +03:00
|
|
|
"//ledger/test-common:model-tests-default.dar",
|
2020-01-16 15:02:16 +03:00
|
|
|
],
|
|
|
|
resources = glob(["src/test/resources/*"]),
|
2021-01-13 18:30:43 +03:00
|
|
|
scala_deps = [
|
|
|
|
"@maven//:com_typesafe_akka_akka_actor",
|
|
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
|
|
|
"@maven//:org_scala_lang_modules_scala_java8_compat",
|
|
|
|
"@maven//:org_scalactic_scalactic",
|
2021-08-13 02:19:35 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_core",
|
2021-08-26 14:43:12 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_flatspec",
|
2021-08-13 02:19:35 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_matchers_core",
|
|
|
|
"@maven//:org_scalatest_scalatest_shouldmatchers",
|
|
|
|
"@maven//:org_scalatest_scalatest_wordspec",
|
2021-08-26 14:43:12 +03:00
|
|
|
"@maven//:org_scalaz_scalaz_core",
|
2021-01-13 18:30:43 +03:00
|
|
|
],
|
2020-08-31 17:40:35 +03:00
|
|
|
runtime_deps = [
|
|
|
|
"@maven//:ch_qos_logback_logback_classic",
|
|
|
|
"@maven//:ch_qos_logback_logback_core",
|
|
|
|
] + all_database_runtime_deps,
|
2020-01-16 15:02:16 +03:00
|
|
|
deps = [
|
|
|
|
":ledger-on-sql",
|
2020-01-28 19:16:23 +03:00
|
|
|
":ledger-on-sql-test-lib",
|
2020-01-16 15:02:16 +03:00
|
|
|
"//daml-lf/data",
|
2020-04-30 18:06:21 +03:00
|
|
|
"//daml-lf/engine",
|
2020-01-16 15:02:16 +03:00
|
|
|
"//ledger-api/rs-grpc-bridge",
|
|
|
|
"//ledger-api/testing-utils",
|
|
|
|
"//ledger/ledger-api-common",
|
|
|
|
"//ledger/ledger-api-health",
|
2021-07-15 16:03:19 +03:00
|
|
|
"//ledger/ledger-configuration",
|
2020-10-20 12:26:28 +03:00
|
|
|
"//ledger/ledger-resources",
|
|
|
|
"//ledger/ledger-resources:ledger-resources-test-lib",
|
2020-05-05 17:55:29 +03:00
|
|
|
"//ledger/metrics",
|
2020-07-17 18:06:06 +03:00
|
|
|
"//ledger/participant-integration-api",
|
2020-01-16 15:02:16 +03:00
|
|
|
"//ledger/participant-state",
|
|
|
|
"//ledger/participant-state/kvutils",
|
|
|
|
"//ledger/participant-state/kvutils:kvutils-tests-lib",
|
2021-08-26 14:43:12 +03:00
|
|
|
"//libs-scala/concurrent",
|
2020-01-29 13:34:00 +03:00
|
|
|
"//libs-scala/contextualized-logging",
|
2020-11-06 12:20:32 +03:00
|
|
|
"//libs-scala/flyway-testing",
|
2020-01-24 17:33:11 +03:00
|
|
|
"//libs-scala/postgresql-testing",
|
2020-01-23 18:59:01 +03:00
|
|
|
"//libs-scala/resources",
|
2021-08-26 14:43:12 +03:00
|
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
2020-03-24 22:41:19 +03:00
|
|
|
"@maven//:io_dropwizard_metrics_metrics_core",
|
2020-01-28 19:16:23 +03:00
|
|
|
"@maven//:org_flywaydb_flyway_core",
|
2021-08-13 02:19:35 +03:00
|
|
|
"@maven//:org_scalatest_scalatest_compatible",
|
2020-01-16 15:02:16 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
[
|
|
|
|
(
|
|
|
|
da_scala_binary(
|
|
|
|
name = "conformance-test-{}-bin".format(db["name"]),
|
|
|
|
main_class = db.get("conformance_test_server_main", "com.daml.ledger.on.sql.Main"),
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
runtime_deps = db.get("runtime_deps", []),
|
|
|
|
deps = [
|
|
|
|
":ledger-on-sql",
|
2020-01-24 17:33:11 +03:00
|
|
|
":ledger-on-sql-test-lib",
|
2020-01-16 15:02:16 +03:00
|
|
|
],
|
|
|
|
),
|
2020-11-23 21:09:39 +03:00
|
|
|
conformance_test(
|
2021-09-14 15:00:30 +03:00
|
|
|
name = "conformance-test-{}".format(db["name"]),
|
|
|
|
lf_versions = [
|
|
|
|
"default",
|
|
|
|
"latest",
|
|
|
|
"preview",
|
|
|
|
],
|
2020-11-23 21:09:39 +03:00
|
|
|
ports = [6865],
|
|
|
|
server = ":conformance-test-{}-bin".format(db["name"]),
|
|
|
|
server_args = [
|
|
|
|
"--contract-id-seeding=testing-weak",
|
|
|
|
"--participant participant-id=conformance-test,port=6865",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--max-deduplication-duration=PT5S",
|
2020-11-23 21:09:39 +03:00
|
|
|
] + db.get("conformance_test_server_args", []),
|
|
|
|
tags = db.get("conformance_test_tags", []),
|
|
|
|
test_tool_args = db.get("conformance_test_tool_args", []) + [
|
|
|
|
"--verbose",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=ParticipantPruningIT",
|
|
|
|
"--additional=MultiPartySubmissionIT",
|
|
|
|
"--additional=KVCommandDeduplicationIT",
|
|
|
|
"--exclude=CommandDeduplicationIT", # It's a KV ledger so it needs the KV variant
|
2021-08-26 11:45:01 +03:00
|
|
|
# Disable tests targeting only append-only schema functionality
|
2021-09-06 14:50:54 +03:00
|
|
|
"--exclude=ParticipantPruningIT:PRLocalAndNonLocalRetroactiveDivulgences,ParticipantPruningIT:PRRetroactiveDivulgences,ParticipantPruningIT:PRImmediateAndRetroactiveDivulgence",
|
2020-11-23 21:09:39 +03:00
|
|
|
],
|
|
|
|
),
|
2020-04-06 19:01:10 +03:00
|
|
|
conformance_test(
|
|
|
|
name = "benchmark-performance-envelope-{}".format(db["name"]),
|
|
|
|
ports = [6865],
|
|
|
|
server = ":conformance-test-{}-bin".format(db["name"]),
|
|
|
|
server_args = [
|
|
|
|
"--contract-id-seeding=testing-weak",
|
|
|
|
"--participant participant-id=example,port=6865",
|
|
|
|
] + db.get("conformance_test_server_args", []),
|
|
|
|
tags = db.get("benchmark_performance_envelope_tags", []),
|
|
|
|
test_tool_args = db.get("benchmark_performance_envelope_tags", []) + [
|
|
|
|
"--verbose",
|
2020-07-28 21:24:46 +03:00
|
|
|
"--perf-tests=PerformanceEnvelope.Throughput.TwentyOPS",
|
|
|
|
"--perf-tests=PerformanceEnvelope.Latency.1000ms",
|
|
|
|
"--perf-tests=PerformanceEnvelope.TransactionSize.1000KB",
|
2020-04-06 19:01:10 +03:00
|
|
|
],
|
|
|
|
),
|
2020-01-16 15:02:16 +03:00
|
|
|
)
|
|
|
|
for db in supported_databases
|
|
|
|
]
|
2021-04-19 22:12:28 +03:00
|
|
|
|
2021-06-29 01:51:48 +03:00
|
|
|
da_scala_binary(
|
|
|
|
name = "conformance-test-oracle-bin",
|
|
|
|
main_class = "com.daml.ledger.on.sql.MainWithEphemeralOracleUser",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
runtime_deps = [
|
|
|
|
"@maven//:com_oracle_database_jdbc_ojdbc8",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":ledger-on-sql",
|
|
|
|
":ledger-on-sql-test-lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-04-19 22:12:28 +03:00
|
|
|
conformance_test(
|
2021-06-17 16:34:25 +03:00
|
|
|
name = "conformance-test-append-only-postgres",
|
2021-04-19 22:12:28 +03:00
|
|
|
ports = [6865],
|
|
|
|
server = ":conformance-test-postgresql-bin",
|
|
|
|
server_args = [
|
|
|
|
"--contract-id-seeding=testing-weak",
|
2021-05-28 18:33:38 +03:00
|
|
|
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1",
|
2021-08-03 13:09:11 +03:00
|
|
|
"--index-append-only-schema",
|
|
|
|
"--mutable-contract-state-cache",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--max-deduplication-duration=PT5S",
|
2021-04-19 22:12:28 +03:00
|
|
|
],
|
|
|
|
tags = [],
|
|
|
|
test_tool_args = [
|
|
|
|
"--verbose",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyCommandDeduplicationParallelIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandService",
|
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandSubmissionService",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyKVCommandDeduplicationIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=ParticipantPruningIT",
|
|
|
|
"--additional=MultiPartySubmissionIT",
|
2021-09-08 13:27:07 +03:00
|
|
|
"--exclude=CommandDeduplicationIT", # It's a KV ledger so it needs the KV variant
|
2021-09-14 15:00:30 +03:00
|
|
|
# Disable tests targeting only multi-participant setups
|
|
|
|
"--exclude=ParticipantPruningIT:PRImmediateAndRetroactiveDivulgence",
|
2021-04-19 22:12:28 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-06-17 16:34:25 +03:00
|
|
|
conformance_test(
|
|
|
|
name = "conformance-test-append-only-h2",
|
|
|
|
ports = [6865],
|
|
|
|
server = ":conformance-test-h2-memory-bin",
|
|
|
|
server_args = [
|
|
|
|
"--contract-id-seeding=testing-weak",
|
|
|
|
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1",
|
2021-08-03 13:09:11 +03:00
|
|
|
"--index-append-only-schema",
|
|
|
|
"--mutable-contract-state-cache",
|
2021-06-17 16:34:25 +03:00
|
|
|
"--jdbc-url=jdbc:h2:mem:daml-on-sql-conformance-test",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--max-deduplication-duration=PT5S",
|
2021-06-17 16:34:25 +03:00
|
|
|
],
|
|
|
|
tags = [],
|
|
|
|
test_tool_args = [
|
|
|
|
"--verbose",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyCommandDeduplicationParallelIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandService",
|
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandSubmissionService",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyKVCommandDeduplicationIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=ParticipantPruningIT",
|
|
|
|
"--additional=MultiPartySubmissionIT",
|
2021-09-08 13:27:07 +03:00
|
|
|
"--exclude=CommandDeduplicationIT", # It's a KV ledger so it needs the KV variant
|
2021-09-14 15:00:30 +03:00
|
|
|
# Disable tests targeting only multi-participant setups
|
|
|
|
"--exclude=ParticipantPruningIT:PRImmediateAndRetroactiveDivulgence",
|
2021-06-17 16:34:25 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-06-29 01:51:48 +03:00
|
|
|
conformance_test(
|
|
|
|
name = "conformance-test-append-only-oracle",
|
|
|
|
ports = [6865],
|
|
|
|
server = ":conformance-test-oracle-bin",
|
2021-09-09 10:56:14 +03:00
|
|
|
server_args = [
|
|
|
|
"--contract-id-seeding=testing-weak",
|
|
|
|
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1",
|
|
|
|
"--index-append-only-schema",
|
|
|
|
"--mutable-contract-state-cache",
|
2021-09-13 16:48:31 +03:00
|
|
|
"--max-deduplication-duration=PT5S",
|
2021-09-09 10:56:14 +03:00
|
|
|
],
|
|
|
|
tags = [] if oracle_testing else ["manual"],
|
|
|
|
test_tool_args = [
|
|
|
|
"--verbose",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyCommandDeduplicationParallelIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandService",
|
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandSubmissionService",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyKVCommandDeduplicationIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=ParticipantPruningIT",
|
|
|
|
"--additional=MultiPartySubmissionIT",
|
|
|
|
"--exclude=CommandDeduplicationIT", # It's a KV ledger so it needs the KV variant
|
|
|
|
# Disable tests targeting only multi-participant setups
|
|
|
|
"--exclude=ParticipantPruningIT:PRImmediateAndRetroactiveDivulgence",
|
2021-09-09 10:56:14 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-06-29 01:51:48 +03:00
|
|
|
conformance_test(
|
|
|
|
name = "conformance-test-oracle",
|
|
|
|
ports = [6865],
|
|
|
|
server = ":conformance-test-oracle-bin",
|
|
|
|
server_args = [
|
|
|
|
"--contract-id-seeding=testing-weak",
|
|
|
|
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--max-deduplication-duration=PT5S",
|
2021-06-29 01:51:48 +03:00
|
|
|
],
|
|
|
|
tags = [] if oracle_testing else ["manual"],
|
|
|
|
test_tool_args = [
|
|
|
|
"--verbose",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=ParticipantPruningIT",
|
|
|
|
"--additional=MultiPartySubmissionIT",
|
|
|
|
"--additional=KVCommandDeduplicationIT",
|
2021-09-08 13:27:07 +03:00
|
|
|
"--exclude=CommandDeduplicationIT", # It's a KV ledger so it needs the KV variant
|
2021-09-14 15:00:30 +03:00
|
|
|
# Disable tests targeting only append-only schema functionality
|
|
|
|
"--exclude=ParticipantPruningIT:PRLocalAndNonLocalRetroactiveDivulgences,ParticipantPruningIT:PRRetroactiveDivulgences,ParticipantPruningIT:PRImmediateAndRetroactiveDivulgence",
|
2021-06-29 01:51:48 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-06-07 12:21:12 +03:00
|
|
|
conformance_test(
|
2021-07-15 00:10:12 +03:00
|
|
|
name = "conformance-test-append-only-in-memory-fan-out-postgres",
|
2021-06-07 12:21:12 +03:00
|
|
|
ports = [6865],
|
|
|
|
server = ":conformance-test-postgresql-bin",
|
|
|
|
server_args = [
|
|
|
|
"--contract-id-seeding=testing-weak",
|
2021-06-15 17:29:53 +03:00
|
|
|
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1,ledger-api-transactions-buffer-max-size=10",
|
2021-08-03 13:09:11 +03:00
|
|
|
"--index-append-only-schema",
|
|
|
|
"--mutable-contract-state-cache",
|
2021-06-07 12:21:12 +03:00
|
|
|
"--buffered-ledger-api-streams-unsafe",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--max-deduplication-duration=PT5S",
|
2021-06-07 12:21:12 +03:00
|
|
|
],
|
|
|
|
tags = [],
|
|
|
|
test_tool_args = [
|
|
|
|
"--verbose",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyCommandDeduplicationParallelIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandService",
|
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandSubmissionService",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyKVCommandDeduplicationIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=ParticipantPruningIT",
|
|
|
|
"--additional=MultiPartySubmissionIT",
|
2021-09-08 13:27:07 +03:00
|
|
|
"--exclude=CommandDeduplicationIT", # It's a KV ledger so it needs the KV variant
|
2021-08-31 23:19:08 +03:00
|
|
|
# Disable tests targeting only multi-participant setups
|
2021-09-06 14:50:54 +03:00
|
|
|
"--exclude=ParticipantPruningIT:PRImmediateAndRetroactiveDivulgence",
|
2021-06-17 16:34:25 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-06-29 01:51:48 +03:00
|
|
|
conformance_test(
|
2021-09-14 15:00:30 +03:00
|
|
|
name = "conformance-test-append-only-in-memory-fan-out-oracle",
|
2021-06-29 01:51:48 +03:00
|
|
|
ports = [6865],
|
|
|
|
server = ":conformance-test-oracle-bin",
|
|
|
|
server_args = [
|
|
|
|
"--contract-id-seeding=testing-weak",
|
2021-07-15 00:10:12 +03:00
|
|
|
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1,ledger-api-transactions-buffer-max-size=10",
|
2021-08-03 13:09:11 +03:00
|
|
|
"--index-append-only-schema",
|
|
|
|
"--mutable-contract-state-cache",
|
2021-07-15 00:10:12 +03:00
|
|
|
"--buffered-ledger-api-streams-unsafe",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--max-deduplication-duration=PT5S",
|
2021-06-29 01:51:48 +03:00
|
|
|
],
|
|
|
|
tags = [] if oracle_testing else ["manual"],
|
|
|
|
test_tool_args = [
|
|
|
|
"--verbose",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandService",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyCommandDeduplicationParallelIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=AppendOnlyCompletionDeduplicationInfoITCommandSubmissionService",
|
2021-09-16 14:16:39 +03:00
|
|
|
"--additional=AppendOnlyKVCommandDeduplicationIT",
|
2021-09-14 15:00:30 +03:00
|
|
|
"--additional=ParticipantPruningIT",
|
|
|
|
"--additional=MultiPartySubmissionIT",
|
|
|
|
"--exclude=CommandDeduplicationIT", # It's a KV ledger so it needs the KV variant
|
2021-08-31 23:19:08 +03:00
|
|
|
# Disable tests targeting only multi-participant setups
|
2021-09-06 14:50:54 +03:00
|
|
|
"--exclude=ParticipantPruningIT:PRImmediateAndRetroactiveDivulgence",
|
2021-06-29 01:51:48 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-08-26 17:14:02 +03:00
|
|
|
conformance_test(
|
|
|
|
name = "conformance-test-contract-ids",
|
|
|
|
ports = [6865],
|
|
|
|
server = ":conformance-test-h2-memory-bin",
|
|
|
|
server_args = [
|
|
|
|
"--contract-id-seeding=testing-weak",
|
|
|
|
"--participant participant-id=conformance-test,port=6865,contract-state-cache-max-size=1,contract-key-state-cache-max-size=1",
|
|
|
|
"--jdbc-url=jdbc:h2:mem:daml-on-sql-conformance-test",
|
|
|
|
],
|
|
|
|
test_tool_args = [
|
|
|
|
"--verbose",
|
2021-08-31 19:17:29 +03:00
|
|
|
"--include=ContractIdIT:RejectV0,ContractIdIT:AcceptSuffixedV1,ContractIdIT:AcceptNonSuffixedV1",
|
2021-08-26 17:14:02 +03:00
|
|
|
],
|
|
|
|
)
|