Skip to content

Commit

Permalink
Fix more tests by enabling the append-only schema by default
Browse files Browse the repository at this point in the history
CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
hubert-da committed Oct 15, 2021
1 parent 14fad76 commit d140783
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ trait SandboxTestLedger extends SandboxNextFixture {
scenario = scenario,
engineMode = SandboxConfig.EngineMode.Dev,
seeding = Some(Seeding.Weak),
enableAppendOnlySchema = true,
)

def clientCfg(token: Option[String], testName: String): LedgerClientConfiguration =
Expand Down
3 changes: 0 additions & 3 deletions ledger/ledger-api-test-tool-on-canton/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ conformance_test(
],
runner = "@//bazel_tools/client_server/runner_with_port_check",
server = ":canton-test-runner-with-dependencies",
server_args = [
"--enable-append-only-schema",
],
test_tool_args = [
"--verbose",
"--concurrent-test-runs=1", # lowered from default #procs to reduce flakes - details in https://github.com/digital-asset/daml/issues/7316
Expand Down
8 changes: 8 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,8 @@ canton {

crypto.provider = tink

ledger-api.enable-append-only-schema = true

ledger-api.port = 5011
admin-api.port = 5012
}
Expand All @@ -61,6 +63,8 @@ canton {

crypto.provider = tink

ledger-api.enable-append-only-schema = true

ledger-api.port = 5021
admin-api.port = 5022
}
Expand All @@ -78,6 +82,8 @@ canton {

crypto.provider = tink

ledger-api.enable-append-only-schema = true

ledger-api.port = 5031
admin-api.port = 5032
}
Expand All @@ -95,6 +101,8 @@ canton {

crypto.provider = tink

ledger-api.enable-append-only-schema = true

ledger-api.port = 5041
admin-api.port = 5042
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ object Config {
metricsReporter = None,
metricsReportingInterval = Duration.ofSeconds(10),
allowedLanguageVersions = LanguageVersion.StableVersions,
enableAppendOnlySchema = false,
enableAppendOnlySchema = true,
enableMutableContractStateCache = false,
enableInMemoryFanOutForLedgerApi = false,
maxDeduplicationDuration = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trait SandboxFixture extends AbstractSandboxFixture with SuiteResource[(SandboxS
self: Suite =>

// TODO append-only: remove after the mutating schema is removed
protected def enableAppendOnlySchema: Boolean = false
protected def enableAppendOnlySchema: Boolean = true

override protected def config: SandboxConfig =
super.config.copy(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ object SandboxConfig {
engineMode = EngineMode.Stable,
managementServiceTimeout = DefaultManagementServiceTimeout,
sqlStartMode = Some(DefaultSqlStartupMode),
enableAppendOnlySchema = false,
enableAppendOnlySchema = true,
enableCompression = false,
enableSelfServiceErrorCodes = false,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ trait AbstractSandboxFixture extends AkkaBeforeAndAfterAll {
seeding = Some(Seeding.Weak),
engineMode = SandboxConfig.EngineMode.Dev,
authService = authService,
enableAppendOnlySchema = true,
)

protected def packageFiles: List[File] = List(darFile)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ abstract class ResetServiceITBase
override def timeLimit: Span = scaled(30.seconds)

override protected def config: SandboxConfig =
super.config.copy(ledgerIdMode = LedgerIdMode.Dynamic)
super.config.copy(ledgerIdMode = LedgerIdMode.Dynamic, enableAppendOnlySchema = true)

protected implicit val ec: ExecutionContext = ExecutionContext.global

Expand Down

0 comments on commit d140783

Please sign in to comment.