Skip to content

Commit d556c10

Browse files
authored
Fix push results (#36)
* Clean up and simplify scripts - Remove unused functions and debug flags in `run-benchmarks.sh`. - Adjust `cp` command and comment out PR creation in `push-results.sh`. * Enhance push-results.sh with git config * Enhance push-results.sh with git config
1 parent 8373f99 commit d556c10

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

scripts/perf-lab/push-results.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ push_results() {
5757
# Copy over the results into a new directory named with the current date/time
5858
mkdir -p ${resultsDir}
5959

60-
cp -vR ${RUN_RESULTS_DIR}/ ${resultsDir}/
61-
62-
echo "resultsDir (${resultsDir})"
60+
cp -R ${RUN_RESULTS_DIR}/* ${resultsDir}/
6361

6462
# Strip out the .env section of the json
6563
jq 'del(.env)' ${resultsDir}/metrics.json > ${resultsDir}/metrics.json.tmp && \
@@ -70,6 +68,8 @@ push_results() {
7068
cp -f ${resultsDir}/metrics.json results/${jobName}-latest.json
7169

7270
# Add things to git
71+
git config --local user.email quarkusio+quarkusbot@gmail.com
72+
git config --local user.name quarkusbot
7373
git add results
7474

7575
# Commit

scripts/perf-lab/run-benchmarks.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,6 @@ make_json_array() {
142142
echo "$json"
143143
}
144144

145-
#make_json_array() {
146-
# local bashArray=("$@")
147-
# local jsonArray="${bashArray[*]}"
148-
# echo "['${jsonArray// /','}']"
149-
#}
150-
151145
setup_jbang() {
152146
if command -v jbang &> /dev/null; then
153147
echo "Using installed jbang ($(jbang --version))"
@@ -177,8 +171,6 @@ run_benchmarks() {
177171

178172
#print_values
179173

180-
set -x
181-
182174
# jbang qDup@hyperfoil --trace="target" \
183175
${JBANG_CMD} qDup@hyperfoil \
184176
-B ${OUTPUT_DIR} \

0 commit comments

Comments
 (0)