Skip to content

Commit

Permalink
Less alerts from claim workflow (#3845)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-dubinin authored Sep 18, 2024
1 parent fc714a2 commit 1d03040
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 70 deletions.
70 changes: 1 addition & 69 deletions .github/workflows/monitoring-claim-orders .yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Technical job to claim orders created by monitoring
on:
workflow_dispatch:
schedule:
- cron: "*/45 * * * *"
- cron: "19 * * * *"

jobs:
fe-claim1-tests:
Expand Down Expand Up @@ -40,40 +40,6 @@ jobs:
with:
name: claim1-test-results
path: packages/web/playwright-report
- name: Send Slack alert if test fails
id: slack
if: failure()
uses: slackapi/[email protected]
with:
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "🚨 Claim Tests Failure Alert 🚨"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Production App URL:* https://app.osmosis.zone"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Click here to view the run: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|GitHub Actions Run>"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SERVER_E2E_TESTS_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

fe-claim2-tests:
timeout-minutes: 10
Expand Down Expand Up @@ -109,40 +75,6 @@ jobs:
with:
name: claim2-test-results
path: packages/web/playwright-report
- name: Send Slack alert if test fails
id: slack
if: failure()
uses: slackapi/[email protected]
with:
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "🚨 Claim Tests Failure Alert 🚨"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Production App URL:* https://app.osmosis.zone"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Click here to view the run: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|GitHub Actions Run>"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SERVER_E2E_TESTS_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

delete-deployments:
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion packages/web/e2e/tests/select.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* eslint-disable import/no-extraneous-dependencies */
import { BrowserContext, chromium, Page, test } from "@playwright/test";
import {
type BrowserContext,
chromium,
type Page,
test,
} from "@playwright/test";
import { addCoverageReport, attachCoverageReport } from "monocart-reporter";

import { TradePage } from "~/e2e/pages/trade-page";
Expand Down

0 comments on commit 1d03040

Please sign in to comment.