Skip to content

Commit

Permalink
Tidy up some files a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Dec 27, 2024
1 parent 7ae73d1 commit 77e1a68
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions runner/main/jobtypes/performance/performance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function performance_config() {

# Performance job type setup.
function performance_setup() {
RUN_STARTTIME=$(date +%s)
# If both GOOD_COMMIT and BAD_COMMIT are not set, we are going to run a normal session.
# (for bisect sessions we don't have to setup the environment).
if [[ -z "${GOOD_COMMIT}" ]] && [[ -z "${BAD_COMMIT}" ]]; then
Expand Down Expand Up @@ -169,7 +170,6 @@ function performance_generate_test_data() {
# Ensure the directory exists and is writable
mkdir -p "${SHAREDDIR}/planfiles"
mkdir -p "${SHAREDDIR}/output/logs"
mkdir -p "${SHAREDDIR}/output/results"
mkdir -p "${SHAREDDIR}/output/runs"

chmod -R 2777 "${SHAREDDIR}"
Expand Down Expand Up @@ -239,11 +239,10 @@ function performance_run() {

# Performance job type teardown.
function performance_teardown() {
echo "TODO: Copy results to results directory for persistence into S3"
echo "Git commit is ${GIT_COMMIT}"
tree "${SHAREDDIR}/output"
mkdir -p "${WORKSPACE}/results/${GIT_COMMIT}"
cp -rf "${SHAREDDIR}/output" "${WORKSPACE}/results/${GIT_COMMIT}"
echo "Storing data with a timestamp of ${RUN_STARTTIME} and git commit of '${GIT_COMMIT}'"
mkdir -p "${WORKSPACE}/results/${GIT_COMMIT}/runs"
cp -rf "${SHAREDDIR}/output/logs" "${WORKSPACE}/results/${GIT_COMMIT}/logs"
cp "${WORKSPACE}/output/runs/rundata.php" "${WORKSPACE}/results/${GIT_COMMIT}/runs/${RUN_STARTTIME}.php"
tree "${WORKSPACE}/results"
}

Expand Down

0 comments on commit 77e1a68

Please sign in to comment.