diff --git a/.github/workflows/test_run_ci.yml b/.github/workflows/test_run_ci.yml index f26737d..0897f7d 100644 --- a/.github/workflows/test_run_ci.yml +++ b/.github/workflows/test_run_ci.yml @@ -124,9 +124,19 @@ jobs: mkdir -p "${ROOT_DIR}" cd "${ROOT_DIR}" git clone -b $BRANCH_GAS_BENCHMARKS https://github.com/OpenFusionist/gas-benchmarks.git gas-benchmarks - git clone -b main https://github.com/OpenFusionist/benchmarks-data-results.git benchmarks-data-result - cp ./benchmarks-data-result/images.yaml ./gas-benchmarks/ + - name: Checkout PR branch of benchmarks-data-results + uses: actions/checkout@v3 + with: + repository: OpenFusionist/benchmarks-data-results + path: benchmarks-data-result + ref: ${{ github.event.pull_request.head.sha }} + + - name: Copy images.yaml + run: | + ROOT_DIR=${{ needs.generate-matrix.outputs.root_dir }} + cp "${GITHUB_WORKSPACE}/benchmarks-data-result/images.yaml" "${ROOT_DIR}/gas-benchmarks/" + - name: Run gas benchmarks run: | CLIENT=${{ matrix.client }} @@ -175,8 +185,18 @@ jobs: mkdir -p "${ROOT_DIR}" cd "${ROOT_DIR}" git clone -b $BRANCH_GENESIS_INIT_BENCHMARKS https://github.com/OpenFusionist/genesis-init-benchmarks.git genesis-init-benchmarks - git clone -b main https://github.com/OpenFusionist/benchmarks-data-results.git benchmarks-data-result - cp ./benchmarks-data-result/images.yaml ./genesis-init-benchmarks/ + + - name: Checkout PR branch of benchmarks-data-results + uses: actions/checkout@v3 + with: + repository: OpenFusionist/benchmarks-data-results + path: benchmarks-data-result + ref: ${{ github.event.pull_request.head.sha }} + + - name: Copy images.yaml + run: | + ROOT_DIR=${{ needs.run-gas-benchmarks.outputs.root_dir }} + cp "${GITHUB_WORKSPACE}/benchmarks-data-result/images.yaml" "${ROOT_DIR}/genesis-init-benchmarks/" - name: Run genesis init speed benchmarks run: | @@ -227,8 +247,18 @@ jobs: mkdir -p "${ROOT_DIR}" cd "${ROOT_DIR}" git clone -b $BRANCH_GENESIS_INIT_BENCHMARKS https://github.com/OpenFusionist/genesis-init-benchmarks.git genesis-init-benchmarks - git clone -b main https://github.com/OpenFusionist/benchmarks-data-results.git benchmarks-data-result - cp ./benchmarks-data-result/images.yaml ./genesis-init-benchmarks/ + + - name: Checkout PR branch of benchmarks-data-results + uses: actions/checkout@v3 + with: + repository: OpenFusionist/benchmarks-data-results + path: benchmarks-data-result + ref: ${{ github.event.pull_request.head.sha }} + + - name: Copy images.yaml + run: | + ROOT_DIR=${{ needs.run-genesis-init-speed-benchmarks.outputs.root_dir }} + cp "${GITHUB_WORKSPACE}/benchmarks-data-result/images.yaml" "${ROOT_DIR}/genesis-init-benchmarks/" - name: Run genesis init memory benchmarks run: | @@ -279,8 +309,18 @@ jobs: mkdir -p "${ROOT_DIR}" cd "${ROOT_DIR}" git clone -b $BRANCH_BURNTPIX_BENCHMARKS https://github.com/OpenFusionist/gas-benchmarks.git burntpix-benchmarks - git clone -b main https://github.com/OpenFusionist/benchmarks-data-results.git benchmarks-data-result - cp ./benchmarks-data-result/images.yaml ./burntpix-benchmarks/ + + - name: Checkout PR branch of benchmarks-data-results + uses: actions/checkout@v3 + with: + repository: OpenFusionist/benchmarks-data-results + path: benchmarks-data-result + ref: ${{ github.event.pull_request.head.sha }} + + - name: Copy images.yaml + run: | + ROOT_DIR=${{ needs.run-genesis-init-memory-benchmarks.outputs.root_dir }} + cp "${GITHUB_WORKSPACE}/benchmarks-data-result/images.yaml" "${ROOT_DIR}/burntpix-benchmarks/" - name: Run burntpix benchmarks run: |