Skip to content

Commit 592047f

Browse files
authored
Fix issue 130 (#167)
* detelete the perf artifacts after they have been uploaded to S3 * format using poetry run black .
1 parent d6be093 commit 592047f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,30 @@ def process_self_contained_coordinator_stream(
735735
)
736736
)
737737

738+
# Delete all the perf artifacts, now that they are uploaded to S3.
739+
# The .script and .script.mainthread files are not part of the artifacts_matrix and thus have to be deleted separately
740+
line = profilers_artifacts_matrix[0]
741+
logging.info(
742+
"Deleting perf file {}".format(
743+
line[3].split(".")[0]
744+
+ ".out.script.mainthread"
745+
)
746+
)
747+
os.remove(
748+
line[3].split(".")[0] + ".out.script.mainthread"
749+
)
750+
logging.info(
751+
"Deleteing perf file {}".format(
752+
line[3].split(".")[0] + ".out.script"
753+
)
754+
)
755+
os.remove(line[3].split(".")[0] + ".out.script")
756+
for line in profilers_artifacts_matrix:
757+
logging.info(
758+
"Deleting perf file {}".format(line[3])
759+
)
760+
os.remove(line[3])
761+
738762
datapoint_time_ms = start_time_ms
739763
if (
740764
use_git_timestamp is True

0 commit comments

Comments
 (0)