mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
backport of commit 76d8ab6f43 (#22165)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
This commit is contained in:
committed by
GitHub
parent
f34e76f1ba
commit
adf24c4bf0
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@@ -279,7 +279,13 @@ jobs:
|
||||
tr -d '\n' <<< '${{ toJSON(needs.*.result) }}' | grep -q -v -E '(failure|cancelled)'
|
||||
|
||||
notify-tests-completed-failures-oss:
|
||||
if: ${{ always() && github.repository == 'hashicorp/vault' && needs.tests-completed.result == 'failure' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release/')) }}
|
||||
if: |
|
||||
always() &&
|
||||
github.repository == 'hashicorp/vault' &&
|
||||
(needs.test-go.result == 'failure' ||
|
||||
needs.test-go-fips.result == 'failure' ||
|
||||
needs.test-go-race.result == 'failure') &&
|
||||
(github.ref_name == 'main' || startsWith(github.ref_name, 'release/'))
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
@@ -287,7 +293,9 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
needs:
|
||||
- tests-completed
|
||||
- test-go
|
||||
- test-go-fips
|
||||
- test-go-race
|
||||
steps:
|
||||
- name: send-notification
|
||||
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
|
||||
@@ -301,7 +309,13 @@ jobs:
|
||||
{"text":"OSS test failures on ${{ github.ref_name }}","blocks":[{"type":"header","text":{"type":"plain_text","text":":rotating_light: OSS test failures :rotating_light:","emoji":true}},{"type":"divider"},{"type":"section","text":{"type":"mrkdwn","text":"test(s) failed on ${{ github.ref_name }}"},"accessory":{"type":"button","text":{"type":"plain_text","text":"View Failing Workflow","emoji":true},"url":"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}}]}
|
||||
|
||||
notify-tests-completed-failures-ent:
|
||||
if: ${{ always() && github.repository == 'hashicorp/vault-enterprise' && needs.tests-completed.result == 'failure' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release/')) }}
|
||||
if: |
|
||||
always() &&
|
||||
github.repository == 'hashicorp/vault-enterprise' &&
|
||||
(needs.test-go.result == 'failure' ||
|
||||
needs.test-go-fips.result == 'failure' ||
|
||||
needs.test-go-race.result == 'failure') &&
|
||||
(github.ref_name == 'main' || startsWith(github.ref_name, 'release/'))
|
||||
runs-on: ['self-hosted', 'linux', 'small']
|
||||
permissions:
|
||||
id-token: write
|
||||
@@ -309,7 +323,9 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
needs:
|
||||
- tests-completed
|
||||
- test-go
|
||||
- test-go-fips
|
||||
- test-go-race
|
||||
steps:
|
||||
- id: vault-auth
|
||||
name: Vault Authenticate
|
||||
|
||||
1
.github/workflows/test-go.yml
vendored
1
.github/workflows/test-go.yml
vendored
@@ -372,6 +372,7 @@ jobs:
|
||||
path: failure-summary-${{ matrix.id }}${{ inputs.name != '' && '-' || '' }}${{inputs.name}}.md
|
||||
|
||||
test-collect-reports:
|
||||
if: ${{ ! cancelled() }}
|
||||
needs: test-go
|
||||
runs-on: ${{ fromJSON(inputs.runs-on) }}
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user