Skip to content

Commit 40298a4

Browse files
author
Kamil Sobol
authored
test: remove metric logging from canary workflow (#942)
1 parent 813bece commit 40298a4

File tree

2 files changed

+0
-83
lines changed

2 files changed

+0
-83
lines changed

.github/actions/log-metric/action.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/canary_checks.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -54,45 +54,3 @@ jobs:
5454
shell: bash
5555
run: |
5656
npm run live-dependency-health-checks
57-
log-failure-metric:
58-
runs-on: ubuntu-latest
59-
needs:
60-
[local_checks_with_latest_dependencies, live_dependency_health_checks]
61-
permissions:
62-
# these permissions are required for the configure-aws-credentials action to get a JWT from GitHub
63-
id-token: write
64-
contents: read
65-
if: ${{ failure() }}
66-
steps:
67-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # version 3.6.0
68-
- name: Log failure
69-
uses: ./.github/actions/log-metric
70-
with:
71-
metric-name: WorkflowExecutionFailure
72-
value: 1
73-
# github.workflow - workflow name
74-
# github.ref_name - branch or tag name
75-
dimensions: workflow=${{ github.workflow }},ref_name=${{ github.ref_name }}
76-
role-to-assume: ${{ secrets.METRICS_EMITTER_ROLE_ARN }}
77-
aws-region: us-west-2
78-
log-success-metric:
79-
runs-on: ubuntu-latest
80-
needs:
81-
[local_checks_with_latest_dependencies, live_dependency_health_checks]
82-
permissions:
83-
# these permissions are required for the configure-aws-credentials action to get a JWT from GitHub
84-
id-token: write
85-
contents: read
86-
if: ${{ success() }}
87-
steps:
88-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # version 3.6.0
89-
- name: Log success
90-
uses: ./.github/actions/log-metric
91-
with:
92-
metric-name: WorkflowExecutionFailure
93-
value: 0
94-
# github.workflow - workflow name
95-
# github.ref_name - branch or tag name
96-
dimensions: workflow=${{ github.workflow }},ref_name=${{ github.ref_name }}
97-
role-to-assume: ${{ secrets.METRICS_EMITTER_ROLE_ARN }}
98-
aws-region: us-west-2

0 commit comments

Comments
 (0)