Skip to content

Commit b82991d

Browse files
authored
chore(e2e): Adding Wire reporting for Wire Cells e2e tests [WPB-21662] (#19753)
* chore(e2e): Adding Wire reporting for Wire Cells e2e tests [WPB-21662] * Changed action version * Added env explicitly * TMP added debug step * TMP Added always() modifier for a debug command * Added required secret to the job * Added passing secrets to parent jobs * Added passing secrets to parent jobs * Reformatted result message * Added full commit SHA for slack action
1 parent a7228df commit b82991d

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.github/workflows/playwright-cells-crit-flow-tests-manual.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
environment: ${{ github.event.inputs.environment }}
2121
secrets:
2222
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
23+
WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL: ${{ secrets.WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL }}

.github/workflows/playwright-cells-crit-flow-tests-scheduled.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ jobs:
1616
environment: ${{ matrix.environment }}
1717
secrets:
1818
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
19+
WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL: ${{ secrets.WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL }}

.github/workflows/run-cells-crit-flow-e2e-tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
secrets:
1010
OP_SERVICE_ACCOUNT_TOKEN:
1111
required: true
12+
WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL:
13+
required: true
1214

1315
jobs:
1416
cells-crit-flow-e2e-tests:
@@ -17,6 +19,7 @@ jobs:
1719
runs-on: [self-hosted, Linux, X64, office]
1820
env:
1921
ENV: ${{ inputs.environment }}
22+
SLACK_WEBHOOK_URL: ${{ secrets.WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL }}
2023

2124
steps:
2225
- name: Checkout repository
@@ -51,3 +54,31 @@ jobs:
5154
with:
5255
name: playwright-report-${{ env.ENV }}
5356
path: playwright-report/
57+
- name: Notify on Wire if succeeded
58+
if: success()
59+
continue-on-error: true
60+
uses: 8398a7/action-slack@293f8dc0f9731ac35321056641cdef895f4f65f8
61+
env:
62+
ENV: ${{ inputs.environment }}
63+
SLACK_WEBHOOK_URL: ${{ secrets.WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL }}
64+
with:
65+
status: ${{ job.status }}
66+
text: |
67+
✅ Cells Critical Flow E2E Tests on **${{ env.ENV }}** environment succeeded ✅
68+
**CHANGELOG:** ${{ needs.changelog.outputs.changelog-url }}
69+
**Triggered by:** ${{ github.triggering_actor }}
70+
**Build log:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
71+
- name: Notify on Wire if failed
72+
if: failure()
73+
continue-on-error: true
74+
uses: 8398a7/action-slack@293f8dc0f9731ac35321056641cdef895f4f65f8
75+
env:
76+
ENV: ${{ inputs.environment }}
77+
SLACK_WEBHOOK_URL: ${{ secrets.WIRE_CELLS_E2E_TEST_BOT_WEBHOOK_URL }}
78+
with:
79+
status: ${{ job.status }}
80+
text: |
81+
❌ Cells Critical Flow E2E Tests on **${{ env.ENV }}** environment failed ❌
82+
**CHANGELOG:** ${{ needs.changelog.outputs.changelog-url }}
83+
**Triggered by:** ${{ github.triggering_actor }}
84+
**Build log:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)