From f54e1d27b5696c3c7ecc75dde98ba29f80af85d9 Mon Sep 17 00:00:00 2001 From: "Li, Ian" Date: Wed, 18 Sep 2024 15:33:33 -0700 Subject: [PATCH] Resolve issue with using two action/checkout's --- .../workflows/sycl-benchmark-aggregate.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sycl-benchmark-aggregate.yml b/.github/workflows/sycl-benchmark-aggregate.yml index ec6893d2088d8..f904df18da975 100644 --- a/.github/workflows/sycl-benchmark-aggregate.yml +++ b/.github/workflows/sycl-benchmark-aggregate.yml @@ -40,7 +40,7 @@ jobs: if [ -z '${{ inputs.cutoff_timestamp }}' ]; then # No time given, use default time period - echo "CUTOFF_TIMESTAMP=$(date --date="$AVERAGE_CUTOFF_RANGE" "$TIMESTAMP_FORMAT")" >> $GITHUB_ENV + echo "CUTOFF_TIMESTAMP=$(date --date="$AVERAGE_CUTOFF_RANGE" +"$TIMESTAMP_FORMAT")" >> $GITHUB_ENV else # If the provided time is a unix `date` timestamp, convert the time to our format _converted_timestamp="$(date --date '${{ inputs.cutoff_timestamp }}' +"$TIMESTAMP_FORMAT" 2> /dev/null)" @@ -53,20 +53,19 @@ jobs: echo 'CUTOFF_TIMESTAMP=${{ inputs.cutoff_timestamp }}' >> $GITHUB_ENV fi fi - - uses: actions/checkout@v4 - with: - # TODO populate default values before loading configuration - path: ${{ env.PERF_RES_PATH }} - repository: ianayl/llvm-ci-perf-results #${{ env.PERF_RES_GIT_REPO }} - ref: ${{ env.PERF_RES_BRANCH }} + - name: Checkout performance results repository + run: | + git clone -b $PERF_RES_BRANCH $PERF_RES_GIT_REPO $PERF_RES_PATH + - name: Debug + run: | + find "$PERF_RES_PATH" -maxdepth 3 ! -name '.*' + echo "########" + find . -maxdepth 3 ! -name '.*' - name: Run aggregator on cloned data run: | for dir in $(find "$PERF_RES_PATH" -mindepth 1 -maxdepth 1 -type d ! -name '.*'); do python llvm/devops/benchmarking/aggregate.py "$(basename dir)" "$CUTOFF_TIMESTAMP" done - - name: Debug - run: | - find "$PERF_RES_PATH" -maxdepth 3 ! -name '.*' - name: Upload average to the repo env: SSH_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}