Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/sebastian/prod-2721-think-up-a-t…
Browse files Browse the repository at this point in the history
…est-strategy-for-plural-up' into sebastian/prod-2721-think-up-a-test-strategy-for-plural-up
  • Loading branch information
maciaszczykm committed Nov 27, 2024
2 parents bd5c058 + 0ef7231 commit c0a17eb
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,40 +86,42 @@ jobs:
TF_VAR_network: plural-e2e-network-${{ env.TIMESTAMP }}
TF_VAR_subnetwork: plural-e2e-subnet-${{ env.TIMESTAMP }}
run: venom run -vv --html-report --format=json --output-dir ${{ env.TESTOUT_PATH }} test/plural
# - name: Post a slack message on finish
# uses: slackapi/[email protected]
# with:
# webhook-type: incoming-webhook
# webhook: ${{ secrets.SLACK_WEBHOOK }}
# payload: |
# text: "*GitHub Action build result*: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
# blocks:
# - type: "section"
# text:
# type: "mrkdwn"
# text: "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
# if: always()
# - name: Upload venom logs on failure
# uses: slackapi/[email protected]
# with:
# method: files.uploadV2
# token: ${{ secrets.SLACK_BOT_TOKEN }}
# payload: |
# {
# "channel_id": "${{ secrets.SLACK_CHANNEL_ID }}" ,
# "initial_comment": "Google e2e test has failed. Here are the generated files.",
# "file_uploads": [
# {
# "file": "${{ env.TESTOUT_PATH }}/venom.log",
# "filename": "venom.log"
# },
# {
# "file": "${{ env.TESTOUT_PATH }}/test_results.html",
# "filename": "rest_results.html"
# }
# ]
# }
# if: failure()
- name: Post status on Slack
if: always()
uses: slackapi/[email protected]
with:
webhook-type: incoming-webhook
webhook: ${{ secrets.SLACK_WEBHOOK }}
payload: |
blocks:
- type: section
text:
type: mrkdwn
text: "${{ github.workflow }} workflow finished."
- type: section
fields:
- type: mrkdwn
text: "*Repository*\n<https://github.com/${{ github.repository }}|${{ github.repository }}>"
- type: mrkdwn
text: "*Job*\n`${{ github.job }}`"
- type: mrkdwn
text: "*Status*\n`${{ job.status }}`"
- type: mrkdwn
text: "*Pull request*\n<${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>"
- name: Upload artifacts to Slack on failure
if: failure()
uses: slackapi/[email protected]
with:
method: files.uploadV2
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel_id: ${{ secrets.SLACK_CHANNEL_ID }}
initial_comment: "${{ github.workflow }} workflow failed."
file_uploads:
- file: ${{ env.TESTOUT_PATH }}/venom.log
filename: venom.log
- file: ${{ env.TESTOUT_PATH }}/test_results.html
filename: rest_results.html
plural-up-azure:
name: plural up / Azure
runs-on: ubuntu-latest
Expand Down

0 comments on commit c0a17eb

Please sign in to comment.