Skip to content

Commit

Permalink
Upgrade canton for conformance tests (#11550)
Browse files Browse the repository at this point in the history
This also eases the work on:
- error codes - fyi @tudor-da
- open sourcing

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
oliverse-da authored Nov 4, 2021
1 parent b84a914 commit 30bfee9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
6 changes: 3 additions & 3 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ java_import(
jars = glob(["lib/**/*.jar"]),
)
""",
sha256 = "24a7f8ef120878dba9d89d27563618bef104cf79c2278edf1401e5f28e4e24f4",
strip_prefix = "canton-community-0.28.0-SNAPSHOT",
urls = ["https://www.canton.io/releases/canton-community-20210919.tar.gz"],
sha256 = "31ced734e06039239c17a4ab6da75b629c0f2a637181408d7d7e828409a2e2ce",
strip_prefix = "canton-community-1.0.0-SNAPSHOT",
urls = ["https://www.canton.io/releases/canton-community-20211104.tar.gz"],
)
11 changes: 8 additions & 3 deletions ledger/ledger-api-test-tool-on-canton/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,20 @@ conformance_test(
",ExceptionsIT,ExceptionRaceConditionIT" + # need UCK mode - added below
",DeeplyNestedValueIT" + # FIXME: Too deeply nested values flake with a time out (half of the time)
",CommandServiceIT:CSReturnStackTrace" + # FIXME: Ensure canton returns stack trace
",CommandDeduplicationIT:ParticipantCommandDeduplicationSimpleDeduplicationBasic,CommandDeduplicationIT:ParticipantCommandDeduplicationDeduplicateSubmitterBasic,CommandDeduplicationIT:ParticipantCommandDeduplicationSimpleDeduplicationMixedClients" + # sync vs async error (part of canton #6301)
",CommandDeduplicationIT:ParticipantCommandDeduplicationSimpleDeduplicationBasic" + # sync vs async error (part of canton #6301)
",CommandDeduplicationIT:ParticipantCommandDeduplicationDeduplicateSubmitterBasic" +
",CommandDeduplicationIT:ParticipantCommandDeduplicationSimpleDeduplicationMixedClients" +
# Also exclude "optional tests" - which are run separately below
",CompletionDeduplicationInfoITCommandService" +
",CompletionDeduplicationInfoITCommandSubmissionService" +
",CommandDeduplicationParallelIT" +
",ContractIdIT" +
",MultiPartySubmissionIT" +
",ParticipantPruningIT" +
",KVCommandDeduplicationIT", # only for KV-utils
",TLSOnePointThreeIT" +
",TLSAtLeastOnePointTwoIT" +
",KVCommandDeduplicationIT" + # only for KV-utils
",MonotonicRecordTimeIT", # KV-utils specific
],
) if not is_windows else None

Expand Down Expand Up @@ -161,7 +166,7 @@ conformance_test(
"--verbose",
"--include=ContractIdIT:RejectV0,ContractIdIT:RejectNonSuffixedV1Cid,ContractIdIT:AcceptSuffixedV1Cid" +
",MultiPartySubmissionIT" +
# ",CommandDeduplicationParallelIT" + # FIXME: Deduplication test not yet passing on canton - canton-#6301
",CommandDeduplicationParallelIT" +
",CompletionDeduplicationInfoITCommandService,CompletionDeduplicationInfoITCommandSubmissionService",
"--exclude=MultiPartySubmissionIT:MPSLookupOtherByKeyInvisible" + # Enable once error parsing more permissive
",MultiPartySubmissionIT:MPSCreateInsufficientAuthorization" + # canton returns INTERNAL instead of INVALID_ARGUMENT
Expand Down
4 changes: 4 additions & 0 deletions ledger/ledger-api-test-tool-on-canton/canton.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ canton {

crypto.provider = tink

ledger-api.enable-self-service-error-codes = false
ledger-api.port = 5011
admin-api.port = 5012
}
Expand All @@ -61,6 +62,7 @@ canton {

crypto.provider = tink

ledger-api.enable-self-service-error-codes = false
ledger-api.port = 5021
admin-api.port = 5022
}
Expand All @@ -78,6 +80,7 @@ canton {

crypto.provider = tink

ledger-api.enable-self-service-error-codes = false
ledger-api.port = 5031
admin-api.port = 5032
}
Expand All @@ -95,6 +98,7 @@ canton {

crypto.provider = tink

ledger-api.enable-self-service-error-codes = false
ledger-api.port = 5041
admin-api.port = 5042
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
canton.domains.test_domain.domain-parameters.unique-contract-keys = true
canton.parameters.participant.unique-contract-keys = true

0 comments on commit 30bfee9

Please sign in to comment.