Skip to content

Commit

Permalink
WIP: performance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pcapriotti committed Aug 1, 2023
1 parent 0d21b76 commit 1209f00
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
7 changes: 6 additions & 1 deletion hack/python/wire/mlscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ def mlscli(state, client_identity, args, stdin=None):
else:
args_substd.append(arg)

basedir = os.path.join(cdir, cid2str(state.client_identity) )
os.makedirs(basedir, exist_ok=True)
all_args = [
"mls-test-cli",
"--store",
os.path.join(cdir, cid2str(state.client_identity), "store"),
os.path.join(basedir, "store"),
] + args_substd

# TODO: maybe add cwd=cdir, not sure if necessary
Expand Down Expand Up @@ -154,6 +156,9 @@ def restore_backup_into(client_dir):
os.system(f'cp -r /tmp/client_state_backup {client_dir}')
return ClientState.load(client_dir)

def __repr__(self):
values = ', '.join(f'{k}={str(getattr(self, k))}' for k in self.saveable_attrs.keys())
return f'{self.__class__.__name__}({values})'

def key_package_file(state, ref):
return os.path.join(state.client_dir, cid2str(state.client_identity), ref.hex())
Expand Down
22 changes: 11 additions & 11 deletions services/brig/brig.integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ zauth:
publicKeys: test/resources/zauth/pubkeys.txt
authSettings:
keyIndex: 1
userTokenTimeout: 120
sessionTokenTimeout: 20
accessTokenTimeout: 30
providerTokenTimeout: 60
legalHoldUserTokenTimeout: 120
legalHoldAccessTokenTimeout: 30
userTokenTimeout: 12000
sessionTokenTimeout: 2000
accessTokenTimeout: 3000
providerTokenTimeout: 6000
legalHoldUserTokenTimeout: 12000
legalHoldAccessTokenTimeout: 3000

turn:
serversSource: files # files | dns
Expand All @@ -143,9 +143,9 @@ turn:
tokenTTL: 21600

optSettings:
setActivationTimeout: 10
setVerificationTimeout: 10
setTeamInvitationTimeout: 10
setActivationTimeout: 1000
setVerificationTimeout: 1000
setTeamInvitationTimeout: 1000
setExpiredUserCleanupTimeout: 1
setTwilio: test/resources/twilio-credentials.yaml
setNexmo: test/resources/nexmo-credentials.yaml
Expand All @@ -161,10 +161,10 @@ optSettings:
timeout: 5 # seconds. if you reach the limit, how long do you have to wait to try again.
retryLimit: 5 # how many times can you have a failed login in that timeframe.
setSuspendInactiveUsers: # if this is omitted: never suspend inactive users.
suspendTimeout: 10
suspendTimeout: 1000000
setRichInfoLimit: 5000 # should be in sync with Spar
setDefaultUserLocale: en
setMaxTeamSize: 32
setMaxTeamSize: 32000
setMaxConvSize: 16
setEmailVisibility: visible_to_self
setPropertyMaxKeyLen: 1024
Expand Down
4 changes: 2 additions & 2 deletions services/galley/galley.integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ rabbitmq:

settings:
httpPoolSize: 128
maxTeamSize: 32
maxFanoutSize: 18
maxTeamSize: 32000
maxFanoutSize: 2000
exposeInvitationURLsTeamAllowlist: []
maxConvSize: 16
intraListing: false
Expand Down

0 comments on commit 1209f00

Please sign in to comment.