4040
4141 if [ -z '${{ inputs.cutoff_timestamp }}' ]; then
4242 # No time given, use default time period
43- echo "CUTOFF_TIMESTAMP=$(date --date="$AVERAGE_CUTOFF_RANGE" "$TIMESTAMP_FORMAT")" >> $GITHUB_ENV
43+ echo "CUTOFF_TIMESTAMP=$(date --date="$AVERAGE_CUTOFF_RANGE" + "$TIMESTAMP_FORMAT")" >> $GITHUB_ENV
4444 else
4545 # If the provided time is a unix `date` timestamp, convert the time to our format
4646 _converted_timestamp="$(date --date '${{ inputs.cutoff_timestamp }}' +"$TIMESTAMP_FORMAT" 2> /dev/null)"
@@ -53,20 +53,19 @@ jobs:
5353 echo 'CUTOFF_TIMESTAMP=${{ inputs.cutoff_timestamp }}' >> $GITHUB_ENV
5454 fi
5555 fi
56- - uses : actions/checkout@v4
57- with :
58- # TODO populate default values before loading configuration
59- path : ${{ env.PERF_RES_PATH }}
60- repository : ianayl/llvm-ci-perf-results # ${{ env.PERF_RES_GIT_REPO }}
61- ref : ${{ env.PERF_RES_BRANCH }}
56+ - name : Checkout performance results repository
57+ run : |
58+ git clone -b $PERF_RES_BRANCH $PERF_RES_GIT_REPO $PERF_RES_PATH
59+ - name : Debug
60+ run : |
61+ find "$PERF_RES_PATH" -maxdepth 3 ! -name '.*'
62+ echo "########"
63+ find . -maxdepth 3 ! -name '.*'
6264 - name : Run aggregator on cloned data
6365 run : |
6466 for dir in $(find "$PERF_RES_PATH" -mindepth 1 -maxdepth 1 -type d ! -name '.*'); do
6567 python llvm/devops/benchmarking/aggregate.py "$(basename dir)" "$CUTOFF_TIMESTAMP"
6668 done
67- - name : Debug
68- run : |
69- find "$PERF_RES_PATH" -maxdepth 3 ! -name '.*'
7069 - name : Upload average to the repo
7170 env :
7271 SSH_KEY : ${{secrets.ACTIONS_DEPLOY_KEY}}
0 commit comments