From 1ce8fc13c8cfbca6512089266f0a856bc64a280c Mon Sep 17 00:00:00 2001 From: Jaymala Sinha Date: Tue, 4 Apr 2023 11:10:43 -0400 Subject: [PATCH 1/2] [QT-488] Get artifact summary info along with product metadata Signed-off-by: Jaymala Sinha --- .../workflows/enos-release-testing-oss.yml | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/enos-release-testing-oss.yml b/.github/workflows/enos-release-testing-oss.yml index de7e12296d3f..7cddbc56ed32 100644 --- a/.github/workflows/enos-release-testing-oss.yml +++ b/.github/workflows/enos-release-testing-oss.yml @@ -31,6 +31,15 @@ jobs: echo "matrix-test-group=$(make ci-get-matrix-group-id)" >> "$GITHUB_OUTPUT" echo "vault-revision=$(make ci-get-revision)" >> "$GITHUB_OUTPUT" echo "vault-version=$(make ci-get-version)" >> "$GITHUB_OUTPUT" + # Get the workflow summary similar to CRT workflows + - name: Release Artifact Info + run: | + # shellcheck disable=SC2129 + echo "__Product:__ ${{ github.event.client_payload.payload.product }}" >> "$GITHUB_STEP_SUMMARY" + echo "__Version:__ ${{ github.event.client_payload.payload.version }}" >> "$GITHUB_STEP_SUMMARY" + echo "__Commit:__ ${{ github.event.client_payload.payload.sha }}" >> "$GITHUB_STEP_SUMMARY" + echo "" >> "$GITHUB_STEP_SUMMARY" + echo "[Build Workflow](https://github.com/${{github.event.client_payload.payload.org}}/${{github.event.client_payload.payload.repo}}/actions/runs/${{github.event.client_payload.payload.buildworkflowid}})" >> "$GITHUB_STEP_SUMMARY" test: name: Test ${{ matrix.build-artifact-name }} @@ -59,18 +68,3 @@ jobs: steps: - name: Persist metadata uses: hashicorp/actions-persist-metadata@v1 - - # Get the workflow summary similar to CRT workflows - release-artifact-info: - runs-on: linux - if: ${{ startsWith(github.event.action, 'enos-release-testing-oss') }} - continue-on-error: true - steps: - - name: Release Artifact Info - run: | - # shellcheck disable=SC2129 - echo "__Product:__ ${{ github.event.client_payload.payload.product }}" >> "$GITHUB_STEP_SUMMARY" - echo "__Version:__ ${{ github.event.client_payload.payload.version }}" >> "$GITHUB_STEP_SUMMARY" - echo "__Commit:__ ${{ github.event.client_payload.payload.sha }}" >> "$GITHUB_STEP_SUMMARY" - echo "" >> "$GITHUB_STEP_SUMMARY" - echo "[Build Workflow](https://github.com/${{github.event.client_payload.payload.org}}/${{github.event.client_payload.payload.repo}}/actions/runs/${{github.event.client_payload.payload.buildworkflowid}})" >> "$GITHUB_STEP_SUMMARY" From de07642171b449cc5a8b8dccedb0fe66254ef046 Mon Sep 17 00:00:00 2001 From: Jaymala Sinha Date: Tue, 4 Apr 2023 12:27:26 -0400 Subject: [PATCH 2/2] Fix GH Lint warnings Signed-off-by: Jaymala Sinha --- .github/workflows/test-run-enos-scenario-matrix.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-run-enos-scenario-matrix.yml b/.github/workflows/test-run-enos-scenario-matrix.yml index 7952e2854068..92b1d310a309 100644 --- a/.github/workflows/test-run-enos-scenario-matrix.yml +++ b/.github/workflows/test-run-enos-scenario-matrix.yml @@ -126,10 +126,10 @@ jobs: - name: Prepare scenario dependencies id: prepare_scenario run: | - mkdir -p ./enos/support/terraform-plugin-cache - echo "${{ secrets.SSH_KEY_PRIVATE_CI }}" > ./enos/support/private_key.pem - chmod 600 ./enos/support/private_key.pem - echo "debug_data_artifact_name=enos-debug-data_$(echo ${{ matrix.scenario }} | sed -e 's/ /_/g' | sed -e 's/:/=/g')" >> "$GITHUB_OUTPUT" + mkdir -p "./enos/support/terraform-plugin-cache" + echo "${{ secrets.SSH_KEY_PRIVATE_CI }}" > "./enos/support/private_key.pem" + chmod 600 "./enos/support/private_key.pem" + echo "debug_data_artifact_name=enos-debug-data_$(echo "${{ matrix.scenario }}" | sed -e 's/ /_/g' | sed -e 's/:/=/g')" >> $GITHUB_OUTPUT - if: contains(inputs.matrix-file-name, 'github') uses: actions/download-artifact@v3 with: