Skip to content

Commit 8990998

Browse files
committed
[NDR-313] Update link with actual workflow name
1 parent fa7116b commit 8990998

File tree

6 files changed

+81
-4
lines changed

6 files changed

+81
-4
lines changed

.github/workflows/lambdas-dev-to-main-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
"type": "section",
123123
"text": {
124124
"type": "mrkdwn",
125-
"text": "*Triggered by:* `${{ github.actor }}`\n*Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Details>"
125+
"text": "*Triggered by:* `${{ github.actor }}`\n*Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}>"
126126
}
127127
},
128128
{

.github/workflows/ndr-e2e-backend-test-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
"type": "section",
7878
"text": {
7979
"type": "mrkdwn",
80-
"text": "*Triggered by:* `${{ github.actor }}`\n*Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Details>"
80+
"text": "*Triggered by:* `${{ github.actor }}`\n*Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}>"
8181
}
8282
},
8383
{

.github/workflows/ndr-e2e-test-sandbox.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,78 @@ jobs:
4242
secrets:
4343
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
4444

45+
notify-slack:
46+
runs-on: ubuntu-latest
47+
environment: ${{ inputs.environment }}
48+
needs: [services-e2etest, services-fhir-api-e2etest]
49+
if: always()
50+
steps:
51+
- name: Configure AWS Credentials
52+
uses: aws-actions/configure-aws-credentials@v5
53+
with:
54+
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
55+
role-skip-session-tagging: true
56+
aws-region: ${{ vars.AWS_REGION }}
57+
mask-aws-account-id: true
58+
59+
- name: Get SSM parameters from SSM
60+
id: ssm-parameters
61+
run: |
62+
slack_bot_token=$(aws ssm get-parameter --name "/ndr/alerting/slack/bot_token" --with-decryption --query "Parameter.Value" --output text)
63+
echo "::add-mask::$slack_bot_token"
64+
echo "SLACK_BOT_TOKEN=$slack_bot_token" >> $GITHUB_ENV
65+
- name: Send Slack Notification
66+
uses: slackapi/slack-github-action@v2.1.1
67+
with:
68+
method: chat.postMessage
69+
token: ${{ env.SLACK_BOT_TOKEN }}
70+
payload: |
71+
{
72+
"channel": "${{ vars.ALERTS_SLACK_CHANNEL_ID }}",
73+
"attachments": [
74+
{
75+
"color": "${{ (needs.services-e2etest.result == 'success' && needs.services-fhir-api-e2etest.result == 'success') && '#36a64f' || '#ff0000' }}",
76+
"blocks": [
77+
{
78+
"type": "header",
79+
"text": {
80+
"type": "plain_text",
81+
"text": "${{ (needs.services-e2etest.result == 'success' && needs.services-fhir-api-e2etest.result == 'success') && '✅ Workflow SANDBOX: E2e Tests Backend succeeded' || '❌ Workflow SANDBOX: E2e Tests Backend failed' }}"
82+
}
83+
},
84+
{
85+
"type": "section",
86+
"text": {
87+
"type": "mrkdwn",
88+
"text": "*Triggered by:* `${{ github.actor }}`\n*Branch:* `${{ github.event.pull_request.head.ref || github.ref_name }}`\n*Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}>"
89+
}
90+
},
91+
{
92+
"type": "divider"
93+
},
94+
{
95+
"type": "section",
96+
"fields": [
97+
{
98+
"type": "mrkdwn",
99+
"text": "*services-e2etest:* ${{ needs.services-e2etest.result == 'success' && ':white_check_mark:' || ':x:' }}"
100+
},
101+
{
102+
"type": "mrkdwn",
103+
"text": "*services-fhir-api-e2etest:* ${{ needs.services-fhir-api-e2etest.result == 'success' && ':white_check_mark:' || ':x:' }}"
104+
}
105+
]
106+
},
107+
{
108+
"type": "context",
109+
"elements": [
110+
{
111+
"type": "mrkdwn",
112+
"text": "Environment: `${{ inputs.environment }}` | Sandbox: `${{ inputs.sandbox }}`"
113+
}
114+
]
115+
}
116+
]
117+
}
118+
]
119+
}

.github/workflows/ndr-smoketest-ui-test-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
"type": "section",
7171
"text": {
7272
"type": "mrkdwn",
73-
"text": "*Triggered by:* `${{ github.actor }}`\n*Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Details>"
73+
"text": "*Triggered by:* `${{ github.actor }}`\n*Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}>"
7474
}
7575
},
7676
{

.github/workflows/ui-dev-to-main-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
"type": "section",
101101
"text": {
102102
"type": "mrkdwn",
103-
"text": "*Triggered by:* `${{ github.actor }}`\n*Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Details>"
103+
"text": "*Triggered by:* `${{ github.actor }}`\n*Workflow:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}>"
104104
}
105105
},
106106
{

lambdas/tests/e2e/api/fhir/test_retrieve_document_fhir_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def test_file_retrieval(test_data, file_size):
3636
)
3737
assert expected_presign_uri in json["content"][0]["attachment"]["url"]
3838

39+
assert False
40+
3941

4042
@pytest.mark.parametrize(
4143
"record_id,expected_status,expected_code,expected_diagnostics",

0 commit comments

Comments
 (0)