-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark reset service tests as flaky #9602
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,85 +141,108 @@ da_scala_library( | |
|
||
openssl_executable = "@openssl_dev_env//:bin/openssl" if not is_windows else "@openssl_dev_env//:usr/bin/openssl.exe" | ||
|
||
da_scala_test_suite( | ||
name = "sandbox-tests", | ||
srcs = glob(["src/test/suite/**/*.scala"]), | ||
data = [ | ||
"//ledger/test-common:dar-files", | ||
"//ledger/test-common/test-certificates", | ||
openssl_executable, | ||
], | ||
jvm_flags = [ | ||
"-Djava.security.debug=\"certpath ocsp\"", # This facilitates debugging of the OCSP checks mechanism | ||
], | ||
resources = glob(["src/test/resources/**/*"]), | ||
scala_deps = [ | ||
"@maven//:com_typesafe_akka_akka_actor", | ||
"@maven//:com_typesafe_akka_akka_stream", | ||
"@maven//:com_typesafe_akka_akka_stream_testkit", | ||
"@maven//:com_typesafe_akka_akka_testkit", | ||
"@maven//:org_mockito_mockito_scala", | ||
"@maven//:org_scalacheck_scalacheck", | ||
"@maven//:org_scalactic_scalactic", | ||
"@maven//:org_scalatest_scalatest", | ||
"@maven//:org_scalaz_scalaz_core", | ||
], | ||
deps = [ | ||
":sandbox", | ||
":sandbox-scala-tests-lib", | ||
"//bazel_tools/runfiles:scala_runfiles", | ||
"//daml-lf/archive:daml_lf_archive_reader", | ||
"//daml-lf/archive:daml_lf_dev_archive_proto_java", | ||
"//daml-lf/data", | ||
"//daml-lf/engine", | ||
"//daml-lf/interpreter", | ||
"//daml-lf/language", | ||
"//daml-lf/transaction", | ||
"//daml-lf/transaction-test-lib", | ||
"//language-support/scala/bindings", | ||
"//ledger-api/rs-grpc-akka", | ||
"//ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib", | ||
"//ledger-api/rs-grpc-bridge", | ||
"//ledger-api/sample-service", | ||
"//ledger-api/testing-utils", | ||
"//ledger/caching", | ||
"//ledger/ledger-api-auth", | ||
"//ledger/ledger-api-client", | ||
"//ledger/ledger-api-common", | ||
"//ledger/ledger-api-common:ledger-api-common-scala-tests-lib", | ||
"//ledger/ledger-api-domain", | ||
"//ledger/ledger-api-health", | ||
"//ledger/ledger-resources", | ||
"//ledger/ledger-resources:ledger-resources-test-lib", | ||
"//ledger/metrics", | ||
"//ledger/participant-integration-api", | ||
"//ledger/participant-integration-api:participant-integration-api-tests-lib", | ||
"//ledger/participant-state", | ||
"//ledger/participant-state-index", | ||
"//ledger/participant-state-metrics", | ||
"//ledger/sandbox-common", | ||
"//ledger/sandbox-common:sandbox-common-scala-tests-lib", | ||
"//ledger/test-common", | ||
"//libs-scala/concurrent", | ||
"//libs-scala/contextualized-logging", | ||
"//libs-scala/grpc-utils", | ||
"//libs-scala/ports", | ||
"//libs-scala/postgresql-testing", | ||
"//libs-scala/resources", | ||
"@maven//:ch_qos_logback_logback_classic", | ||
"@maven//:ch_qos_logback_logback_core", | ||
"@maven//:com_typesafe_config", | ||
"@maven//:commons_io_commons_io", | ||
"@maven//:io_dropwizard_metrics_metrics_core", | ||
"@maven//:io_grpc_grpc_services", | ||
"@maven//:io_netty_netty_handler", | ||
"@maven//:org_awaitility_awaitility", | ||
"@maven//:org_flywaydb_flyway_core", | ||
"@maven//:org_mockito_mockito_core", | ||
"@maven//:org_reactivestreams_reactive_streams", | ||
"@maven//:org_slf4j_slf4j_api", | ||
], | ||
) | ||
# The reset service is cursed so we mark all tests involving it as flaky. | ||
reset_service_pattern = "src/test/suite/**/*ResetService*.scala" | ||
|
||
[ | ||
da_scala_test_suite( | ||
name = "sandbox-tests{}".format(suffix), | ||
srcs = glob( | ||
[pattern], | ||
exclude = exclusions, | ||
), | ||
data = [ | ||
"//ledger/test-common:dar-files", | ||
"//ledger/test-common/test-certificates", | ||
openssl_executable, | ||
], | ||
flaky = flaky, | ||
jvm_flags = [ | ||
"-Djava.security.debug=\"certpath ocsp\"", # This facilitates debugging of the OCSP checks mechanism | ||
], | ||
resources = glob(["src/test/resources/**/*"]), | ||
scala_deps = [ | ||
"@maven//:com_typesafe_akka_akka_actor", | ||
"@maven//:com_typesafe_akka_akka_stream", | ||
"@maven//:com_typesafe_akka_akka_stream_testkit", | ||
"@maven//:com_typesafe_akka_akka_testkit", | ||
"@maven//:org_mockito_mockito_scala", | ||
"@maven//:org_scalacheck_scalacheck", | ||
"@maven//:org_scalactic_scalactic", | ||
"@maven//:org_scalatest_scalatest", | ||
"@maven//:org_scalaz_scalaz_core", | ||
], | ||
deps = [ | ||
":sandbox", | ||
":sandbox-scala-tests-lib", | ||
"//bazel_tools/runfiles:scala_runfiles", | ||
"//daml-lf/archive:daml_lf_archive_reader", | ||
"//daml-lf/archive:daml_lf_dev_archive_proto_java", | ||
"//daml-lf/data", | ||
"//daml-lf/engine", | ||
"//daml-lf/interpreter", | ||
"//daml-lf/language", | ||
"//daml-lf/transaction", | ||
"//daml-lf/transaction-test-lib", | ||
"//language-support/scala/bindings", | ||
"//ledger-api/rs-grpc-akka", | ||
"//ledger-api/rs-grpc-akka:rs-grpc-akka-tests-lib", | ||
"//ledger-api/rs-grpc-bridge", | ||
"//ledger-api/sample-service", | ||
"//ledger-api/testing-utils", | ||
"//ledger/caching", | ||
"//ledger/ledger-api-auth", | ||
"//ledger/ledger-api-client", | ||
"//ledger/ledger-api-common", | ||
"//ledger/ledger-api-common:ledger-api-common-scala-tests-lib", | ||
"//ledger/ledger-api-domain", | ||
"//ledger/ledger-api-health", | ||
"//ledger/ledger-resources", | ||
"//ledger/ledger-resources:ledger-resources-test-lib", | ||
"//ledger/metrics", | ||
"//ledger/participant-integration-api", | ||
"//ledger/participant-integration-api:participant-integration-api-tests-lib", | ||
"//ledger/participant-state", | ||
"//ledger/participant-state-index", | ||
"//ledger/participant-state-metrics", | ||
"//ledger/sandbox-common", | ||
"//ledger/sandbox-common:sandbox-common-scala-tests-lib", | ||
"//ledger/test-common", | ||
"//libs-scala/concurrent", | ||
"//libs-scala/contextualized-logging", | ||
"//libs-scala/grpc-utils", | ||
"//libs-scala/ports", | ||
"//libs-scala/postgresql-testing", | ||
"//libs-scala/resources", | ||
"@maven//:ch_qos_logback_logback_classic", | ||
"@maven//:ch_qos_logback_logback_core", | ||
"@maven//:com_typesafe_config", | ||
"@maven//:commons_io_commons_io", | ||
"@maven//:io_dropwizard_metrics_metrics_core", | ||
"@maven//:io_grpc_grpc_services", | ||
"@maven//:io_netty_netty_handler", | ||
"@maven//:org_awaitility_awaitility", | ||
"@maven//:org_flywaydb_flyway_core", | ||
"@maven//:org_mockito_mockito_core", | ||
"@maven//:org_reactivestreams_reactive_streams", | ||
"@maven//:org_slf4j_slf4j_api", | ||
], | ||
) | ||
for (suffix, pattern, exclusions, flaky) in [ | ||
( | ||
"", | ||
"src/test/suite/**/*.scala", | ||
[reset_service_pattern], | ||
False, | ||
), | ||
( | ||
"-resetservice", | ||
reset_service_pattern, | ||
[], | ||
True, | ||
), | ||
] | ||
Comment on lines
+231
to
+244
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. Except extract a couple variables for dependencies. |
||
] | ||
|
||
NEXT_SERVERS = { | ||
"memory": { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems… overkill. Why not just duplicate? It'd be basically the same amount of code and I wouldn't have to do the variable interpolation in my head.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because I don’t want to have to worry about them getting out of sync over time. This make it very clear that they don’t.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don’t feel super strongly about this though so if you disagree, I can duplicate instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. I can deal. You decide. 🙂