daml/ledger/sandbox/BUILD.bazel

424 lines
14 KiB
Python
Raw Normal View History

# Copyright (c) 2020 The DAML Authors. All rights reserved.
2019-04-04 11:33:38 +03:00
# SPDX-License-Identifier: Apache-2.0
load("//rules_daml:daml.bzl", "daml_compile")
load("//bazel_tools:scala.bzl", "da_scala_binary", "da_scala_library", "da_scala_test_suite")
load("//bazel_tools:pom_file.bzl", "pom_file")
load("//ledger/ledger-api-test-tool:conformance.bzl", "server_conformance_test")
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
load("@io_bazel_rules_docker//java:image.bzl", "java_image")
load("@os_info//:os_info.bzl", "is_windows")
2019-04-04 11:33:38 +03:00
da_scala_library(
name = "sandbox",
srcs = glob(["src/main/scala/**/*.scala"]),
resources =
glob(
["src/main/resources/**/*"],
# Do not include logback.xml into the library: let the user
# of the sandbox-as-a-library decide how to log.
exclude = ["src/main/resources/logback.xml"],
) + [
"//:COMPONENT-VERSION",
],
tags = ["maven_coordinates=com.digitalasset.platform:sandbox:__VERSION__"],
visibility = [
"//visibility:public",
],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
"@maven//:ch_qos_logback_logback_core",
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
"@maven//:com_h2database_h2",
"@maven//:org_postgresql_postgresql",
],
deps = [
"//daml-lf/archive:daml_lf_archive_reader",
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
"//daml-lf/data",
"//daml-lf/engine",
"//daml-lf/interpreter",
"//daml-lf/language",
"//daml-lf/scenario-interpreter",
"//daml-lf/transaction",
"//daml-lf/transaction:transaction_java_proto",
"//daml-lf/transaction:value_java_proto",
"//language-support/scala/bindings",
"//ledger-api/rs-grpc-akka",
"//ledger-api/rs-grpc-bridge",
"//ledger-service/jwt",
"//ledger/ledger-api-akka",
"//ledger/ledger-api-auth",
"//ledger/ledger-api-client",
"//ledger/ledger-api-common",
"//ledger/ledger-api-domain",
"//ledger/ledger-api-health",
"//ledger/ledger-api-scala-logging",
"//ledger/ledger-api-scala-logging:ledger-api-scala-logging-base",
"//ledger/participant-state",
"//ledger/participant-state-index",
"//libs-scala/direct-execution-context",
"@maven//:ch_qos_logback_logback_classic",
"@maven//:ch_qos_logback_logback_core",
"@maven//:com_auth0_java_jwt",
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
"@maven//:com_github_scopt_scopt_2_12",
"@maven//:com_google_guava_guava",
"@maven//:com_typesafe_akka_akka_actor_2_12",
"@maven//:com_typesafe_akka_akka_stream_2_12",
"@maven//:com_typesafe_config",
"@maven//:com_typesafe_play_anorm_2_12",
"@maven//:com_typesafe_play_anorm_tokenizer_2_12",
"@maven//:com_typesafe_scala_logging_scala_logging_2_12",
"@maven//:com_zaxxer_HikariCP",
"@maven//:io_dropwizard_metrics_metrics_core",
"@maven//:io_dropwizard_metrics_metrics_jmx",
"@maven//:io_grpc_grpc_netty",
"@maven//:io_grpc_grpc_services",
"@maven//:io_netty_netty_common",
"@maven//:io_netty_netty_handler",
"@maven//:io_netty_netty_transport",
"@maven//:io_zipkin_brave_brave",
"@maven//:net_logstash_logback_logstash_logback_encoder",
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
"@maven//:org_flywaydb_flyway_core",
"@maven//:org_scala_lang_modules_scala_java8_compat_2_12",
"@maven//:org_scalaz_scalaz_core_2_12",
"@maven//:org_slf4j_slf4j_api",
],
)
da_scala_library(
name = "ledger-api-server",
srcs = glob(["src/main/scala/**/*.scala"]),
resources =
glob(
["src/main/resources/**/*"],
# Do not include logback.xml into the library: let the user
# of the sandbox-as-a-library decide how to log.
exclude = ["src/main/resources/logback.xml"],
) + [
"//:COMPONENT-VERSION",
],
tags = ["maven_coordinates=com.daml.ledger:ledger-api-server:__VERSION__"],
visibility = [
"//visibility:public",
],
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
"@maven//:ch_qos_logback_logback_core",
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
"@maven//:com_h2database_h2",
"@maven//:org_postgresql_postgresql",
],
deps = [
"//daml-lf/archive:daml_lf_archive_reader",
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
"//daml-lf/data",
"//daml-lf/engine",
"//daml-lf/interpreter",
"//daml-lf/language",
"//daml-lf/scenario-interpreter",
"//daml-lf/transaction",
"//daml-lf/transaction:transaction_java_proto",
"//daml-lf/transaction:value_java_proto",
"//language-support/scala/bindings",
"//ledger-api/rs-grpc-akka",
"//ledger-api/rs-grpc-bridge",
"//ledger-service/jwt",
"//ledger/ledger-api-akka",
"//ledger/ledger-api-auth",
"//ledger/ledger-api-client",
"//ledger/ledger-api-common",
"//ledger/ledger-api-domain",
"//ledger/ledger-api-health",
"//ledger/ledger-api-scala-logging",
"//ledger/ledger-api-scala-logging:ledger-api-scala-logging-base",
"//ledger/participant-state",
"//ledger/participant-state-index",
"//libs-scala/direct-execution-context",
"@maven//:ch_qos_logback_logback_classic",
"@maven//:ch_qos_logback_logback_core",
"@maven//:com_auth0_java_jwt",
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
"@maven//:com_github_scopt_scopt_2_12",
"@maven//:com_google_guava_guava",
"@maven//:com_typesafe_akka_akka_actor_2_12",
"@maven//:com_typesafe_akka_akka_stream_2_12",
"@maven//:com_typesafe_config",
"@maven//:com_typesafe_play_anorm_2_12",
"@maven//:com_typesafe_play_anorm_tokenizer_2_12",
"@maven//:com_typesafe_scala_logging_scala_logging_2_12",
"@maven//:com_zaxxer_HikariCP",
"@maven//:io_dropwizard_metrics_metrics_core",
"@maven//:io_dropwizard_metrics_metrics_jmx",
"@maven//:io_grpc_grpc_netty",
"@maven//:io_grpc_grpc_services",
"@maven//:io_netty_netty_common",
"@maven//:io_netty_netty_handler",
"@maven//:io_netty_netty_transport",
"@maven//:io_zipkin_brave_brave",
"@maven//:net_logstash_logback_logstash_logback_encoder",
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
"@maven//:org_flywaydb_flyway_core",
"@maven//:org_scala_lang_modules_scala_java8_compat_2_12",
"@maven//:org_scalaz_scalaz_core_2_12",
"@maven//:org_slf4j_slf4j_api",
],
2019-04-04 11:33:38 +03:00
)
da_scala_binary(
name = "sandbox-binary",
main_class = "com.digitalasset.platform.sandbox.SandboxMain",
resources = ["src/main/resources/logback.xml"],
visibility = ["//visibility:public"],
deps = [
":sandbox",
],
2019-04-04 11:33:38 +03:00
)
New Ledger API test tool (#2282) * New acceptance test tool prototype * Fix transaction filter helper * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308081386 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308082432 Moreover, creates specific helpers for test DAML code. * Move helpers from session to context Remove a circular dependency between session and context, and limits the usage of implicits. * Run tests with ledgers out of process * Prepare for drop in * Temporary timeout increase * Move bulk of the logic to the test runner * Have a map of tests for CLI integration * Timeout per-test, runner uses context, renaming * Allow usage of time service, integrate semantic tests * Integrate CLI SSL configuration * Integrate failure expectation CLI option * Integrate with failure output verbosity CLI option * Integrate with test listing and picking CLI options * Integrate with timeout scaling CLI option * Integrate with command TTL CLI option * Review CODEOWNERS * Drop previously unimplemented CLI parameters * Expand test todo list to encompass latest additions * Deduplicate some testing infrastructure, swap in new test tool * Remove unused rule * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311045444 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311051974 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311035287 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311055290 * WIP * Make gRPC thread factory spawn non-deamon threads * Remove debug prints, complete divulgence test (missing assertion messages) * Try to detect assertion failure line number * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311400695 * Remove TlsConfiguration duplicate, move original to commons * Make assertion more readable Co-Authored-By: Gerolf Seitz <gerolf.seitz@digitalasset.com> * Fix build errors introduced in previous commit - exclude time service tests from reference-v2 - add copyright header to TlsConfiguration * Complete divulgence test and address review comments Restores comments from original divulgence tests and strives to be as close to them as possible. - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311429169 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431156 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431913 * Delete old divulgence tests * Restore methods to fetch contracts by template identifier * Run conformance tests on in-memory sandbox * Run conformance tests on the persistent sandbox * Remove workflow identifier workaround * New contract keys test (#2452) * Set channel type for LedgerSession * Add ContractKeysIT * Run tests against reference-server v2 * Removed the old ContractKeysIT. However, ... ... I cannot remove ContractKeysChecks completely, because we have another test path for DARs created prior to DAML-LF 1.6, which doesn't have the submitter == maintainer restriction for contract keys. * Use codegen instead of custom code * Add missing copyright headers * Drop sandbox conformance test suite (seems to not work on Windows CI) * Make time simpler * Test tool tests to run only semantic tests * Make CI behave more consistently * Add missing files to run tests on Postrgres * Fix flaky divulgence test, introduce readable identifiers * Increase sandbox conformance tests timeout * Address https://github.com/digital-asset/daml/pull/2282#discussion_r312363246 * Reintroduce test resource extraction * Read semantic tests from the classpath rather than Bazel * Use codegen types for ContractKeys integration test allocateParty returns Primitive.Party and create and exercise also accept Primitive.Party. This way we don't have to keep a String and Primitive.Party representation around. * Bump timeout for sandbox conformance tests * Remove dependency on Bazel runfiles
2019-08-09 18:00:37 +03:00
da_scala_binary(
name = "sandbox-ephemeral-postgres",
data = [
"@postgresql_dev_env//:all",
],
New Ledger API test tool (#2282) * New acceptance test tool prototype * Fix transaction filter helper * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308081386 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308082432 Moreover, creates specific helpers for test DAML code. * Move helpers from session to context Remove a circular dependency between session and context, and limits the usage of implicits. * Run tests with ledgers out of process * Prepare for drop in * Temporary timeout increase * Move bulk of the logic to the test runner * Have a map of tests for CLI integration * Timeout per-test, runner uses context, renaming * Allow usage of time service, integrate semantic tests * Integrate CLI SSL configuration * Integrate failure expectation CLI option * Integrate with failure output verbosity CLI option * Integrate with test listing and picking CLI options * Integrate with timeout scaling CLI option * Integrate with command TTL CLI option * Review CODEOWNERS * Drop previously unimplemented CLI parameters * Expand test todo list to encompass latest additions * Deduplicate some testing infrastructure, swap in new test tool * Remove unused rule * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311045444 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311051974 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311035287 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311055290 * WIP * Make gRPC thread factory spawn non-deamon threads * Remove debug prints, complete divulgence test (missing assertion messages) * Try to detect assertion failure line number * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311400695 * Remove TlsConfiguration duplicate, move original to commons * Make assertion more readable Co-Authored-By: Gerolf Seitz <gerolf.seitz@digitalasset.com> * Fix build errors introduced in previous commit - exclude time service tests from reference-v2 - add copyright header to TlsConfiguration * Complete divulgence test and address review comments Restores comments from original divulgence tests and strives to be as close to them as possible. - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311429169 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431156 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431913 * Delete old divulgence tests * Restore methods to fetch contracts by template identifier * Run conformance tests on in-memory sandbox * Run conformance tests on the persistent sandbox * Remove workflow identifier workaround * New contract keys test (#2452) * Set channel type for LedgerSession * Add ContractKeysIT * Run tests against reference-server v2 * Removed the old ContractKeysIT. However, ... ... I cannot remove ContractKeysChecks completely, because we have another test path for DARs created prior to DAML-LF 1.6, which doesn't have the submitter == maintainer restriction for contract keys. * Use codegen instead of custom code * Add missing copyright headers * Drop sandbox conformance test suite (seems to not work on Windows CI) * Make time simpler * Test tool tests to run only semantic tests * Make CI behave more consistently * Add missing files to run tests on Postrgres * Fix flaky divulgence test, introduce readable identifiers * Increase sandbox conformance tests timeout * Address https://github.com/digital-asset/daml/pull/2282#discussion_r312363246 * Reintroduce test resource extraction * Read semantic tests from the classpath rather than Bazel * Use codegen types for ContractKeys integration test allocateParty returns Primitive.Party and create and exercise also accept Primitive.Party. This way we don't have to keep a String and Primitive.Party representation around. * Bump timeout for sandbox conformance tests * Remove dependency on Bazel runfiles
2019-08-09 18:00:37 +03:00
main_class = "com.digitalasset.platform.sandbox.persistence.EphemeralPostgresSandboxMain",
resources = ["src/main/resources/logback.xml"],
visibility = ["//visibility:public"],
deps = [
":sandbox",
":sandbox-scala-tests-lib",
],
)
2019-04-04 11:33:38 +03:00
genrule(
name = "sandbox-tarball",
srcs = [
":sandbox-binary_deploy.jar",
"//:component-version",
],
2019-04-04 11:33:38 +03:00
outs = ["sandbox-tarball.tar.gz"],
cmd = """
VERSION=$$(cat $(location //:component-version))
mkdir -p sandbox-tarball/sandbox
cp -L $(location :sandbox-binary_deploy.jar) sandbox-tarball/sandbox/sandbox-$$VERSION.jar
out=$$(realpath $@)
cd sandbox-tarball
tar zcf $$out sandbox
2019-04-04 11:33:38 +03:00
""",
visibility = ["//visibility:public"],
2019-04-04 11:33:38 +03:00
)
container_image(
name = "sandbox-image-base",
base = "@openjdk_base//image",
cmd = None,
directory = "/usr/bin",
files = [
"@com_github_grpc_ecosystem_grpc_health_probe_binary//file",
],
) if not is_windows else None
java_image(
name = "sandbox-image",
base = ":sandbox-image-base",
main_class = "com.digitalasset.platform.sandbox.SandboxMain",
resources = ["src/main/resources/logback.xml"],
visibility = ["//visibility:public"],
runtime_deps = [":sandbox"],
) if not is_windows else None
alias(
name = "Test-1.5.dar",
actual = ":historical-dars/Test-1.5.dar",
visibility = ["//visibility:public"],
)
2019-04-04 11:33:38 +03:00
#TODO: generate dynamic BuildInfo.scala
da_scala_library(
name = "sandbox-scala-tests-lib",
srcs = glob(["src/test/lib/**/*.scala"]),
visibility = ["//visibility:public"],
Remove unused dependencies to da_scala_library (#3938) * Inline all scala_library dependencies * Run //:buildifier-fix * TMP scala_library_suite --> scala_library * da_scala_library: Enable unused dependency checker * scala_library: Enable unused dependency checker * //daml-lf/data:data * //daml-lf/engine:engine * //ledger-api/rs-grpc-akka:rs-grpc-akka * //ledger/participant-state:participant-state * //ledger/ledger-api-client:ledger-api-client * //scala-protoc-plugins/scala-logging:scala-logging-lib * //ledger/ledger-api-scala-logging:ledger-api-scala-logging * //ledger/ledger-api-common:ledger-api-common * //ledger-service/utils:utils * //ledger-service/jwt:jwt * //ledger/ledger-api-auth:ledger-api-auth * //extractor:extractor * //daml-assistant/scala-daml-project-config:scala-daml-project-config * //language-support/codegen-common:codegen-common * //language-support/scala/codegen:codegen * //language-support/codegen-main:codegen-main-lib * //ledger-service/db-backend:db-backend * //ledger-service/http-json:http-json * //daml-lf/scenario-interpreter:scenario-interpreter * //ledger/sandbox:sandbox * //navigator/backend:navigator-library * //daml-assistant/daml-sdk:sdk-lib * //daml-lf/data-scalacheck:data-scalacheck * //daml-script/test:test-lib * //ledger/ledger-api-common:ledger-api-common-scala-tests-lib * //ledger/test-common:test-common * //ledger/sandbox:sandbox-scala-tests-lib * //extractor:extractor-scala-tests-lib * //language-support/java/bindings:bindings-java-tests-lib * //language-support/java/bindings-rxjava:bindings-java-tests-lib * //language-support/scala/bindings-akka-testing:bindings-akka-testing * //language-support/scala/codegen-testing:codegen-testing * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app * //language-support/scala/codegen-sample-app:daml-lf-codegen-sample-app-testing * //language-support/scala/codegen-testing:codegen-testing-testing * //ledger-api/sample-service:sample-service * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-lib * //ledger/ledger-api-test-tool:ledger-api-test-tool-tests * //ledger/participant-state/kvutils:kvutils * //ledger/sandbox:ledger-api-server * //ledger/sandbox-perf:sandbox-perf-lib * //navigator/backend:navigator-tests-library * UNDO scala_library_suite --> scala_library This reverts commit ab3eb1ae23139e2ec431ab4551fbb0371e0354e1. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-06 20:14:21 +03:00
runtime_deps = [
"@maven//:com_h2database_h2",
"@maven//:com_typesafe_akka_akka_slf4j_2_12",
"@maven//:org_postgresql_postgresql",
],
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
deps = [
":sandbox",
"//bazel_tools/runfiles:scala_runfiles",
"//daml-lf/archive:daml_lf_archive_reader",
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
"//daml-lf/data",
"//language-support/scala/bindings",
"//ledger-api/rs-grpc-akka",
"//ledger-api/rs-grpc-bridge",
"//ledger-api/testing-utils",
"//ledger-service/jwt",
"//ledger/ledger-api-auth",
"//ledger/ledger-api-auth-client",
"//ledger/ledger-api-client",
"//ledger/ledger-api-common",
"//ledger/ledger-api-domain",
"//ledger/ledger-api-health",
"//ledger/participant-state",
"//ledger/test-common",
"//libs-scala/direct-execution-context",
"//libs-scala/grpc-utils",
"//libs-scala/timer-utils",
"@maven//:ch_qos_logback_logback_classic",
"@maven//:ch_qos_logback_logback_core",
"@maven//:com_auth0_java_jwt",
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
"@maven//:com_google_guava_guava",
"@maven//:com_typesafe_akka_akka_actor_2_12",
"@maven//:com_typesafe_akka_akka_stream_2_12",
"@maven//:com_typesafe_config",
"@maven//:com_typesafe_scala_logging_scala_logging_2_12",
"@maven//:commons_io_commons_io",
"@maven//:io_dropwizard_metrics_metrics_core",
"@maven//:io_grpc_grpc_netty",
"@maven//:io_netty_netty_common",
"@maven//:io_netty_netty_transport",
"@maven//:org_scalactic_scalactic_2_12",
"@maven//:org_scalatest_scalatest_2_12",
"@maven//:org_scalaz_scalaz_core_2_12",
"@maven//:org_slf4j_slf4j_api",
],
2019-04-04 11:33:38 +03:00
)
da_scala_test_suite(
name = "sandbox-scala-tests",
srcs = glob(
["src/test/suite/**/*.scala"],
2019-04-04 11:33:38 +03:00
),
data = [
"//ledger/test-common:Test-stable.dar",
"@postgresql_dev_env//:all",
],
resources = glob(["src/test/resources/**/*"]),
2019-04-04 11:33:38 +03:00
deps = [
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
":sandbox",
2019-04-04 11:33:38 +03:00
":sandbox-scala-tests-lib",
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
"//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/transaction",
"//language-support/scala/bindings",
"//ledger-api/rs-grpc-akka",
"//ledger-api/rs-grpc-bridge",
"//ledger-api/testing-utils",
"//ledger/ledger-api-auth",
"//ledger/ledger-api-client",
"//ledger/ledger-api-common",
"//ledger/ledger-api-domain",
"//ledger/ledger-api-health",
"//ledger/participant-state",
"//ledger/participant-state-index",
"//ledger/test-common",
"//libs-scala/direct-execution-context",
"//libs-scala/grpc-utils",
"//libs-scala/timer-utils",
"@maven//:ch_qos_logback_logback_classic",
"@maven//:ch_qos_logback_logback_core",
"@maven//:com_chuusai_shapeless_2_12",
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
"@maven//:com_typesafe_akka_akka_actor_2_12",
"@maven//:com_typesafe_akka_akka_stream_2_12",
"@maven//:com_typesafe_akka_akka_stream_testkit_2_12",
"@maven//:com_typesafe_akka_akka_testkit_2_12",
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
"@maven//:com_typesafe_config",
"@maven//:commons_io_commons_io",
"@maven//:io_circe_circe_core_2_12",
"@maven//:io_circe_circe_generic_2_12",
"@maven//:io_circe_circe_parser_2_12",
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
"@maven//:io_dropwizard_metrics_metrics_core",
"@maven//:io_grpc_grpc_services",
"@maven//:io_netty_netty_handler",
"@maven//:net_logstash_logback_logstash_logback_encoder",
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
"@maven//:org_awaitility_awaitility",
"@maven//:org_flywaydb_flyway_core",
"@maven//:org_mockito_mockito_core",
"@maven//:org_mockito_mockito_scala_2_12",
"@maven//:org_reactivestreams_reactive_streams",
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
"@maven//:org_scalactic_scalactic_2_12",
"@maven//:org_scalatest_scalatest_2_12",
"@maven//:org_scalaz_scalaz_core_2_12",
"@maven//:org_slf4j_slf4j_api",
"@maven//:org_typelevel_cats_core_2_12",
"@maven//:org_typelevel_cats_kernel_2_12",
Remove unused dependencies to da_scala_test(_suite) (#3925) * Remove unused scala.bzl imports * override_targets org.scalatest.scalatest_2.12 Otherwise, rules_scala implicitly adds a different version to scala_test than other packages transitively depending on scalatest. This causes unused dependency checker to raise an error. * Handle rules_scala scalatest in pom_file.bzl * Inline all scala_test dependencies So that `unused_dependency_checker = "error"` can be applied to them. * Run //:buildifier-fix * TMP scala_test_suite --> scala_test * da_scala_test: Enable unused dependency checker * //navigator/backend:navigator-scala-tests * //ledger/sandbox:sandbox-scala-tests * //ledger/participant-state/kvutils:kvutils-tests * //ledger/participant-state:participant-state-tests * //ledger/ledger-api-scala-logging:ledger-api-scala-logging-test * //ledger/ledger-api-common:ledger-api-common-scala-tests * //ledger/ledger-api-client:ledger-api-client-tests * //ledger/ledger-api-auth:ledger-api-auth-scala-tests * //ledger-service/lf-value-json:tests * //ledger-service/jwt:tests * //ledger-service/http-json:tests * //ledger-api/rs-grpc-akka:rs-grpc-akka-tests * //language-support/scala/codegen-sample-app:tests * //language-support/scala/codegen-sample-app:ScalaCodeGenIT * //language-support/scala/codegen:tests * //language-support/scala/bindings-akka:tests * //language-support/java/codegen:test * //language-support/java/codegen:ledger-tests * //language-support/java/bindings-rxjava:bindings-java-tests * //language-support/codegen-common:test * //extractor:extractor-scala-tests * //daml-lf/scenario-interpreter:scenario-interpreter_tests * //daml-lf/language:language-test * //daml-lf/interface:tests * //daml-lf/engine:tests * //daml-lf/encoder:tests * //daml-lf/archive:daml_lf_archive_reader_tests * //daml-assistant/scala-daml-project-config:scala-daml-project-config-tests * UNDO scala_test_suite --> scala_test This reverts commit 13ed47ba725e944533ca1157a070cb8dc30569ac. Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2019-12-30 16:49:59 +03:00
],
2019-04-04 11:33:38 +03:00
)
New Ledger API test tool (#2282) * New acceptance test tool prototype * Fix transaction filter helper * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308081386 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308082432 Moreover, creates specific helpers for test DAML code. * Move helpers from session to context Remove a circular dependency between session and context, and limits the usage of implicits. * Run tests with ledgers out of process * Prepare for drop in * Temporary timeout increase * Move bulk of the logic to the test runner * Have a map of tests for CLI integration * Timeout per-test, runner uses context, renaming * Allow usage of time service, integrate semantic tests * Integrate CLI SSL configuration * Integrate failure expectation CLI option * Integrate with failure output verbosity CLI option * Integrate with test listing and picking CLI options * Integrate with timeout scaling CLI option * Integrate with command TTL CLI option * Review CODEOWNERS * Drop previously unimplemented CLI parameters * Expand test todo list to encompass latest additions * Deduplicate some testing infrastructure, swap in new test tool * Remove unused rule * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311045444 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311051974 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311035287 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311055290 * WIP * Make gRPC thread factory spawn non-deamon threads * Remove debug prints, complete divulgence test (missing assertion messages) * Try to detect assertion failure line number * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311400695 * Remove TlsConfiguration duplicate, move original to commons * Make assertion more readable Co-Authored-By: Gerolf Seitz <gerolf.seitz@digitalasset.com> * Fix build errors introduced in previous commit - exclude time service tests from reference-v2 - add copyright header to TlsConfiguration * Complete divulgence test and address review comments Restores comments from original divulgence tests and strives to be as close to them as possible. - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311429169 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431156 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431913 * Delete old divulgence tests * Restore methods to fetch contracts by template identifier * Run conformance tests on in-memory sandbox * Run conformance tests on the persistent sandbox * Remove workflow identifier workaround * New contract keys test (#2452) * Set channel type for LedgerSession * Add ContractKeysIT * Run tests against reference-server v2 * Removed the old ContractKeysIT. However, ... ... I cannot remove ContractKeysChecks completely, because we have another test path for DARs created prior to DAML-LF 1.6, which doesn't have the submitter == maintainer restriction for contract keys. * Use codegen instead of custom code * Add missing copyright headers * Drop sandbox conformance test suite (seems to not work on Windows CI) * Make time simpler * Test tool tests to run only semantic tests * Make CI behave more consistently * Add missing files to run tests on Postrgres * Fix flaky divulgence test, introduce readable identifiers * Increase sandbox conformance tests timeout * Address https://github.com/digital-asset/daml/pull/2282#discussion_r312363246 * Reintroduce test resource extraction * Read semantic tests from the classpath rather than Bazel * Use codegen types for ContractKeys integration test allocateParty returns Primitive.Party and create and exercise also accept Primitive.Party. This way we don't have to keep a String and Primitive.Party representation around. * Bump timeout for sandbox conformance tests * Remove dependency on Bazel runfiles
2019-08-09 18:00:37 +03:00
SERVERS = {
"memory": {
"binary": ":sandbox-binary",
"server_args": [
"--port=6865",
"--eager-package-loading",
],
},
"h2database": {
"binary": ":sandbox-binary",
"server_args": [
"--port=6865",
"--eager-package-loading",
# "db_close_delay=-1" is needed so that the in-memory database is not closed
# (and therefore lost) after the flyway migration
"--sql-backend-jdbcurl=jdbc:h2:mem:static_time;db_close_delay=-1",
],
},
"postgres": {
"binary": ":sandbox-ephemeral-postgres",
"server_args": [
"--port=6865",
"--eager-package-loading",
],
},
}
server_conformance_test(
New Ledger API test tool (#2282) * New acceptance test tool prototype * Fix transaction filter helper * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308081386 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308082432 Moreover, creates specific helpers for test DAML code. * Move helpers from session to context Remove a circular dependency between session and context, and limits the usage of implicits. * Run tests with ledgers out of process * Prepare for drop in * Temporary timeout increase * Move bulk of the logic to the test runner * Have a map of tests for CLI integration * Timeout per-test, runner uses context, renaming * Allow usage of time service, integrate semantic tests * Integrate CLI SSL configuration * Integrate failure expectation CLI option * Integrate with failure output verbosity CLI option * Integrate with test listing and picking CLI options * Integrate with timeout scaling CLI option * Integrate with command TTL CLI option * Review CODEOWNERS * Drop previously unimplemented CLI parameters * Expand test todo list to encompass latest additions * Deduplicate some testing infrastructure, swap in new test tool * Remove unused rule * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311045444 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311051974 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311035287 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311055290 * WIP * Make gRPC thread factory spawn non-deamon threads * Remove debug prints, complete divulgence test (missing assertion messages) * Try to detect assertion failure line number * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311400695 * Remove TlsConfiguration duplicate, move original to commons * Make assertion more readable Co-Authored-By: Gerolf Seitz <gerolf.seitz@digitalasset.com> * Fix build errors introduced in previous commit - exclude time service tests from reference-v2 - add copyright header to TlsConfiguration * Complete divulgence test and address review comments Restores comments from original divulgence tests and strives to be as close to them as possible. - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311429169 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431156 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431913 * Delete old divulgence tests * Restore methods to fetch contracts by template identifier * Run conformance tests on in-memory sandbox * Run conformance tests on the persistent sandbox * Remove workflow identifier workaround * New contract keys test (#2452) * Set channel type for LedgerSession * Add ContractKeysIT * Run tests against reference-server v2 * Removed the old ContractKeysIT. However, ... ... I cannot remove ContractKeysChecks completely, because we have another test path for DARs created prior to DAML-LF 1.6, which doesn't have the submitter == maintainer restriction for contract keys. * Use codegen instead of custom code * Add missing copyright headers * Drop sandbox conformance test suite (seems to not work on Windows CI) * Make time simpler * Test tool tests to run only semantic tests * Make CI behave more consistently * Add missing files to run tests on Postrgres * Fix flaky divulgence test, introduce readable identifiers * Increase sandbox conformance tests timeout * Address https://github.com/digital-asset/daml/pull/2282#discussion_r312363246 * Reintroduce test resource extraction * Read semantic tests from the classpath rather than Bazel * Use codegen types for ContractKeys integration test allocateParty returns Primitive.Party and create and exercise also accept Primitive.Party. This way we don't have to keep a String and Primitive.Party representation around. * Bump timeout for sandbox conformance tests * Remove dependency on Bazel runfiles
2019-08-09 18:00:37 +03:00
name = "conformance-test-static-time",
server_args = [
"--static-time",
],
servers = SERVERS,
test_tool_args = [
New Ledger API test tool (#2282) * New acceptance test tool prototype * Fix transaction filter helper * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308081386 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308082432 Moreover, creates specific helpers for test DAML code. * Move helpers from session to context Remove a circular dependency between session and context, and limits the usage of implicits. * Run tests with ledgers out of process * Prepare for drop in * Temporary timeout increase * Move bulk of the logic to the test runner * Have a map of tests for CLI integration * Timeout per-test, runner uses context, renaming * Allow usage of time service, integrate semantic tests * Integrate CLI SSL configuration * Integrate failure expectation CLI option * Integrate with failure output verbosity CLI option * Integrate with test listing and picking CLI options * Integrate with timeout scaling CLI option * Integrate with command TTL CLI option * Review CODEOWNERS * Drop previously unimplemented CLI parameters * Expand test todo list to encompass latest additions * Deduplicate some testing infrastructure, swap in new test tool * Remove unused rule * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311045444 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311051974 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311035287 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311055290 * WIP * Make gRPC thread factory spawn non-deamon threads * Remove debug prints, complete divulgence test (missing assertion messages) * Try to detect assertion failure line number * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311400695 * Remove TlsConfiguration duplicate, move original to commons * Make assertion more readable Co-Authored-By: Gerolf Seitz <gerolf.seitz@digitalasset.com> * Fix build errors introduced in previous commit - exclude time service tests from reference-v2 - add copyright header to TlsConfiguration * Complete divulgence test and address review comments Restores comments from original divulgence tests and strives to be as close to them as possible. - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311429169 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431156 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431913 * Delete old divulgence tests * Restore methods to fetch contracts by template identifier * Run conformance tests on in-memory sandbox * Run conformance tests on the persistent sandbox * Remove workflow identifier workaround * New contract keys test (#2452) * Set channel type for LedgerSession * Add ContractKeysIT * Run tests against reference-server v2 * Removed the old ContractKeysIT. However, ... ... I cannot remove ContractKeysChecks completely, because we have another test path for DARs created prior to DAML-LF 1.6, which doesn't have the submitter == maintainer restriction for contract keys. * Use codegen instead of custom code * Add missing copyright headers * Drop sandbox conformance test suite (seems to not work on Windows CI) * Make time simpler * Test tool tests to run only semantic tests * Make CI behave more consistently * Add missing files to run tests on Postrgres * Fix flaky divulgence test, introduce readable identifiers * Increase sandbox conformance tests timeout * Address https://github.com/digital-asset/daml/pull/2282#discussion_r312363246 * Reintroduce test resource extraction * Read semantic tests from the classpath rather than Bazel * Use codegen types for ContractKeys integration test allocateParty returns Primitive.Party and create and exercise also accept Primitive.Party. This way we don't have to keep a String and Primitive.Party representation around. * Bump timeout for sandbox conformance tests * Remove dependency on Bazel runfiles
2019-08-09 18:00:37 +03:00
"--all-tests",
"--exclude=LotsOfPartiesIT",
"--exclude=ConfigManagementServiceIT",
New Ledger API test tool (#2282) * New acceptance test tool prototype * Fix transaction filter helper * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308081386 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308082432 Moreover, creates specific helpers for test DAML code. * Move helpers from session to context Remove a circular dependency between session and context, and limits the usage of implicits. * Run tests with ledgers out of process * Prepare for drop in * Temporary timeout increase * Move bulk of the logic to the test runner * Have a map of tests for CLI integration * Timeout per-test, runner uses context, renaming * Allow usage of time service, integrate semantic tests * Integrate CLI SSL configuration * Integrate failure expectation CLI option * Integrate with failure output verbosity CLI option * Integrate with test listing and picking CLI options * Integrate with timeout scaling CLI option * Integrate with command TTL CLI option * Review CODEOWNERS * Drop previously unimplemented CLI parameters * Expand test todo list to encompass latest additions * Deduplicate some testing infrastructure, swap in new test tool * Remove unused rule * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311045444 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311051974 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311035287 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311055290 * WIP * Make gRPC thread factory spawn non-deamon threads * Remove debug prints, complete divulgence test (missing assertion messages) * Try to detect assertion failure line number * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311400695 * Remove TlsConfiguration duplicate, move original to commons * Make assertion more readable Co-Authored-By: Gerolf Seitz <gerolf.seitz@digitalasset.com> * Fix build errors introduced in previous commit - exclude time service tests from reference-v2 - add copyright header to TlsConfiguration * Complete divulgence test and address review comments Restores comments from original divulgence tests and strives to be as close to them as possible. - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311429169 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431156 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431913 * Delete old divulgence tests * Restore methods to fetch contracts by template identifier * Run conformance tests on in-memory sandbox * Run conformance tests on the persistent sandbox * Remove workflow identifier workaround * New contract keys test (#2452) * Set channel type for LedgerSession * Add ContractKeysIT * Run tests against reference-server v2 * Removed the old ContractKeysIT. However, ... ... I cannot remove ContractKeysChecks completely, because we have another test path for DARs created prior to DAML-LF 1.6, which doesn't have the submitter == maintainer restriction for contract keys. * Use codegen instead of custom code * Add missing copyright headers * Drop sandbox conformance test suite (seems to not work on Windows CI) * Make time simpler * Test tool tests to run only semantic tests * Make CI behave more consistently * Add missing files to run tests on Postrgres * Fix flaky divulgence test, introduce readable identifiers * Increase sandbox conformance tests timeout * Address https://github.com/digital-asset/daml/pull/2282#discussion_r312363246 * Reintroduce test resource extraction * Read semantic tests from the classpath rather than Bazel * Use codegen types for ContractKeys integration test allocateParty returns Primitive.Party and create and exercise also accept Primitive.Party. This way we don't have to keep a String and Primitive.Party representation around. * Bump timeout for sandbox conformance tests * Remove dependency on Bazel runfiles
2019-08-09 18:00:37 +03:00
],
)
server_conformance_test(
name = "conformance-test-lots-of-parties",
flaky = True,
New Ledger API test tool (#2282) * New acceptance test tool prototype * Fix transaction filter helper * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308081386 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308082432 Moreover, creates specific helpers for test DAML code. * Move helpers from session to context Remove a circular dependency between session and context, and limits the usage of implicits. * Run tests with ledgers out of process * Prepare for drop in * Temporary timeout increase * Move bulk of the logic to the test runner * Have a map of tests for CLI integration * Timeout per-test, runner uses context, renaming * Allow usage of time service, integrate semantic tests * Integrate CLI SSL configuration * Integrate failure expectation CLI option * Integrate with failure output verbosity CLI option * Integrate with test listing and picking CLI options * Integrate with timeout scaling CLI option * Integrate with command TTL CLI option * Review CODEOWNERS * Drop previously unimplemented CLI parameters * Expand test todo list to encompass latest additions * Deduplicate some testing infrastructure, swap in new test tool * Remove unused rule * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311045444 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311051974 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311035287 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311055290 * WIP * Make gRPC thread factory spawn non-deamon threads * Remove debug prints, complete divulgence test (missing assertion messages) * Try to detect assertion failure line number * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311400695 * Remove TlsConfiguration duplicate, move original to commons * Make assertion more readable Co-Authored-By: Gerolf Seitz <gerolf.seitz@digitalasset.com> * Fix build errors introduced in previous commit - exclude time service tests from reference-v2 - add copyright header to TlsConfiguration * Complete divulgence test and address review comments Restores comments from original divulgence tests and strives to be as close to them as possible. - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311429169 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431156 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431913 * Delete old divulgence tests * Restore methods to fetch contracts by template identifier * Run conformance tests on in-memory sandbox * Run conformance tests on the persistent sandbox * Remove workflow identifier workaround * New contract keys test (#2452) * Set channel type for LedgerSession * Add ContractKeysIT * Run tests against reference-server v2 * Removed the old ContractKeysIT. However, ... ... I cannot remove ContractKeysChecks completely, because we have another test path for DARs created prior to DAML-LF 1.6, which doesn't have the submitter == maintainer restriction for contract keys. * Use codegen instead of custom code * Add missing copyright headers * Drop sandbox conformance test suite (seems to not work on Windows CI) * Make time simpler * Test tool tests to run only semantic tests * Make CI behave more consistently * Add missing files to run tests on Postrgres * Fix flaky divulgence test, introduce readable identifiers * Increase sandbox conformance tests timeout * Address https://github.com/digital-asset/daml/pull/2282#discussion_r312363246 * Reintroduce test resource extraction * Read semantic tests from the classpath rather than Bazel * Use codegen types for ContractKeys integration test allocateParty returns Primitive.Party and create and exercise also accept Primitive.Party. This way we don't have to keep a String and Primitive.Party representation around. * Bump timeout for sandbox conformance tests * Remove dependency on Bazel runfiles
2019-08-09 18:00:37 +03:00
server_args = [
"--static-time",
],
servers = SERVERS,
test_tool_args = [
"--include=LotsOfPartiesIT",
],
)
server_conformance_test(
name = "conformance-test-wall-clock",
server_args = [
"--wall-clock-time",
],
servers = SERVERS,
test_tool_args = [
New Ledger API test tool (#2282) * New acceptance test tool prototype * Fix transaction filter helper * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308081386 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308082432 Moreover, creates specific helpers for test DAML code. * Move helpers from session to context Remove a circular dependency between session and context, and limits the usage of implicits. * Run tests with ledgers out of process * Prepare for drop in * Temporary timeout increase * Move bulk of the logic to the test runner * Have a map of tests for CLI integration * Timeout per-test, runner uses context, renaming * Allow usage of time service, integrate semantic tests * Integrate CLI SSL configuration * Integrate failure expectation CLI option * Integrate with failure output verbosity CLI option * Integrate with test listing and picking CLI options * Integrate with timeout scaling CLI option * Integrate with command TTL CLI option * Review CODEOWNERS * Drop previously unimplemented CLI parameters * Expand test todo list to encompass latest additions * Deduplicate some testing infrastructure, swap in new test tool * Remove unused rule * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311045444 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311051974 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311035287 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311055290 * WIP * Make gRPC thread factory spawn non-deamon threads * Remove debug prints, complete divulgence test (missing assertion messages) * Try to detect assertion failure line number * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311400695 * Remove TlsConfiguration duplicate, move original to commons * Make assertion more readable Co-Authored-By: Gerolf Seitz <gerolf.seitz@digitalasset.com> * Fix build errors introduced in previous commit - exclude time service tests from reference-v2 - add copyright header to TlsConfiguration * Complete divulgence test and address review comments Restores comments from original divulgence tests and strives to be as close to them as possible. - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311429169 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431156 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431913 * Delete old divulgence tests * Restore methods to fetch contracts by template identifier * Run conformance tests on in-memory sandbox * Run conformance tests on the persistent sandbox * Remove workflow identifier workaround * New contract keys test (#2452) * Set channel type for LedgerSession * Add ContractKeysIT * Run tests against reference-server v2 * Removed the old ContractKeysIT. However, ... ... I cannot remove ContractKeysChecks completely, because we have another test path for DARs created prior to DAML-LF 1.6, which doesn't have the submitter == maintainer restriction for contract keys. * Use codegen instead of custom code * Add missing copyright headers * Drop sandbox conformance test suite (seems to not work on Windows CI) * Make time simpler * Test tool tests to run only semantic tests * Make CI behave more consistently * Add missing files to run tests on Postrgres * Fix flaky divulgence test, introduce readable identifiers * Increase sandbox conformance tests timeout * Address https://github.com/digital-asset/daml/pull/2282#discussion_r312363246 * Reintroduce test resource extraction * Read semantic tests from the classpath rather than Bazel * Use codegen types for ContractKeys integration test allocateParty returns Primitive.Party and create and exercise also accept Primitive.Party. This way we don't have to keep a String and Primitive.Party representation around. * Bump timeout for sandbox conformance tests * Remove dependency on Bazel runfiles
2019-08-09 18:00:37 +03:00
"--all-tests",
"--exclude=LotsOfPartiesIT",
"--exclude=TimeIT",
"--exclude=ConfigManagementServiceIT",
],
)
server_conformance_test(
name = "conformance-test-config-management",
servers = SERVERS,
test_tool_args = [
"--include=ConfigManagementServiceIT",
New Ledger API test tool (#2282) * New acceptance test tool prototype * Fix transaction filter helper * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308081386 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r308082432 Moreover, creates specific helpers for test DAML code. * Move helpers from session to context Remove a circular dependency between session and context, and limits the usage of implicits. * Run tests with ledgers out of process * Prepare for drop in * Temporary timeout increase * Move bulk of the logic to the test runner * Have a map of tests for CLI integration * Timeout per-test, runner uses context, renaming * Allow usage of time service, integrate semantic tests * Integrate CLI SSL configuration * Integrate failure expectation CLI option * Integrate with failure output verbosity CLI option * Integrate with test listing and picking CLI options * Integrate with timeout scaling CLI option * Integrate with command TTL CLI option * Review CODEOWNERS * Drop previously unimplemented CLI parameters * Expand test todo list to encompass latest additions * Deduplicate some testing infrastructure, swap in new test tool * Remove unused rule * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311045444 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311051974 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311035287 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311055290 * WIP * Make gRPC thread factory spawn non-deamon threads * Remove debug prints, complete divulgence test (missing assertion messages) * Try to detect assertion failure line number * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Add Sandbox binary that starts an ephemeral postgres instance This allows us to use the client_server_test bazel macro to run against the sandbox backed by postgres. Fixes #1543 * Address https://github.com/digital-asset/daml/pull/2282#discussion_r311400695 * Remove TlsConfiguration duplicate, move original to commons * Make assertion more readable Co-Authored-By: Gerolf Seitz <gerolf.seitz@digitalasset.com> * Fix build errors introduced in previous commit - exclude time service tests from reference-v2 - add copyright header to TlsConfiguration * Complete divulgence test and address review comments Restores comments from original divulgence tests and strives to be as close to them as possible. - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311429169 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431156 - Address https://github.com/digital-asset/daml/pull/2282#discussion_r311431913 * Delete old divulgence tests * Restore methods to fetch contracts by template identifier * Run conformance tests on in-memory sandbox * Run conformance tests on the persistent sandbox * Remove workflow identifier workaround * New contract keys test (#2452) * Set channel type for LedgerSession * Add ContractKeysIT * Run tests against reference-server v2 * Removed the old ContractKeysIT. However, ... ... I cannot remove ContractKeysChecks completely, because we have another test path for DARs created prior to DAML-LF 1.6, which doesn't have the submitter == maintainer restriction for contract keys. * Use codegen instead of custom code * Add missing copyright headers * Drop sandbox conformance test suite (seems to not work on Windows CI) * Make time simpler * Test tool tests to run only semantic tests * Make CI behave more consistently * Add missing files to run tests on Postrgres * Fix flaky divulgence test, introduce readable identifiers * Increase sandbox conformance tests timeout * Address https://github.com/digital-asset/daml/pull/2282#discussion_r312363246 * Reintroduce test resource extraction * Read semantic tests from the classpath rather than Bazel * Use codegen types for ContractKeys integration test allocateParty returns Primitive.Party and create and exercise also accept Primitive.Party. This way we don't have to keep a String and Primitive.Party representation around. * Bump timeout for sandbox conformance tests * Remove dependency on Bazel runfiles
2019-08-09 18:00:37 +03:00
],
)
exports_files(["src/main/resources/logback.xml"])