Skip to content

Commit

Permalink
Archive .json
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <[email protected]>
  • Loading branch information
Divyaasm committed Jun 27, 2024
1 parent 07313e4 commit 03d0391
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jenkins/opensearch/benchmark-test-endpoint.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ parameters {
captureSegmentReplicationStat: CAPTURE_SEGMENT_REPLICATION_STAT,
telemetryParams: TELEMETRY_PARAMS
)
stash includes: 'test_execution*.csv', name: "benchmark"
stash includes: 'test_execution*.*', name: "benchmark"

}
}
post {
always {
unstash "benchmark"
archiveArtifacts artifacts: 'test_execution*.csv'
archiveArtifacts artifacts: 'test_execution*.*'
postCleanup()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(
else:
params_list.append(f" -c {key}={value}")
role_params = (
f" --require-approval=never"
" --require-approval=never"
)
self.params = "".join(params_list) + role_params
self.password = None if self.args.insecure else get_password(self.args.distribution_version)
Expand Down
1 change: 1 addition & 0 deletions src/test_workflow/benchmark_test/benchmark_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def convert(self) -> None:
with TemporaryDirectory() as work_dir:
subprocess.check_call(f"docker cp docker-container-{self.args.stack_suffix}:opensearch-benchmark/. {str(work_dir.path)}", cwd=os.getcwd(), shell=True)
file_path = glob.glob(os.path.join(str(work_dir.path), "test_executions", "*", "test_execution.json"))
shutil.copy(file_path[0], os.path.join(os.getcwd(), f"test_execution._{self.args.stack_suffix}.json"))
with open(file_path[0]) as file:
data = json.load(file)
formatted_data = pd.json_normalize(data["results"]["op_metrics"])
Expand Down

0 comments on commit 03d0391

Please sign in to comment.