ci: store additional data in bench results (#1341)

This commit is contained in:
Moritz Eckert 2023-03-06 08:12:08 +01:00 committed by GitHub
parent 19507677c1
commit 62c437246b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -33,4 +33,6 @@ def evaluate(log_path) -> Dict[str, Dict[str, float]]:
raise Exception( raise Exception(
f"Error: Unexpected fio test: {test['jobname']}" f"Error: Unexpected fio test: {test['jobname']}"
) )
# Get volume size. Format is 400Gi.
result['volumesize'] = int(fio[0]['Raw']['size'][:-2])
return result return result

View File

@ -18,8 +18,9 @@ def evaluate(log_path) -> Dict[str, Dict[str, float]]:
data = knb['data'] data = knb['data']
result = {'pod2pod': {}, 'pod2svc': {}} result = {'pod2pod': {}, 'pod2svc': {}}
result['pod2pod']['tcp_bw_mbit'] = float(data['pod2pod']['tcp']['bandwidth']) result['pod2pod']['tcp_bw_mbit'] = float(data['pod2pod']['tcp']['bandwidth'])
result['pod2pod']['upd_bw_mbit'] = float(data['pod2pod']['udp']['bandwidth']) result['pod2pod']['udp_bw_mbit'] = float(data['pod2pod']['udp']['bandwidth'])
result['pod2svc']['tcp_bw_mbit'] = float(data['pod2svc']['tcp']['bandwidth']) result['pod2svc']['tcp_bw_mbit'] = float(data['pod2svc']['tcp']['bandwidth'])
result['pod2svc']['upd_bw_mbit'] = float(data['pod2svc']['udp']['bandwidth']) result['pod2svc']['udp_bw_mbit'] = float(data['pod2svc']['udp']['bandwidth'])
result['mtu'] = int(data['mtu'])
return result return result