Skip to content

Commit 2a6bf6e

Browse files
committed
temporary - run profiler on CI
1 parent 9776c15 commit 2a6bf6e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/integration_tests.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,12 @@ jobs:
6060
env:
6161
branch_ref: ${{ steps.branch_ref.outputs.branch_ref }}
6262
run: |
63-
if [[ $branch_ref == 'refs/heads/master' ]]; then
64-
steps=("ecm_prep" "run")
65-
for step in "${steps[@]}"; do
66-
psrecord --log memory_log_${step}.txt --include-children --interval 1 "python tests/integration_testing/run_workflow.py --run_step $step --yaml tests/integration_testing/integration_test.yml --with_profiler"
67-
(echo -e; echo "# Elapsed time,CPU (%),Peak Real (MB),Peak Virtual (MB)"; grep -v "time" memory_log_${step}.txt | sort -k3 -n -r | head -n 1 | column -t | tr -s '[:blank:]' ',') >> results/profile_${step}.csv
68-
mv memory_log_${step}.txt ./results/
69-
done
70-
else
71-
python tests/integration_testing/run_workflow.py --yaml tests/integration_testing/integration_test.yml
72-
fi
63+
steps=("ecm_prep" "run")
64+
for step in "${steps[@]}"; do
65+
psrecord --log memory_log_${step}.txt --include-children --interval 1 "python tests/integration_testing/run_workflow.py --run_step $step --yaml tests/integration_testing/integration_test.yml --with_profiler"
66+
(echo -e; echo "# Elapsed time,CPU (%),Peak Real (MB),Peak Virtual (MB)"; grep -v "time" memory_log_${step}.txt | sort -k3 -n -r | head -n 1 | column -t | tr -s '[:blank:]' ',') >> results/profile_${step}.csv
67+
mv memory_log_${step}.txt ./results/
68+
done
7369
rm -rf ./tests/integration_testing/results/*
7470
mv ./results/* ./tests/integration_testing/results/
7571
mv ./generated/log_*.txt ./tests/integration_testing/results/ 2>/dev/null

0 commit comments

Comments
 (0)