From 276a5d078ef0ecb6fba153a6f83f6c77cfcb01a0 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 22 Sep 2023 12:26:00 -0500 Subject: [PATCH] revert: "ci: cache datadog-ci (#9702)" Original commit changeset: b104e0ec0c6d --- .github/actions/upload-datadog/action.yaml | 24 +++------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/actions/upload-datadog/action.yaml b/.github/actions/upload-datadog/action.yaml index fde65a29875e8..252329b16024d 100644 --- a/.github/actions/upload-datadog/action.yaml +++ b/.github/actions/upload-datadog/action.yaml @@ -1,4 +1,4 @@ -name: Upload tests to Datadog +name: Upload tests to datadog if: always() inputs: api-key: @@ -7,26 +7,8 @@ inputs: runs: using: "composite" steps: - - name: Set work dir - shell: bash - run: | - WORK_DIR=${{ runner.temp }}/datadog-ci - mkdir -p $WORK_DIR - echo "WORK_DIR=$WORK_DIR" >> $GITHUB_ENV - # The npm install was taking 30s to 1m, accounting for 20+% of the total - # job time. - - name: Cache datadog-ci - uses: buildjet/cache@v3 - with: - path: | - ${{ env.WORK_DIR }} - key: datadog-ci-${{ runner.os }} - restore-keys: | - datadog-ci-${{ runner.os }}- - datadog-ci- - shell: bash run: | - cd ${{ env.WORK_DIR }} owner=${{ github.repository_owner }} echo "owner: $owner" if [[ $owner != "coder" ]]; then @@ -38,8 +20,8 @@ runs: echo "No API key provided, skipping..." exit 0 fi - npm install @datadog/datadog-ci@2.10.0 - npm x -- datadog-ci junit upload --service coder ./gotests.xml \ + npm install -g @datadog/datadog-ci@2.10.0 + datadog-ci junit upload --service coder ./gotests.xml \ --tags os:${{runner.os}} --tags runner_name:${{runner.name}} env: DATADOG_API_KEY: ${{ inputs.api-key }}