Use small buffers for tests (#13659)

* Use small buffers for tests

changelog_begin
changelog_end

* Update ledger/sandbox-on-x/BUILD.bazel

Co-authored-by: tudor-da <tudor.voicu@digitalasset.com>

Co-authored-by: tudor-da <tudor.voicu@digitalasset.com>
This commit is contained in:
Robert Autenrieth 2022-04-26 11:27:59 +02:00 committed by GitHub
parent 2894038b04
commit a88ae129b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View File

@ -113,9 +113,9 @@ private[dao] trait JdbcLedgerDaoBackend extends AkkaBeforeAndAfterAll {
resource = newLoggingContext { implicit loggingContext =>
for {
dao <- daoOwner(
eventsPageSize = 100,
eventsPageSize = 4,
eventsProcessingParallelism = 4,
acsIdPageSize = 2000,
acsIdPageSize = 4,
acsIdFetchingParallelism = 2,
acsContractFetchingParallelism = 2,
acsGlobalParallelism = 10,

View File

@ -467,6 +467,27 @@ server_conformance_test(
],
)
# By default, participants are tuned for performance. The buffers and caches used by the participant
# are by default so large that they are not filled by the small amount of data produced by the conformance test.
# We run one conformance test with small buffer/cache sizes to make sure we cover cases where data doesn't fit
# into a cache or where multiple buffers have to be combined.
server_conformance_test(
name = "conformance-test-tiny-buffers",
server_args = [
"--contract-id-seeding=testing-weak",
"--participant participant-id=example,port=6865,contract-state-cache-max-size=2,contract-key-state-cache-max-size=2",
"--enable-user-management=true",
"--events-page-size=2",
"--acs-id-page-size=2",
"--user-management-max-cache-size=2",
# "--user-management-max-users-page-size=2" -- minimum size is 100 which is not tiny anymore
],
servers = {"postgresql": SERVERS["postgresql"]},
test_tool_args = [
"--verbose",
],
)
conformance_test(
name = "conformance-test-static-time",
ports = [6865],