2022-12-12 20:46:04 +00:00
|
|
|
name: enos-release-testing-oss
|
|
|
|
|
|
|
|
on:
|
|
|
|
repository_dispatch:
|
|
|
|
types:
|
|
|
|
- enos-release-testing-oss
|
|
|
|
- enos-release-testing-oss::*
|
|
|
|
|
|
|
|
jobs:
|
2022-12-15 23:10:49 +00:00
|
|
|
product-metadata:
|
2022-12-12 20:46:04 +00:00
|
|
|
if: ${{ startsWith(github.event.client_payload.payload.branch, 'release/') }}
|
2022-12-12 23:07:16 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-12-12 20:46:04 +00:00
|
|
|
outputs:
|
2022-12-15 23:10:49 +00:00
|
|
|
matrix-test-group: ${{ steps.get-metadata.outputs.matrix-test-group }}
|
2022-12-13 19:00:58 +00:00
|
|
|
vault-revision: ${{ steps.get-metadata.outputs.vault-revision }}
|
|
|
|
vault-version: ${{ steps.get-metadata.outputs.vault-version }}
|
2022-12-12 23:07:16 +00:00
|
|
|
steps:
|
2022-12-12 20:46:04 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-12-13 19:00:58 +00:00
|
|
|
with:
|
2022-12-15 23:10:49 +00:00
|
|
|
# Check out the repository at the same Git SHA that was used to create
|
|
|
|
# the artifacts to get the correct metadata.
|
2022-12-13 19:00:58 +00:00
|
|
|
ref: ${{ github.event.client_payload.payload.sha }}
|
2022-12-15 23:10:49 +00:00
|
|
|
- id: get-metadata
|
2022-12-12 20:46:04 +00:00
|
|
|
env:
|
|
|
|
# MATRIX_MAX_TEST_GROUPS is required to determine the randomly selected
|
|
|
|
# test group. It should be set to the highest test_group used in the
|
|
|
|
# enos-run-matrices.
|
|
|
|
MATRIX_MAX_TEST_GROUPS: 2
|
2022-12-13 19:00:58 +00:00
|
|
|
run: |
|
|
|
|
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
|
2022-12-12 20:46:04 +00:00
|
|
|
|
|
|
|
test:
|
2022-12-13 19:00:58 +00:00
|
|
|
name: Test ${{ matrix.build-artifact-name }}
|
2022-12-12 20:46:04 +00:00
|
|
|
if: ${{ startsWith(github.event.client_payload.payload.branch, 'release/') }}
|
2022-12-15 23:10:49 +00:00
|
|
|
needs: product-metadata
|
2023-01-18 23:37:38 +00:00
|
|
|
uses: ./.github/workflows/test-run-enos-scenario-matrix.yml
|
2022-12-12 20:46:04 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- matrix-file-name: enos_release_testing_oss-artifactory-oss-linux-amd64-zip
|
2022-12-13 19:00:58 +00:00
|
|
|
build-artifact-name: vault_${{ needs.product-metadata.outputs.vault-version }}_linux_amd64.zip
|
2022-12-12 20:46:04 +00:00
|
|
|
- matrix-file-name: enos_release_testing_oss-artifactory-oss-linux-arm64-zip
|
2022-12-13 19:00:58 +00:00
|
|
|
build-artifact-name: vault_${{ needs.product-metadata.outputs.vault-version }}_linux_arm64.zip
|
2022-12-12 20:46:04 +00:00
|
|
|
with:
|
2022-12-15 18:47:14 +00:00
|
|
|
build-artifact-name: ${{ matrix.build-artifact-name }}
|
|
|
|
matrix-file-name: ${{ matrix.matrix-file-name }}
|
2022-12-15 23:10:49 +00:00
|
|
|
matrix-test-group: ${{ needs.product-metadata.outputs.matrix-test-group }}
|
2022-12-12 20:46:04 +00:00
|
|
|
vault-edition: oss
|
2022-12-13 19:00:58 +00:00
|
|
|
vault-revision: ${{ needs.product-metadata.outputs.vault-revision }}
|
2022-12-12 20:46:04 +00:00
|
|
|
secrets: inherit
|
2022-12-22 22:20:05 +00:00
|
|
|
|
|
|
|
save-metadata:
|
|
|
|
runs-on: linux
|
2022-12-23 19:06:42 +00:00
|
|
|
needs: test
|
2022-12-22 22:20:05 +00:00
|
|
|
steps:
|
|
|
|
- name: Persist metadata
|
|
|
|
uses: hashicorp/actions-persist-metadata@v1
|